diff --git a/.gitignore b/.gitignore index 6b77edfe..686fbae4 100644 --- a/.gitignore +++ b/.gitignore @@ -8,14 +8,15 @@ Makefile.pokerth_protocol Makefile.pokerth_server Makefile.pokerth_dbofficial bin/ -chatcleaner +/chatcleaner lib/ mocs/ obj/ -pokerth +/pokerth qrc_pokerth.cpp uics/ make.sh gitpush_serverstuff_stable -pokerth_server .vscode/ +.project +.classpath diff --git a/pokerth.pro b/pokerth.pro index 18ab00e3..8a47d5b6 100644 --- a/pokerth.pro +++ b/pokerth.pro @@ -6,7 +6,7 @@ official_server { SUBDIRS += pokerth_dbofficial.pro } client: { - SUBDIRS += pokerth_game.pro + # SUBDIRS += pokerth_game.pro } !mac:!gui_800x480:!client:!qml-client { SUBDIRS += pokerth_server.pro chatcleaner.pro diff --git a/src/net/common/asioreceivebuffer.cpp b/src/net/common/asioreceivebuffer.cpp index c4f85beb..0343a3e7 100644 --- a/src/net/common/asioreceivebuffer.cpp +++ b/src/net/common/asioreceivebuffer.cpp @@ -105,7 +105,7 @@ AsioReceiveBuffer::ScanPackets(boost::shared_ptr session) size_t packetSize = ntohl(nativeVal); if (packetSize > MAX_PACKET_SIZE) { recvBufUsed = 0; - LOG_ERROR("Session " << session->GetId() << " - Invalid packet size: " << packetSize); + LOG_ERROR(session->GetClientAddr() << "Session " << session->GetId() << " - Invalid packet size: " << packetSize); } else if (recvBufUsed >= packetSize + NET_HEADER_SIZE) { try { tmpPacket = NetPacket::Create(&recvBuf[NET_HEADER_SIZE], packetSize); @@ -118,7 +118,7 @@ AsioReceiveBuffer::ScanPackets(boost::shared_ptr session) } catch (const exception &e) { // Reset buffer on error. recvBufUsed = 0; - LOG_ERROR("Session " << session->GetId() << " - " << e.what()); + LOG_ERROR(session->GetClientAddr() << "Session " << session->GetId() << " - " << e.what()); } } } @@ -126,7 +126,7 @@ AsioReceiveBuffer::ScanPackets(boost::shared_ptr session) if (validator.IsValidPacket(*tmpPacket)) { receivedPackets.push_back(tmpPacket); } else { - LOG_ERROR("Session " << session->GetId() << " - Invalid packet: " << tmpPacket->GetMsg()->messagetype()); + LOG_ERROR(session->GetClientAddr() << "Session " << session->GetId() << " - Invalid packet: " << tmpPacket->GetMsg()->messagetype()); } } else { dataAvailable = false; diff --git a/src/net/common/serverlobbythread.cpp b/src/net/common/serverlobbythread.cpp index 472b2591..c4be5227 100644 --- a/src/net/common/serverlobbythread.cpp +++ b/src/net/common/serverlobbythread.cpp @@ -63,6 +63,7 @@ #include #include #include +#include #define SERVER_MAX_NUM_LOBBY_SESSIONS 1536 // Maximum number of idle users in lobby. #define SERVER_MAX_NUM_TOTAL_SESSIONS 2000 // Total maximum of sessions, fitting a 2048 handle limit @@ -304,8 +305,8 @@ ServerLobbyThread::AddConnection(boost::shared_ptr sessionData) // Create a new session. m_sessionManager.AddSession(sessionData); - LOG_VERBOSE("Accepted connection - session #" << sessionData->GetId() << "."); - LOG_ERROR("Accepted connection - session #" << sessionData->GetId() << "."); + LOG_VERBOSE(sessionData->GetRemoteIPAddressFromSocket() << " Accepted connection - session #" << sessionData->GetId() << "."); + LOG_ERROR(sessionData->GetRemoteIPAddressFromSocket() << " Accepted connection - session #" << sessionData->GetId() << "."); sessionData->StartTimerInitTimeout(SERVER_INIT_SESSION_TIMEOUT_SEC); sessionData->StartTimerGlobalTimeout(SERVER_SESSION_FORCED_TIMEOUT_SEC); diff --git a/src/third_party/protobuf/chatcleaner.pb.cc b/src/third_party/protobuf/chatcleaner.pb.cc index bc138ee6..c44e279f 100644 --- a/src/third_party/protobuf/chatcleaner.pb.cc +++ b/src/third_party/protobuf/chatcleaner.pb.cc @@ -1,66 +1,257 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: chatcleaner.proto -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "chatcleaner.pb.h" #include -#include -#include #include -#include +#include +#include +#include // @@protoc_insertion_point(includes) - -void protobuf_ShutdownFile_chatcleaner_2eproto() { - delete CleanerInitMessage::default_instance_; - delete CleanerInitAckMessage::default_instance_; - delete CleanerChatRequestMessage::default_instance_; - delete CleanerChatReplyMessage::default_instance_; - delete ChatCleanerMessage::default_instance_; -} - -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -void protobuf_AddDesc_chatcleaner_2eproto_impl() { +#include +extern PROTOBUF_INTERNAL_EXPORT_chatcleaner_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CleanerChatReplyMessage_chatcleaner_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_chatcleaner_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CleanerChatRequestMessage_chatcleaner_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_chatcleaner_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CleanerInitAckMessage_chatcleaner_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_chatcleaner_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CleanerInitMessage_chatcleaner_2eproto; +class CleanerInitMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _CleanerInitMessage_default_instance_; +class CleanerInitAckMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _CleanerInitAckMessage_default_instance_; +class CleanerChatRequestMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _CleanerChatRequestMessage_default_instance_; +class CleanerChatReplyMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _CleanerChatReplyMessage_default_instance_; +class ChatCleanerMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ChatCleanerMessage_default_instance_; +static void InitDefaultsscc_info_ChatCleanerMessage_chatcleaner_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; -#else -void protobuf_AddDesc_chatcleaner_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; - GOOGLE_PROTOBUF_VERIFY_VERSION; - -#endif - CleanerInitMessage::default_instance_ = new CleanerInitMessage(); - CleanerInitAckMessage::default_instance_ = new CleanerInitAckMessage(); - CleanerChatRequestMessage::default_instance_ = new CleanerChatRequestMessage(); - CleanerChatReplyMessage::default_instance_ = new CleanerChatReplyMessage(); - ChatCleanerMessage::default_instance_ = new ChatCleanerMessage(); - CleanerInitMessage::default_instance_->InitAsDefaultInstance(); - CleanerInitAckMessage::default_instance_->InitAsDefaultInstance(); - CleanerChatRequestMessage::default_instance_->InitAsDefaultInstance(); - CleanerChatReplyMessage::default_instance_->InitAsDefaultInstance(); - ChatCleanerMessage::default_instance_->InitAsDefaultInstance(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_chatcleaner_2eproto); -} - -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_chatcleaner_2eproto_once_); -void protobuf_AddDesc_chatcleaner_2eproto() { - ::google::protobuf::::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_chatcleaner_2eproto_once_, - &protobuf_AddDesc_chatcleaner_2eproto_impl); -} -#else -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_chatcleaner_2eproto { - StaticDescriptorInitializer_chatcleaner_2eproto() { - protobuf_AddDesc_chatcleaner_2eproto(); + { + void* ptr = &::_ChatCleanerMessage_default_instance_; + new (ptr) ::ChatCleanerMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } -} static_descriptor_initializer_chatcleaner_2eproto_; -#endif + ::ChatCleanerMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_ChatCleanerMessage_chatcleaner_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, 0, InitDefaultsscc_info_ChatCleanerMessage_chatcleaner_2eproto}, { + &scc_info_CleanerInitMessage_chatcleaner_2eproto.base, + &scc_info_CleanerInitAckMessage_chatcleaner_2eproto.base, + &scc_info_CleanerChatRequestMessage_chatcleaner_2eproto.base, + &scc_info_CleanerChatReplyMessage_chatcleaner_2eproto.base,}}; + +static void InitDefaultsscc_info_CleanerChatReplyMessage_chatcleaner_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_CleanerChatReplyMessage_default_instance_; + new (ptr) ::CleanerChatReplyMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::CleanerChatReplyMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CleanerChatReplyMessage_chatcleaner_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CleanerChatReplyMessage_chatcleaner_2eproto}, {}}; + +static void InitDefaultsscc_info_CleanerChatRequestMessage_chatcleaner_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_CleanerChatRequestMessage_default_instance_; + new (ptr) ::CleanerChatRequestMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::CleanerChatRequestMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CleanerChatRequestMessage_chatcleaner_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CleanerChatRequestMessage_chatcleaner_2eproto}, {}}; + +static void InitDefaultsscc_info_CleanerInitAckMessage_chatcleaner_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_CleanerInitAckMessage_default_instance_; + new (ptr) ::CleanerInitAckMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::CleanerInitAckMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CleanerInitAckMessage_chatcleaner_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CleanerInitAckMessage_chatcleaner_2eproto}, {}}; + +static void InitDefaultsscc_info_CleanerInitMessage_chatcleaner_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_CleanerInitMessage_default_instance_; + new (ptr) ::CleanerInitMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::CleanerInitMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CleanerInitMessage_chatcleaner_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CleanerInitMessage_chatcleaner_2eproto}, {}}; + +bool CleanerChatReplyMessage_CleanerActionType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed CleanerChatReplyMessage_CleanerActionType_strings[5] = {}; + +static const char CleanerChatReplyMessage_CleanerActionType_names[] = + "cleanerActionBan" + "cleanerActionKick" + "cleanerActionMute" + "cleanerActionNone" + "cleanerActionWarning"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry CleanerChatReplyMessage_CleanerActionType_entries[] = { + { {CleanerChatReplyMessage_CleanerActionType_names + 0, 16}, 3 }, + { {CleanerChatReplyMessage_CleanerActionType_names + 16, 17}, 2 }, + { {CleanerChatReplyMessage_CleanerActionType_names + 33, 17}, 4 }, + { {CleanerChatReplyMessage_CleanerActionType_names + 50, 17}, 0 }, + { {CleanerChatReplyMessage_CleanerActionType_names + 67, 20}, 1 }, +}; + +static const int CleanerChatReplyMessage_CleanerActionType_entries_by_number[] = { + 3, // 0 -> cleanerActionNone + 4, // 1 -> cleanerActionWarning + 1, // 2 -> cleanerActionKick + 0, // 3 -> cleanerActionBan + 2, // 4 -> cleanerActionMute +}; + +const std::string& CleanerChatReplyMessage_CleanerActionType_Name( + CleanerChatReplyMessage_CleanerActionType value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + CleanerChatReplyMessage_CleanerActionType_entries, + CleanerChatReplyMessage_CleanerActionType_entries_by_number, + 5, CleanerChatReplyMessage_CleanerActionType_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + CleanerChatReplyMessage_CleanerActionType_entries, + CleanerChatReplyMessage_CleanerActionType_entries_by_number, + 5, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + CleanerChatReplyMessage_CleanerActionType_strings[idx].get(); +} +bool CleanerChatReplyMessage_CleanerActionType_Parse( + const std::string& name, CleanerChatReplyMessage_CleanerActionType* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + CleanerChatReplyMessage_CleanerActionType_entries, 5, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage::cleanerActionNone; +constexpr CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage::cleanerActionWarning; +constexpr CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage::cleanerActionKick; +constexpr CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage::cleanerActionBan; +constexpr CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage::cleanerActionMute; +constexpr CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage::CleanerActionType_MIN; +constexpr CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage::CleanerActionType_MAX; +constexpr int CleanerChatReplyMessage::CleanerActionType_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +bool ChatCleanerMessage_ChatCleanerMessageType_IsValid(int value) { + switch (value) { + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ChatCleanerMessage_ChatCleanerMessageType_strings[4] = {}; + +static const char ChatCleanerMessage_ChatCleanerMessageType_names[] = + "Type_CleanerChatReplyMessage" + "Type_CleanerChatRequestMessage" + "Type_CleanerInitAckMessage" + "Type_CleanerInitMessage"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ChatCleanerMessage_ChatCleanerMessageType_entries[] = { + { {ChatCleanerMessage_ChatCleanerMessageType_names + 0, 28}, 4 }, + { {ChatCleanerMessage_ChatCleanerMessageType_names + 28, 30}, 3 }, + { {ChatCleanerMessage_ChatCleanerMessageType_names + 58, 26}, 2 }, + { {ChatCleanerMessage_ChatCleanerMessageType_names + 84, 23}, 1 }, +}; + +static const int ChatCleanerMessage_ChatCleanerMessageType_entries_by_number[] = { + 3, // 1 -> Type_CleanerInitMessage + 2, // 2 -> Type_CleanerInitAckMessage + 1, // 3 -> Type_CleanerChatRequestMessage + 0, // 4 -> Type_CleanerChatReplyMessage +}; + +const std::string& ChatCleanerMessage_ChatCleanerMessageType_Name( + ChatCleanerMessage_ChatCleanerMessageType value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + ChatCleanerMessage_ChatCleanerMessageType_entries, + ChatCleanerMessage_ChatCleanerMessageType_entries_by_number, + 4, ChatCleanerMessage_ChatCleanerMessageType_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + ChatCleanerMessage_ChatCleanerMessageType_entries, + ChatCleanerMessage_ChatCleanerMessageType_entries_by_number, + 4, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + ChatCleanerMessage_ChatCleanerMessageType_strings[idx].get(); +} +bool ChatCleanerMessage_ChatCleanerMessageType_Parse( + const std::string& name, ChatCleanerMessage_ChatCleanerMessageType* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + ChatCleanerMessage_ChatCleanerMessageType_entries, 4, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage::Type_CleanerInitMessage; +constexpr ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage::Type_CleanerInitAckMessage; +constexpr ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage::Type_CleanerChatRequestMessage; +constexpr ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage::Type_CleanerChatReplyMessage; +constexpr ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage::ChatCleanerMessageType_MIN; +constexpr ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage::ChatCleanerMessageType_MAX; +constexpr int ChatCleanerMessage::ChatCleanerMessageType_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool CleanerChatType_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: return true; @@ -69,1537 +260,1798 @@ bool CleanerChatType_IsValid(int value) { } } +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed CleanerChatType_strings[2] = {}; + +static const char CleanerChatType_names[] = + "cleanerChatTypeGame" + "cleanerChatTypeLobby"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry CleanerChatType_entries[] = { + { {CleanerChatType_names + 0, 19}, 1 }, + { {CleanerChatType_names + 19, 20}, 0 }, +}; + +static const int CleanerChatType_entries_by_number[] = { + 1, // 0 -> cleanerChatTypeLobby + 0, // 1 -> cleanerChatTypeGame +}; + +const std::string& CleanerChatType_Name( + CleanerChatType value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + CleanerChatType_entries, + CleanerChatType_entries_by_number, + 2, CleanerChatType_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + CleanerChatType_entries, + CleanerChatType_entries_by_number, + 2, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + CleanerChatType_strings[idx].get(); +} +bool CleanerChatType_Parse( + const std::string& name, CleanerChatType* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + CleanerChatType_entries, 2, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} // =================================================================== -#ifndef _MSC_VER -const int CleanerInitMessage::kRequestedVersionFieldNumber; -const int CleanerInitMessage::kClientSecretFieldNumber; -#endif // !_MSC_VER - -CleanerInitMessage::CleanerInitMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - void CleanerInitMessage::InitAsDefaultInstance() { } +class CleanerInitMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_requestedversion(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_clientsecret(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; -CleanerInitMessage::CleanerInitMessage(const CleanerInitMessage& from) - : ::google::protobuf::MessageLite() { +CleanerInitMessage::CleanerInitMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { SharedCtor(); - MergeFrom(from); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:CleanerInitMessage) +} +CleanerInitMessage::CleanerInitMessage(const CleanerInitMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clientsecret_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_clientsecret()) { + clientsecret_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_clientsecret(), + GetArena()); + } + requestedversion_ = from.requestedversion_; + // @@protoc_insertion_point(copy_constructor:CleanerInitMessage) } void CleanerInitMessage::SharedCtor() { - _cached_size_ = 0; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CleanerInitMessage_chatcleaner_2eproto.base); + clientsecret_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); requestedversion_ = 0u; - clientsecret_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } CleanerInitMessage::~CleanerInitMessage() { SharedDtor(); + _internal_metadata_.Delete(); } void CleanerInitMessage::SharedDtor() { - if (clientsecret_ != &::google::protobuf::internal::kEmptyString) { - delete clientsecret_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } + GOOGLE_DCHECK(GetArena() == nullptr); + clientsecret_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } +void CleanerInitMessage::ArenaDtor(void* object) { + CleanerInitMessage* _this = reinterpret_cast< CleanerInitMessage* >(object); + (void)_this; +} +void CleanerInitMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void CleanerInitMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const CleanerInitMessage& CleanerInitMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_chatcleaner_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_chatcleaner_2eproto(); -#endif - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CleanerInitMessage_chatcleaner_2eproto.base); + return *internal_default_instance(); } -CleanerInitMessage* CleanerInitMessage::default_instance_ = NULL; - -CleanerInitMessage* CleanerInitMessage::New() const { - return new CleanerInitMessage; -} void CleanerInitMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - requestedversion_ = 0u; - if (has_clientsecret()) { - if (clientsecret_ != &::google::protobuf::internal::kEmptyString) { - clientsecret_->clear(); - } - } +// @@protoc_insertion_point(message_clear_start:CleanerInitMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + clientsecret_.ClearNonDefaultToEmpty(); } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + requestedversion_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); } -bool CleanerInitMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { +const char* CleanerInitMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { // required uint32 requestedVersion = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &requestedversion_))); - set_has_requestedversion(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_clientSecret; - break; - } - + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_requestedversion(&has_bits); + requestedversion_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // required string clientSecret = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_clientSecret: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_clientsecret())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_clientsecret(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; } - } - } - return true; -#undef DO_ + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ } -void CleanerInitMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { +::PROTOBUF_NAMESPACE_ID::uint8* CleanerInitMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:CleanerInitMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // required uint32 requestedVersion = 1; - if (has_requestedversion()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestedversion(), output); + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_requestedversion(), target); } // required string clientSecret = 2; - if (has_clientsecret()) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->clientsecret(), output); + if (cached_has_bits & 0x00000001u) { + target = stream->WriteStringMaybeAliased( + 2, this->_internal_clientsecret(), target); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:CleanerInitMessage) + return target; } -int CleanerInitMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 requestedVersion = 1; - if (has_requestedversion()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestedversion()); - } +size_t CleanerInitMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:CleanerInitMessage) + size_t total_size = 0; + if (_internal_has_clientsecret()) { // required string clientSecret = 2; - if (has_clientsecret()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->clientsecret()); - } - + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_clientsecret()); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + + if (_internal_has_requestedversion()) { + // required uint32 requestedVersion = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_requestedversion()); + } + + return total_size; +} +size_t CleanerInitMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:CleanerInitMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required string clientSecret = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_clientsecret()); + + // required uint32 requestedVersion = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_requestedversion()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } void CleanerInitMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); } void CleanerInitMessage::MergeFrom(const CleanerInitMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_requestedversion()) { - set_requestedversion(from.requestedversion()); +// @@protoc_insertion_point(class_specific_merge_from_start:CleanerInitMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _internal_set_clientsecret(from._internal_clientsecret()); } - if (from.has_clientsecret()) { - set_clientsecret(from.clientsecret()); + if (cached_has_bits & 0x00000002u) { + requestedversion_ = from.requestedversion_; } + _has_bits_[0] |= cached_has_bits; } } void CleanerInitMessage::CopyFrom(const CleanerInitMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:CleanerInitMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool CleanerInitMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - + if (_Internal::MissingRequiredFields(_has_bits_)) return false; return true; } -void CleanerInitMessage::Swap(CleanerInitMessage* other) { - if (other != this) { - std::swap(requestedversion_, other->requestedversion_); - std::swap(clientsecret_, other->clientsecret_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } +void CleanerInitMessage::InternalSwap(CleanerInitMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + clientsecret_.Swap(&other->clientsecret_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(requestedversion_, other->requestedversion_); } -::std::string CleanerInitMessage::GetTypeName() const { +std::string CleanerInitMessage::GetTypeName() const { return "CleanerInitMessage"; } // =================================================================== -#ifndef _MSC_VER -const int CleanerInitAckMessage::kServerVersionFieldNumber; -const int CleanerInitAckMessage::kServerSecretFieldNumber; -#endif // !_MSC_VER - -CleanerInitAckMessage::CleanerInitAckMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - void CleanerInitAckMessage::InitAsDefaultInstance() { } +class CleanerInitAckMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_serverversion(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_serversecret(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; -CleanerInitAckMessage::CleanerInitAckMessage(const CleanerInitAckMessage& from) - : ::google::protobuf::MessageLite() { +CleanerInitAckMessage::CleanerInitAckMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { SharedCtor(); - MergeFrom(from); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:CleanerInitAckMessage) +} +CleanerInitAckMessage::CleanerInitAckMessage(const CleanerInitAckMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + serversecret_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_serversecret()) { + serversecret_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_serversecret(), + GetArena()); + } + serverversion_ = from.serverversion_; + // @@protoc_insertion_point(copy_constructor:CleanerInitAckMessage) } void CleanerInitAckMessage::SharedCtor() { - _cached_size_ = 0; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CleanerInitAckMessage_chatcleaner_2eproto.base); + serversecret_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); serverversion_ = 0u; - serversecret_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } CleanerInitAckMessage::~CleanerInitAckMessage() { SharedDtor(); + _internal_metadata_.Delete(); } void CleanerInitAckMessage::SharedDtor() { - if (serversecret_ != &::google::protobuf::internal::kEmptyString) { - delete serversecret_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } + GOOGLE_DCHECK(GetArena() == nullptr); + serversecret_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } +void CleanerInitAckMessage::ArenaDtor(void* object) { + CleanerInitAckMessage* _this = reinterpret_cast< CleanerInitAckMessage* >(object); + (void)_this; +} +void CleanerInitAckMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void CleanerInitAckMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const CleanerInitAckMessage& CleanerInitAckMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_chatcleaner_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_chatcleaner_2eproto(); -#endif - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CleanerInitAckMessage_chatcleaner_2eproto.base); + return *internal_default_instance(); } -CleanerInitAckMessage* CleanerInitAckMessage::default_instance_ = NULL; - -CleanerInitAckMessage* CleanerInitAckMessage::New() const { - return new CleanerInitAckMessage; -} void CleanerInitAckMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - serverversion_ = 0u; - if (has_serversecret()) { - if (serversecret_ != &::google::protobuf::internal::kEmptyString) { - serversecret_->clear(); - } - } +// @@protoc_insertion_point(message_clear_start:CleanerInitAckMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + serversecret_.ClearNonDefaultToEmpty(); } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + serverversion_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); } -bool CleanerInitAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { +const char* CleanerInitAckMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { // required uint32 serverVersion = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &serverversion_))); - set_has_serverversion(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_serverSecret; - break; - } - + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_serverversion(&has_bits); + serverversion_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // required string serverSecret = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_serverSecret: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_serversecret())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_serversecret(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; } - } - } - return true; -#undef DO_ + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ } -void CleanerInitAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { +::PROTOBUF_NAMESPACE_ID::uint8* CleanerInitAckMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:CleanerInitAckMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // required uint32 serverVersion = 1; - if (has_serverversion()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->serverversion(), output); + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_serverversion(), target); } // required string serverSecret = 2; - if (has_serversecret()) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->serversecret(), output); + if (cached_has_bits & 0x00000001u) { + target = stream->WriteStringMaybeAliased( + 2, this->_internal_serversecret(), target); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:CleanerInitAckMessage) + return target; } -int CleanerInitAckMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 serverVersion = 1; - if (has_serverversion()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->serverversion()); - } +size_t CleanerInitAckMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:CleanerInitAckMessage) + size_t total_size = 0; + if (_internal_has_serversecret()) { // required string serverSecret = 2; - if (has_serversecret()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->serversecret()); - } - + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_serversecret()); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + + if (_internal_has_serverversion()) { + // required uint32 serverVersion = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_serverversion()); + } + + return total_size; +} +size_t CleanerInitAckMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:CleanerInitAckMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required string serverSecret = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_serversecret()); + + // required uint32 serverVersion = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_serverversion()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } void CleanerInitAckMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); } void CleanerInitAckMessage::MergeFrom(const CleanerInitAckMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_serverversion()) { - set_serverversion(from.serverversion()); +// @@protoc_insertion_point(class_specific_merge_from_start:CleanerInitAckMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _internal_set_serversecret(from._internal_serversecret()); } - if (from.has_serversecret()) { - set_serversecret(from.serversecret()); + if (cached_has_bits & 0x00000002u) { + serverversion_ = from.serverversion_; } + _has_bits_[0] |= cached_has_bits; } } void CleanerInitAckMessage::CopyFrom(const CleanerInitAckMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:CleanerInitAckMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool CleanerInitAckMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - + if (_Internal::MissingRequiredFields(_has_bits_)) return false; return true; } -void CleanerInitAckMessage::Swap(CleanerInitAckMessage* other) { - if (other != this) { - std::swap(serverversion_, other->serverversion_); - std::swap(serversecret_, other->serversecret_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } +void CleanerInitAckMessage::InternalSwap(CleanerInitAckMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + serversecret_.Swap(&other->serversecret_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(serverversion_, other->serverversion_); } -::std::string CleanerInitAckMessage::GetTypeName() const { +std::string CleanerInitAckMessage::GetTypeName() const { return "CleanerInitAckMessage"; } // =================================================================== -#ifndef _MSC_VER -const int CleanerChatRequestMessage::kRequestIdFieldNumber; -const int CleanerChatRequestMessage::kCleanerChatTypeFieldNumber; -const int CleanerChatRequestMessage::kGameIdFieldNumber; -const int CleanerChatRequestMessage::kPlayerIdFieldNumber; -const int CleanerChatRequestMessage::kPlayerNameFieldNumber; -const int CleanerChatRequestMessage::kChatMessageFieldNumber; -#endif // !_MSC_VER - -CleanerChatRequestMessage::CleanerChatRequestMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - void CleanerChatRequestMessage::InitAsDefaultInstance() { } +class CleanerChatRequestMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_requestid(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_cleanerchattype(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 32u; + } + static void set_has_playername(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_chatmessage(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x0000002f) ^ 0x0000002f) != 0; + } +}; -CleanerChatRequestMessage::CleanerChatRequestMessage(const CleanerChatRequestMessage& from) - : ::google::protobuf::MessageLite() { +CleanerChatRequestMessage::CleanerChatRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { SharedCtor(); - MergeFrom(from); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:CleanerChatRequestMessage) +} +CleanerChatRequestMessage::CleanerChatRequestMessage(const CleanerChatRequestMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + playername_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_playername()) { + playername_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_playername(), + GetArena()); + } + chatmessage_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_chatmessage()) { + chatmessage_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_chatmessage(), + GetArena()); + } + ::memcpy(&requestid_, &from.requestid_, + static_cast(reinterpret_cast(&playerid_) - + reinterpret_cast(&requestid_)) + sizeof(playerid_)); + // @@protoc_insertion_point(copy_constructor:CleanerChatRequestMessage) } void CleanerChatRequestMessage::SharedCtor() { - _cached_size_ = 0; - requestid_ = 0u; - cleanerchattype_ = 0; - gameid_ = 0u; - playerid_ = 0u; - playername_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - chatmessage_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CleanerChatRequestMessage_chatcleaner_2eproto.base); + playername_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + chatmessage_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&requestid_, 0, static_cast( + reinterpret_cast(&playerid_) - + reinterpret_cast(&requestid_)) + sizeof(playerid_)); } CleanerChatRequestMessage::~CleanerChatRequestMessage() { SharedDtor(); + _internal_metadata_.Delete(); } void CleanerChatRequestMessage::SharedDtor() { - if (playername_ != &::google::protobuf::internal::kEmptyString) { - delete playername_; - } - if (chatmessage_ != &::google::protobuf::internal::kEmptyString) { - delete chatmessage_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } + GOOGLE_DCHECK(GetArena() == nullptr); + playername_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + chatmessage_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } +void CleanerChatRequestMessage::ArenaDtor(void* object) { + CleanerChatRequestMessage* _this = reinterpret_cast< CleanerChatRequestMessage* >(object); + (void)_this; +} +void CleanerChatRequestMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void CleanerChatRequestMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const CleanerChatRequestMessage& CleanerChatRequestMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_chatcleaner_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_chatcleaner_2eproto(); -#endif - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CleanerChatRequestMessage_chatcleaner_2eproto.base); + return *internal_default_instance(); } -CleanerChatRequestMessage* CleanerChatRequestMessage::default_instance_ = NULL; - -CleanerChatRequestMessage* CleanerChatRequestMessage::New() const { - return new CleanerChatRequestMessage; -} void CleanerChatRequestMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - requestid_ = 0u; - cleanerchattype_ = 0; - gameid_ = 0u; - playerid_ = 0u; - if (has_playername()) { - if (playername_ != &::google::protobuf::internal::kEmptyString) { - playername_->clear(); - } +// @@protoc_insertion_point(message_clear_start:CleanerChatRequestMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + playername_.ClearNonDefaultToEmpty(); } - if (has_chatmessage()) { - if (chatmessage_ != &::google::protobuf::internal::kEmptyString) { - chatmessage_->clear(); - } + if (cached_has_bits & 0x00000002u) { + chatmessage_.ClearNonDefaultToEmpty(); } } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + if (cached_has_bits & 0x0000003cu) { + ::memset(&requestid_, 0, static_cast( + reinterpret_cast(&playerid_) - + reinterpret_cast(&requestid_)) + sizeof(playerid_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); } -bool CleanerChatRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { +const char* CleanerChatRequestMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { // required uint32 requestId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &requestid_))); - set_has_requestid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_cleanerChatType; - break; - } - + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_requestid(&has_bits); + requestid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // required .CleanerChatType cleanerChatType = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_cleanerChatType: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::CleanerChatType_IsValid(value)) { - set_cleanerchattype(static_cast< ::CleanerChatType >(value)); + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::CleanerChatType_IsValid(val))) { + _internal_set_cleanerchattype(static_cast<::CleanerChatType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_gameId; - break; - } - + } else goto handle_unusual; + continue; // optional uint32 gameId = 3 [default = 0]; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_gameId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_playerId; - break; - } - + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // required uint32 playerId = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(42)) goto parse_playerName; - break; - } - + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // required string playerName = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_playerName: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_playername())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(50)) goto parse_chatMessage; - break; - } - + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_playername(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; // required string chatMessage = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_chatMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_chatmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + auto str = _internal_mutable_chatmessage(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; } - } - } - return true; -#undef DO_ + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ } -void CleanerChatRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { +::PROTOBUF_NAMESPACE_ID::uint8* CleanerChatRequestMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:CleanerChatRequestMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // required uint32 requestId = 1; - if (has_requestid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_requestid(), target); } // required .CleanerChatType cleanerChatType = 2; - if (has_cleanerchattype()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->cleanerchattype(), output); + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_cleanerchattype(), target); } // optional uint32 gameId = 3 [default = 0]; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->gameid(), output); + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_gameid(), target); } // required uint32 playerId = 4; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->playerid(), output); + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_playerid(), target); } // required string playerName = 5; - if (has_playername()) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 5, this->playername(), output); + if (cached_has_bits & 0x00000001u) { + target = stream->WriteStringMaybeAliased( + 5, this->_internal_playername(), target); } // required string chatMessage = 6; - if (has_chatmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 6, this->chatmessage(), output); + if (cached_has_bits & 0x00000002u) { + target = stream->WriteStringMaybeAliased( + 6, this->_internal_chatmessage(), target); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:CleanerChatRequestMessage) + return target; } -int CleanerChatRequestMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 requestId = 1; - if (has_requestid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - } - - // required .CleanerChatType cleanerChatType = 2; - if (has_cleanerchattype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->cleanerchattype()); - } - - // optional uint32 gameId = 3 [default = 0]; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 playerId = 4; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } +size_t CleanerChatRequestMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:CleanerChatRequestMessage) + size_t total_size = 0; + if (_internal_has_playername()) { // required string playerName = 5; - if (has_playername()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->playername()); - } + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_playername()); + } + + if (_internal_has_chatmessage()) { + // required string chatMessage = 6; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_chatmessage()); + } + + if (_internal_has_requestid()) { + // required uint32 requestId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_requestid()); + } + + if (_internal_has_cleanerchattype()) { + // required .CleanerChatType cleanerChatType = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_cleanerchattype()); + } + + if (_internal_has_playerid()) { + // required uint32 playerId = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + return total_size; +} +size_t CleanerChatRequestMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:CleanerChatRequestMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x0000002f) ^ 0x0000002f) == 0) { // All required fields are present. + // required string playerName = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_playername()); // required string chatMessage = 6; - if (has_chatmessage()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->chatmessage()); - } + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_chatmessage()); + // required uint32 requestId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_requestid()); + + // required .CleanerChatType cleanerChatType = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_cleanerchattype()); + + // required uint32 playerId = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // optional uint32 gameId = 3 [default = 0]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000010u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } void CleanerChatRequestMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); } void CleanerChatRequestMessage::MergeFrom(const CleanerChatRequestMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_requestid()) { - set_requestid(from.requestid()); +// @@protoc_insertion_point(class_specific_merge_from_start:CleanerChatRequestMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000003fu) { + if (cached_has_bits & 0x00000001u) { + _internal_set_playername(from._internal_playername()); } - if (from.has_cleanerchattype()) { - set_cleanerchattype(from.cleanerchattype()); + if (cached_has_bits & 0x00000002u) { + _internal_set_chatmessage(from._internal_chatmessage()); } - if (from.has_gameid()) { - set_gameid(from.gameid()); + if (cached_has_bits & 0x00000004u) { + requestid_ = from.requestid_; } - if (from.has_playerid()) { - set_playerid(from.playerid()); + if (cached_has_bits & 0x00000008u) { + cleanerchattype_ = from.cleanerchattype_; } - if (from.has_playername()) { - set_playername(from.playername()); + if (cached_has_bits & 0x00000010u) { + gameid_ = from.gameid_; } - if (from.has_chatmessage()) { - set_chatmessage(from.chatmessage()); + if (cached_has_bits & 0x00000020u) { + playerid_ = from.playerid_; } + _has_bits_[0] |= cached_has_bits; } } void CleanerChatRequestMessage::CopyFrom(const CleanerChatRequestMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:CleanerChatRequestMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool CleanerChatRequestMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x0000003b) != 0x0000003b) return false; - + if (_Internal::MissingRequiredFields(_has_bits_)) return false; return true; } -void CleanerChatRequestMessage::Swap(CleanerChatRequestMessage* other) { - if (other != this) { - std::swap(requestid_, other->requestid_); - std::swap(cleanerchattype_, other->cleanerchattype_); - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(playername_, other->playername_); - std::swap(chatmessage_, other->chatmessage_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } +void CleanerChatRequestMessage::InternalSwap(CleanerChatRequestMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + playername_.Swap(&other->playername_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + chatmessage_.Swap(&other->chatmessage_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(CleanerChatRequestMessage, playerid_) + + sizeof(CleanerChatRequestMessage::playerid_) + - PROTOBUF_FIELD_OFFSET(CleanerChatRequestMessage, requestid_)>( + reinterpret_cast(&requestid_), + reinterpret_cast(&other->requestid_)); } -::std::string CleanerChatRequestMessage::GetTypeName() const { +std::string CleanerChatRequestMessage::GetTypeName() const { return "CleanerChatRequestMessage"; } // =================================================================== -bool CleanerChatReplyMessage_CleanerActionType_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage::cleanerActionNone; -const CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage::cleanerActionWarning; -const CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage::cleanerActionKick; -const CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage::cleanerActionBan; -const CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage::cleanerActionMute; -const CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage::CleanerActionType_MIN; -const CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage::CleanerActionType_MAX; -const int CleanerChatReplyMessage::CleanerActionType_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int CleanerChatReplyMessage::kRequestIdFieldNumber; -const int CleanerChatReplyMessage::kCleanerChatTypeFieldNumber; -const int CleanerChatReplyMessage::kGameIdFieldNumber; -const int CleanerChatReplyMessage::kPlayerIdFieldNumber; -const int CleanerChatReplyMessage::kCleanerActionTypeFieldNumber; -const int CleanerChatReplyMessage::kCleanerTextFieldNumber; -#endif // !_MSC_VER - -CleanerChatReplyMessage::CleanerChatReplyMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - void CleanerChatReplyMessage::InitAsDefaultInstance() { } +class CleanerChatReplyMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_requestid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_cleanerchattype(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static void set_has_cleaneractiontype(HasBits* has_bits) { + (*has_bits)[0] |= 32u; + } + static void set_has_cleanertext(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000036) ^ 0x00000036) != 0; + } +}; -CleanerChatReplyMessage::CleanerChatReplyMessage(const CleanerChatReplyMessage& from) - : ::google::protobuf::MessageLite() { +CleanerChatReplyMessage::CleanerChatReplyMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { SharedCtor(); - MergeFrom(from); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:CleanerChatReplyMessage) +} +CleanerChatReplyMessage::CleanerChatReplyMessage(const CleanerChatReplyMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + cleanertext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_cleanertext()) { + cleanertext_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_cleanertext(), + GetArena()); + } + ::memcpy(&requestid_, &from.requestid_, + static_cast(reinterpret_cast(&cleaneractiontype_) - + reinterpret_cast(&requestid_)) + sizeof(cleaneractiontype_)); + // @@protoc_insertion_point(copy_constructor:CleanerChatReplyMessage) } void CleanerChatReplyMessage::SharedCtor() { - _cached_size_ = 0; - requestid_ = 0u; - cleanerchattype_ = 0; - gameid_ = 0u; - playerid_ = 0u; - cleaneractiontype_ = 0; - cleanertext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CleanerChatReplyMessage_chatcleaner_2eproto.base); + cleanertext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&requestid_, 0, static_cast( + reinterpret_cast(&cleaneractiontype_) - + reinterpret_cast(&requestid_)) + sizeof(cleaneractiontype_)); } CleanerChatReplyMessage::~CleanerChatReplyMessage() { SharedDtor(); + _internal_metadata_.Delete(); } void CleanerChatReplyMessage::SharedDtor() { - if (cleanertext_ != &::google::protobuf::internal::kEmptyString) { - delete cleanertext_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } + GOOGLE_DCHECK(GetArena() == nullptr); + cleanertext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } +void CleanerChatReplyMessage::ArenaDtor(void* object) { + CleanerChatReplyMessage* _this = reinterpret_cast< CleanerChatReplyMessage* >(object); + (void)_this; +} +void CleanerChatReplyMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void CleanerChatReplyMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const CleanerChatReplyMessage& CleanerChatReplyMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_chatcleaner_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_chatcleaner_2eproto(); -#endif - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CleanerChatReplyMessage_chatcleaner_2eproto.base); + return *internal_default_instance(); } -CleanerChatReplyMessage* CleanerChatReplyMessage::default_instance_ = NULL; - -CleanerChatReplyMessage* CleanerChatReplyMessage::New() const { - return new CleanerChatReplyMessage; -} void CleanerChatReplyMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - requestid_ = 0u; - cleanerchattype_ = 0; - gameid_ = 0u; - playerid_ = 0u; - cleaneractiontype_ = 0; - if (has_cleanertext()) { - if (cleanertext_ != &::google::protobuf::internal::kEmptyString) { - cleanertext_->clear(); - } - } +// @@protoc_insertion_point(message_clear_start:CleanerChatReplyMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + cleanertext_.ClearNonDefaultToEmpty(); } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + if (cached_has_bits & 0x0000003eu) { + ::memset(&requestid_, 0, static_cast( + reinterpret_cast(&cleaneractiontype_) - + reinterpret_cast(&requestid_)) + sizeof(cleaneractiontype_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); } -bool CleanerChatReplyMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { +const char* CleanerChatReplyMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { // required uint32 requestId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &requestid_))); - set_has_requestid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_cleanerChatType; - break; - } - + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_requestid(&has_bits); + requestid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // required .CleanerChatType cleanerChatType = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_cleanerChatType: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::CleanerChatType_IsValid(value)) { - set_cleanerchattype(static_cast< ::CleanerChatType >(value)); + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::CleanerChatType_IsValid(val))) { + _internal_set_cleanerchattype(static_cast<::CleanerChatType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_gameId; - break; - } - + } else goto handle_unusual; + continue; // optional uint32 gameId = 3 [default = 0]; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_gameId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_playerId; - break; - } - + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // required uint32 playerId = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_cleanerActionType; - break; - } - + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // required .CleanerChatReplyMessage.CleanerActionType cleanerActionType = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_cleanerActionType: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::CleanerChatReplyMessage_CleanerActionType_IsValid(value)) { - set_cleaneractiontype(static_cast< ::CleanerChatReplyMessage_CleanerActionType >(value)); + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::CleanerChatReplyMessage_CleanerActionType_IsValid(val))) { + _internal_set_cleaneractiontype(static_cast<::CleanerChatReplyMessage_CleanerActionType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields()); } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(50)) goto parse_cleanerText; - break; - } - + } else goto handle_unusual; + continue; // optional string cleanerText = 6 [default = ""]; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_cleanerText: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_cleanertext())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + auto str = _internal_mutable_cleanertext(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; } - } - } - return true; -#undef DO_ + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ } -void CleanerChatReplyMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { +::PROTOBUF_NAMESPACE_ID::uint8* CleanerChatReplyMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:CleanerChatReplyMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // required uint32 requestId = 1; - if (has_requestid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_requestid(), target); } // required .CleanerChatType cleanerChatType = 2; - if (has_cleanerchattype()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->cleanerchattype(), output); + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_cleanerchattype(), target); } // optional uint32 gameId = 3 [default = 0]; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->gameid(), output); + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_gameid(), target); } // required uint32 playerId = 4; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->playerid(), output); + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_playerid(), target); } // required .CleanerChatReplyMessage.CleanerActionType cleanerActionType = 5; - if (has_cleaneractiontype()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 5, this->cleaneractiontype(), output); + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 5, this->_internal_cleaneractiontype(), target); } // optional string cleanerText = 6 [default = ""]; - if (has_cleanertext()) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 6, this->cleanertext(), output); + if (cached_has_bits & 0x00000001u) { + target = stream->WriteStringMaybeAliased( + 6, this->_internal_cleanertext(), target); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:CleanerChatReplyMessage) + return target; } -int CleanerChatReplyMessage::ByteSize() const { - int total_size = 0; +size_t CleanerChatReplyMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:CleanerChatReplyMessage) + size_t total_size = 0; - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (_internal_has_requestid()) { // required uint32 requestId = 1; - if (has_requestid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - } + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_requestid()); + } + + if (_internal_has_cleanerchattype()) { + // required .CleanerChatType cleanerChatType = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_cleanerchattype()); + } + + if (_internal_has_playerid()) { + // required uint32 playerId = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + if (_internal_has_cleaneractiontype()) { + // required .CleanerChatReplyMessage.CleanerActionType cleanerActionType = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_cleaneractiontype()); + } + + return total_size; +} +size_t CleanerChatReplyMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:CleanerChatReplyMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000036) ^ 0x00000036) == 0) { // All required fields are present. + // required uint32 requestId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_requestid()); // required .CleanerChatType cleanerChatType = 2; - if (has_cleanerchattype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->cleanerchattype()); - } - - // optional uint32 gameId = 3 [default = 0]; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_cleanerchattype()); // required uint32 playerId = 4; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); // required .CleanerChatReplyMessage.CleanerActionType cleanerActionType = 5; - if (has_cleaneractiontype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->cleaneractiontype()); - } - - // optional string cleanerText = 6 [default = ""]; - if (has_cleanertext()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->cleanertext()); - } + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_cleaneractiontype()); + } else { + total_size += RequiredFieldsByteSizeFallback(); } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // optional string cleanerText = 6 [default = ""]; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_cleanertext()); + } + + // optional uint32 gameId = 3 [default = 0]; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } void CleanerChatReplyMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); } void CleanerChatReplyMessage::MergeFrom(const CleanerChatReplyMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_requestid()) { - set_requestid(from.requestid()); +// @@protoc_insertion_point(class_specific_merge_from_start:CleanerChatReplyMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000003fu) { + if (cached_has_bits & 0x00000001u) { + _internal_set_cleanertext(from._internal_cleanertext()); } - if (from.has_cleanerchattype()) { - set_cleanerchattype(from.cleanerchattype()); + if (cached_has_bits & 0x00000002u) { + requestid_ = from.requestid_; } - if (from.has_gameid()) { - set_gameid(from.gameid()); + if (cached_has_bits & 0x00000004u) { + cleanerchattype_ = from.cleanerchattype_; } - if (from.has_playerid()) { - set_playerid(from.playerid()); + if (cached_has_bits & 0x00000008u) { + gameid_ = from.gameid_; } - if (from.has_cleaneractiontype()) { - set_cleaneractiontype(from.cleaneractiontype()); + if (cached_has_bits & 0x00000010u) { + playerid_ = from.playerid_; } - if (from.has_cleanertext()) { - set_cleanertext(from.cleanertext()); + if (cached_has_bits & 0x00000020u) { + cleaneractiontype_ = from.cleaneractiontype_; } + _has_bits_[0] |= cached_has_bits; } } void CleanerChatReplyMessage::CopyFrom(const CleanerChatReplyMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:CleanerChatReplyMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool CleanerChatReplyMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x0000001b) != 0x0000001b) return false; - + if (_Internal::MissingRequiredFields(_has_bits_)) return false; return true; } -void CleanerChatReplyMessage::Swap(CleanerChatReplyMessage* other) { - if (other != this) { - std::swap(requestid_, other->requestid_); - std::swap(cleanerchattype_, other->cleanerchattype_); - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(cleaneractiontype_, other->cleaneractiontype_); - std::swap(cleanertext_, other->cleanertext_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } +void CleanerChatReplyMessage::InternalSwap(CleanerChatReplyMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + cleanertext_.Swap(&other->cleanertext_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(CleanerChatReplyMessage, cleaneractiontype_) + + sizeof(CleanerChatReplyMessage::cleaneractiontype_) + - PROTOBUF_FIELD_OFFSET(CleanerChatReplyMessage, requestid_)>( + reinterpret_cast(&requestid_), + reinterpret_cast(&other->requestid_)); } -::std::string CleanerChatReplyMessage::GetTypeName() const { +std::string CleanerChatReplyMessage::GetTypeName() const { return "CleanerChatReplyMessage"; } // =================================================================== -bool ChatCleanerMessage_ChatCleanerMessageType_IsValid(int value) { - switch(value) { - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage::Type_CleanerInitMessage; -const ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage::Type_CleanerInitAckMessage; -const ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage::Type_CleanerChatRequestMessage; -const ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage::Type_CleanerChatReplyMessage; -const ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage::ChatCleanerMessageType_MIN; -const ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage::ChatCleanerMessageType_MAX; -const int ChatCleanerMessage::ChatCleanerMessageType_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int ChatCleanerMessage::kMessageTypeFieldNumber; -const int ChatCleanerMessage::kCleanerInitMessageFieldNumber; -const int ChatCleanerMessage::kCleanerInitAckMessageFieldNumber; -const int ChatCleanerMessage::kCleanerChatRequestMessageFieldNumber; -const int ChatCleanerMessage::kCleanerChatReplyMessageFieldNumber; -#endif // !_MSC_VER - -ChatCleanerMessage::ChatCleanerMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - void ChatCleanerMessage::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - cleanerinitmessage_ = const_cast< ::CleanerInitMessage*>( + ::_ChatCleanerMessage_default_instance_._instance.get_mutable()->cleanerinitmessage_ = const_cast< ::CleanerInitMessage*>( ::CleanerInitMessage::internal_default_instance()); -#else - cleanerinitmessage_ = const_cast< ::CleanerInitMessage*>(&::CleanerInitMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - cleanerinitackmessage_ = const_cast< ::CleanerInitAckMessage*>( + ::_ChatCleanerMessage_default_instance_._instance.get_mutable()->cleanerinitackmessage_ = const_cast< ::CleanerInitAckMessage*>( ::CleanerInitAckMessage::internal_default_instance()); -#else - cleanerinitackmessage_ = const_cast< ::CleanerInitAckMessage*>(&::CleanerInitAckMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - cleanerchatrequestmessage_ = const_cast< ::CleanerChatRequestMessage*>( + ::_ChatCleanerMessage_default_instance_._instance.get_mutable()->cleanerchatrequestmessage_ = const_cast< ::CleanerChatRequestMessage*>( ::CleanerChatRequestMessage::internal_default_instance()); -#else - cleanerchatrequestmessage_ = const_cast< ::CleanerChatRequestMessage*>(&::CleanerChatRequestMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - cleanerchatreplymessage_ = const_cast< ::CleanerChatReplyMessage*>( + ::_ChatCleanerMessage_default_instance_._instance.get_mutable()->cleanerchatreplymessage_ = const_cast< ::CleanerChatReplyMessage*>( ::CleanerChatReplyMessage::internal_default_instance()); -#else - cleanerchatreplymessage_ = const_cast< ::CleanerChatReplyMessage*>(&::CleanerChatReplyMessage::default_instance()); -#endif } +class ChatCleanerMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_messagetype(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static const ::CleanerInitMessage& cleanerinitmessage(const ChatCleanerMessage* msg); + static void set_has_cleanerinitmessage(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::CleanerInitAckMessage& cleanerinitackmessage(const ChatCleanerMessage* msg); + static void set_has_cleanerinitackmessage(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static const ::CleanerChatRequestMessage& cleanerchatrequestmessage(const ChatCleanerMessage* msg); + static void set_has_cleanerchatrequestmessage(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static const ::CleanerChatReplyMessage& cleanerchatreplymessage(const ChatCleanerMessage* msg); + static void set_has_cleanerchatreplymessage(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000010) ^ 0x00000010) != 0; + } +}; -ChatCleanerMessage::ChatCleanerMessage(const ChatCleanerMessage& from) - : ::google::protobuf::MessageLite() { +const ::CleanerInitMessage& +ChatCleanerMessage::_Internal::cleanerinitmessage(const ChatCleanerMessage* msg) { + return *msg->cleanerinitmessage_; +} +const ::CleanerInitAckMessage& +ChatCleanerMessage::_Internal::cleanerinitackmessage(const ChatCleanerMessage* msg) { + return *msg->cleanerinitackmessage_; +} +const ::CleanerChatRequestMessage& +ChatCleanerMessage::_Internal::cleanerchatrequestmessage(const ChatCleanerMessage* msg) { + return *msg->cleanerchatrequestmessage_; +} +const ::CleanerChatReplyMessage& +ChatCleanerMessage::_Internal::cleanerchatreplymessage(const ChatCleanerMessage* msg) { + return *msg->cleanerchatreplymessage_; +} +ChatCleanerMessage::ChatCleanerMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { SharedCtor(); - MergeFrom(from); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:ChatCleanerMessage) +} +ChatCleanerMessage::ChatCleanerMessage(const ChatCleanerMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from._internal_has_cleanerinitmessage()) { + cleanerinitmessage_ = new ::CleanerInitMessage(*from.cleanerinitmessage_); + } else { + cleanerinitmessage_ = nullptr; + } + if (from._internal_has_cleanerinitackmessage()) { + cleanerinitackmessage_ = new ::CleanerInitAckMessage(*from.cleanerinitackmessage_); + } else { + cleanerinitackmessage_ = nullptr; + } + if (from._internal_has_cleanerchatrequestmessage()) { + cleanerchatrequestmessage_ = new ::CleanerChatRequestMessage(*from.cleanerchatrequestmessage_); + } else { + cleanerchatrequestmessage_ = nullptr; + } + if (from._internal_has_cleanerchatreplymessage()) { + cleanerchatreplymessage_ = new ::CleanerChatReplyMessage(*from.cleanerchatreplymessage_); + } else { + cleanerchatreplymessage_ = nullptr; + } + messagetype_ = from.messagetype_; + // @@protoc_insertion_point(copy_constructor:ChatCleanerMessage) } void ChatCleanerMessage::SharedCtor() { - _cached_size_ = 0; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ChatCleanerMessage_chatcleaner_2eproto.base); + ::memset(&cleanerinitmessage_, 0, static_cast( + reinterpret_cast(&cleanerchatreplymessage_) - + reinterpret_cast(&cleanerinitmessage_)) + sizeof(cleanerchatreplymessage_)); messagetype_ = 1; - cleanerinitmessage_ = NULL; - cleanerinitackmessage_ = NULL; - cleanerchatrequestmessage_ = NULL; - cleanerchatreplymessage_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } ChatCleanerMessage::~ChatCleanerMessage() { SharedDtor(); + _internal_metadata_.Delete(); } void ChatCleanerMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete cleanerinitmessage_; - delete cleanerinitackmessage_; - delete cleanerchatrequestmessage_; - delete cleanerchatreplymessage_; - } + GOOGLE_DCHECK(GetArena() == nullptr); + if (this != internal_default_instance()) delete cleanerinitmessage_; + if (this != internal_default_instance()) delete cleanerinitackmessage_; + if (this != internal_default_instance()) delete cleanerchatrequestmessage_; + if (this != internal_default_instance()) delete cleanerchatreplymessage_; } +void ChatCleanerMessage::ArenaDtor(void* object) { + ChatCleanerMessage* _this = reinterpret_cast< ChatCleanerMessage* >(object); + (void)_this; +} +void ChatCleanerMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void ChatCleanerMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ChatCleanerMessage& ChatCleanerMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_chatcleaner_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_chatcleaner_2eproto(); -#endif - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ChatCleanerMessage_chatcleaner_2eproto.base); + return *internal_default_instance(); } -ChatCleanerMessage* ChatCleanerMessage::default_instance_ = NULL; - -ChatCleanerMessage* ChatCleanerMessage::New() const { - return new ChatCleanerMessage; -} void ChatCleanerMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { +// @@protoc_insertion_point(message_clear_start:ChatCleanerMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(cleanerinitmessage_ != nullptr); + cleanerinitmessage_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(cleanerinitackmessage_ != nullptr); + cleanerinitackmessage_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(cleanerchatrequestmessage_ != nullptr); + cleanerchatrequestmessage_->Clear(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(cleanerchatreplymessage_ != nullptr); + cleanerchatreplymessage_->Clear(); + } messagetype_ = 1; - if (has_cleanerinitmessage()) { - if (cleanerinitmessage_ != NULL) cleanerinitmessage_->::CleanerInitMessage::Clear(); - } - if (has_cleanerinitackmessage()) { - if (cleanerinitackmessage_ != NULL) cleanerinitackmessage_->::CleanerInitAckMessage::Clear(); - } - if (has_cleanerchatrequestmessage()) { - if (cleanerchatrequestmessage_ != NULL) cleanerchatrequestmessage_->::CleanerChatRequestMessage::Clear(); - } - if (has_cleanerchatreplymessage()) { - if (cleanerchatreplymessage_ != NULL) cleanerchatreplymessage_->::CleanerChatReplyMessage::Clear(); - } } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); + _internal_metadata_.Clear(); } -bool ChatCleanerMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { +const char* ChatCleanerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { // required .ChatCleanerMessage.ChatCleanerMessageType messageType = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::ChatCleanerMessage_ChatCleanerMessageType_IsValid(value)) { - set_messagetype(static_cast< ::ChatCleanerMessage_ChatCleanerMessageType >(value)); + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::ChatCleanerMessage_ChatCleanerMessageType_IsValid(val))) { + _internal_set_messagetype(static_cast<::ChatCleanerMessage_ChatCleanerMessageType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_cleanerInitMessage; - break; - } - + } else goto handle_unusual; + continue; // optional .CleanerInitMessage cleanerInitMessage = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_cleanerInitMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_cleanerinitmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_cleanerInitAckMessage; - break; - } - + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_cleanerinitmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .CleanerInitAckMessage cleanerInitAckMessage = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_cleanerInitAckMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_cleanerinitackmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_cleanerChatRequestMessage; - break; - } - + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_cleanerinitackmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .CleanerChatRequestMessage cleanerChatRequestMessage = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_cleanerChatRequestMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_cleanerchatrequestmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(42)) goto parse_cleanerChatReplyMessage; - break; - } - + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_cleanerchatrequestmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .CleanerChatReplyMessage cleanerChatReplyMessage = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_cleanerChatReplyMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_cleanerchatreplymessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_cleanerchatreplymessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; } - } - } - return true; -#undef DO_ + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ } -void ChatCleanerMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { +::PROTOBUF_NAMESPACE_ID::uint8* ChatCleanerMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:ChatCleanerMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // required .ChatCleanerMessage.ChatCleanerMessageType messageType = 1; - if (has_messagetype()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->messagetype(), output); + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 1, this->_internal_messagetype(), target); } // optional .CleanerInitMessage cleanerInitMessage = 2; - if (has_cleanerinitmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, this->cleanerinitmessage(), output); + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::cleanerinitmessage(this), target, stream); } // optional .CleanerInitAckMessage cleanerInitAckMessage = 3; - if (has_cleanerinitackmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 3, this->cleanerinitackmessage(), output); + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 3, _Internal::cleanerinitackmessage(this), target, stream); } // optional .CleanerChatRequestMessage cleanerChatRequestMessage = 4; - if (has_cleanerchatrequestmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 4, this->cleanerchatrequestmessage(), output); + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 4, _Internal::cleanerchatrequestmessage(this), target, stream); } // optional .CleanerChatReplyMessage cleanerChatReplyMessage = 5; - if (has_cleanerchatreplymessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 5, this->cleanerchatreplymessage(), output); + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 5, _Internal::cleanerchatreplymessage(this), target, stream); } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:ChatCleanerMessage) + return target; } -int ChatCleanerMessage::ByteSize() const { - int total_size = 0; +size_t ChatCleanerMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:ChatCleanerMessage) + size_t total_size = 0; - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .ChatCleanerMessage.ChatCleanerMessageType messageType = 1; - if (has_messagetype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->messagetype()); - } + // required .ChatCleanerMessage.ChatCleanerMessageType messageType = 1; + if (_internal_has_messagetype()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_messagetype()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { // optional .CleanerInitMessage cleanerInitMessage = 2; - if (has_cleanerinitmessage()) { + if (cached_has_bits & 0x00000001u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->cleanerinitmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *cleanerinitmessage_); } // optional .CleanerInitAckMessage cleanerInitAckMessage = 3; - if (has_cleanerinitackmessage()) { + if (cached_has_bits & 0x00000002u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->cleanerinitackmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *cleanerinitackmessage_); } // optional .CleanerChatRequestMessage cleanerChatRequestMessage = 4; - if (has_cleanerchatrequestmessage()) { + if (cached_has_bits & 0x00000004u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->cleanerchatrequestmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *cleanerchatrequestmessage_); } // optional .CleanerChatReplyMessage cleanerChatReplyMessage = 5; - if (has_cleanerchatreplymessage()) { + if (cached_has_bits & 0x00000008u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->cleanerchatreplymessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *cleanerchatreplymessage_); } } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } void ChatCleanerMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); } void ChatCleanerMessage::MergeFrom(const ChatCleanerMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_messagetype()) { - set_messagetype(from.messagetype()); +// @@protoc_insertion_point(class_specific_merge_from_start:ChatCleanerMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { + if (cached_has_bits & 0x00000001u) { + _internal_mutable_cleanerinitmessage()->::CleanerInitMessage::MergeFrom(from._internal_cleanerinitmessage()); } - if (from.has_cleanerinitmessage()) { - mutable_cleanerinitmessage()->::CleanerInitMessage::MergeFrom(from.cleanerinitmessage()); + if (cached_has_bits & 0x00000002u) { + _internal_mutable_cleanerinitackmessage()->::CleanerInitAckMessage::MergeFrom(from._internal_cleanerinitackmessage()); } - if (from.has_cleanerinitackmessage()) { - mutable_cleanerinitackmessage()->::CleanerInitAckMessage::MergeFrom(from.cleanerinitackmessage()); + if (cached_has_bits & 0x00000004u) { + _internal_mutable_cleanerchatrequestmessage()->::CleanerChatRequestMessage::MergeFrom(from._internal_cleanerchatrequestmessage()); } - if (from.has_cleanerchatrequestmessage()) { - mutable_cleanerchatrequestmessage()->::CleanerChatRequestMessage::MergeFrom(from.cleanerchatrequestmessage()); + if (cached_has_bits & 0x00000008u) { + _internal_mutable_cleanerchatreplymessage()->::CleanerChatReplyMessage::MergeFrom(from._internal_cleanerchatreplymessage()); } - if (from.has_cleanerchatreplymessage()) { - mutable_cleanerchatreplymessage()->::CleanerChatReplyMessage::MergeFrom(from.cleanerchatreplymessage()); + if (cached_has_bits & 0x00000010u) { + messagetype_ = from.messagetype_; } + _has_bits_[0] |= cached_has_bits; } } void ChatCleanerMessage::CopyFrom(const ChatCleanerMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:ChatCleanerMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool ChatCleanerMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - if (has_cleanerinitmessage()) { - if (!this->cleanerinitmessage().IsInitialized()) return false; + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + if (_internal_has_cleanerinitmessage()) { + if (!cleanerinitmessage_->IsInitialized()) return false; } - if (has_cleanerinitackmessage()) { - if (!this->cleanerinitackmessage().IsInitialized()) return false; + if (_internal_has_cleanerinitackmessage()) { + if (!cleanerinitackmessage_->IsInitialized()) return false; } - if (has_cleanerchatrequestmessage()) { - if (!this->cleanerchatrequestmessage().IsInitialized()) return false; + if (_internal_has_cleanerchatrequestmessage()) { + if (!cleanerchatrequestmessage_->IsInitialized()) return false; } - if (has_cleanerchatreplymessage()) { - if (!this->cleanerchatreplymessage().IsInitialized()) return false; + if (_internal_has_cleanerchatreplymessage()) { + if (!cleanerchatreplymessage_->IsInitialized()) return false; } return true; } -void ChatCleanerMessage::Swap(ChatCleanerMessage* other) { - if (other != this) { - std::swap(messagetype_, other->messagetype_); - std::swap(cleanerinitmessage_, other->cleanerinitmessage_); - std::swap(cleanerinitackmessage_, other->cleanerinitackmessage_); - std::swap(cleanerchatrequestmessage_, other->cleanerchatrequestmessage_); - std::swap(cleanerchatreplymessage_, other->cleanerchatreplymessage_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } +void ChatCleanerMessage::InternalSwap(ChatCleanerMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ChatCleanerMessage, cleanerchatreplymessage_) + + sizeof(ChatCleanerMessage::cleanerchatreplymessage_) + - PROTOBUF_FIELD_OFFSET(ChatCleanerMessage, cleanerinitmessage_)>( + reinterpret_cast(&cleanerinitmessage_), + reinterpret_cast(&other->cleanerinitmessage_)); + swap(messagetype_, other->messagetype_); } -::std::string ChatCleanerMessage::GetTypeName() const { +std::string ChatCleanerMessage::GetTypeName() const { return "ChatCleanerMessage"; } // @@protoc_insertion_point(namespace_scope) +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::CleanerInitMessage* Arena::CreateMaybeMessage< ::CleanerInitMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::CleanerInitMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::CleanerInitAckMessage* Arena::CreateMaybeMessage< ::CleanerInitAckMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::CleanerInitAckMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::CleanerChatRequestMessage* Arena::CreateMaybeMessage< ::CleanerChatRequestMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::CleanerChatRequestMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::CleanerChatReplyMessage* Arena::CreateMaybeMessage< ::CleanerChatReplyMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::CleanerChatReplyMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::ChatCleanerMessage* Arena::CreateMaybeMessage< ::ChatCleanerMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::ChatCleanerMessage >(arena); +} +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) +#include diff --git a/src/third_party/protobuf/chatcleaner.pb.h b/src/third_party/protobuf/chatcleaner.pb.h index 37dce473..2b59682c 100644 --- a/src/third_party/protobuf/chatcleaner.pb.h +++ b/src/third_party/protobuf/chatcleaner.pb.h @@ -1,42 +1,81 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: chatcleaner.proto -#ifndef PROTOBUF_chatcleaner_2eproto__INCLUDED -#define PROTOBUF_chatcleaner_2eproto__INCLUDED +#ifndef GOOGLE_PROTOBUF_INCLUDED_chatcleaner_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_chatcleaner_2eproto +#include #include -#include - -#if GOOGLE_PROTOBUF_VERSION < 2005000 +#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 incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#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 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 +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_chatcleaner_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_chatcleaner_2eproto(); -void protobuf_AssignDesc_chatcleaner_2eproto(); -void protobuf_ShutdownFile_chatcleaner_2eproto(); - -class CleanerInitMessage; -class CleanerInitAckMessage; -class CleanerChatRequestMessage; -class CleanerChatReplyMessage; +// Internal implementation detail -- do not use these members. +struct TableStruct_chatcleaner_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[5] + 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[]; +}; class ChatCleanerMessage; +class ChatCleanerMessageDefaultTypeInternal; +extern ChatCleanerMessageDefaultTypeInternal _ChatCleanerMessage_default_instance_; +class CleanerChatReplyMessage; +class CleanerChatReplyMessageDefaultTypeInternal; +extern CleanerChatReplyMessageDefaultTypeInternal _CleanerChatReplyMessage_default_instance_; +class CleanerChatRequestMessage; +class CleanerChatRequestMessageDefaultTypeInternal; +extern CleanerChatRequestMessageDefaultTypeInternal _CleanerChatRequestMessage_default_instance_; +class CleanerInitAckMessage; +class CleanerInitAckMessageDefaultTypeInternal; +extern CleanerInitAckMessageDefaultTypeInternal _CleanerInitAckMessage_default_instance_; +class CleanerInitMessage; +class CleanerInitMessageDefaultTypeInternal; +extern CleanerInitMessageDefaultTypeInternal _CleanerInitMessage_default_instance_; +PROTOBUF_NAMESPACE_OPEN +template<> ::ChatCleanerMessage* Arena::CreateMaybeMessage<::ChatCleanerMessage>(Arena*); +template<> ::CleanerChatReplyMessage* Arena::CreateMaybeMessage<::CleanerChatReplyMessage>(Arena*); +template<> ::CleanerChatRequestMessage* Arena::CreateMaybeMessage<::CleanerChatRequestMessage>(Arena*); +template<> ::CleanerInitAckMessage* Arena::CreateMaybeMessage<::CleanerInitAckMessage>(Arena*); +template<> ::CleanerInitMessage* Arena::CreateMaybeMessage<::CleanerInitMessage>(Arena*); +PROTOBUF_NAMESPACE_CLOSE -enum CleanerChatReplyMessage_CleanerActionType { +enum CleanerChatReplyMessage_CleanerActionType : int { CleanerChatReplyMessage_CleanerActionType_cleanerActionNone = 0, CleanerChatReplyMessage_CleanerActionType_cleanerActionWarning = 1, CleanerChatReplyMessage_CleanerActionType_cleanerActionKick = 2, @@ -44,766 +83,1274 @@ enum CleanerChatReplyMessage_CleanerActionType { CleanerChatReplyMessage_CleanerActionType_cleanerActionMute = 4 }; bool CleanerChatReplyMessage_CleanerActionType_IsValid(int value); -const CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage_CleanerActionType_CleanerActionType_MIN = CleanerChatReplyMessage_CleanerActionType_cleanerActionNone; -const CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage_CleanerActionType_CleanerActionType_MAX = CleanerChatReplyMessage_CleanerActionType_cleanerActionMute; -const int CleanerChatReplyMessage_CleanerActionType_CleanerActionType_ARRAYSIZE = CleanerChatReplyMessage_CleanerActionType_CleanerActionType_MAX + 1; +constexpr CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage_CleanerActionType_CleanerActionType_MIN = CleanerChatReplyMessage_CleanerActionType_cleanerActionNone; +constexpr CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage_CleanerActionType_CleanerActionType_MAX = CleanerChatReplyMessage_CleanerActionType_cleanerActionMute; +constexpr int CleanerChatReplyMessage_CleanerActionType_CleanerActionType_ARRAYSIZE = CleanerChatReplyMessage_CleanerActionType_CleanerActionType_MAX + 1; -enum ChatCleanerMessage_ChatCleanerMessageType { +const std::string& CleanerChatReplyMessage_CleanerActionType_Name(CleanerChatReplyMessage_CleanerActionType value); +template +inline const std::string& CleanerChatReplyMessage_CleanerActionType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function CleanerChatReplyMessage_CleanerActionType_Name."); + return CleanerChatReplyMessage_CleanerActionType_Name(static_cast(enum_t_value)); +} +bool CleanerChatReplyMessage_CleanerActionType_Parse( + const std::string& name, CleanerChatReplyMessage_CleanerActionType* value); +enum ChatCleanerMessage_ChatCleanerMessageType : int { ChatCleanerMessage_ChatCleanerMessageType_Type_CleanerInitMessage = 1, ChatCleanerMessage_ChatCleanerMessageType_Type_CleanerInitAckMessage = 2, ChatCleanerMessage_ChatCleanerMessageType_Type_CleanerChatRequestMessage = 3, ChatCleanerMessage_ChatCleanerMessageType_Type_CleanerChatReplyMessage = 4 }; bool ChatCleanerMessage_ChatCleanerMessageType_IsValid(int value); -const ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage_ChatCleanerMessageType_ChatCleanerMessageType_MIN = ChatCleanerMessage_ChatCleanerMessageType_Type_CleanerInitMessage; -const ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage_ChatCleanerMessageType_ChatCleanerMessageType_MAX = ChatCleanerMessage_ChatCleanerMessageType_Type_CleanerChatReplyMessage; -const int ChatCleanerMessage_ChatCleanerMessageType_ChatCleanerMessageType_ARRAYSIZE = ChatCleanerMessage_ChatCleanerMessageType_ChatCleanerMessageType_MAX + 1; +constexpr ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage_ChatCleanerMessageType_ChatCleanerMessageType_MIN = ChatCleanerMessage_ChatCleanerMessageType_Type_CleanerInitMessage; +constexpr ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage_ChatCleanerMessageType_ChatCleanerMessageType_MAX = ChatCleanerMessage_ChatCleanerMessageType_Type_CleanerChatReplyMessage; +constexpr int ChatCleanerMessage_ChatCleanerMessageType_ChatCleanerMessageType_ARRAYSIZE = ChatCleanerMessage_ChatCleanerMessageType_ChatCleanerMessageType_MAX + 1; -enum CleanerChatType { +const std::string& ChatCleanerMessage_ChatCleanerMessageType_Name(ChatCleanerMessage_ChatCleanerMessageType value); +template +inline const std::string& ChatCleanerMessage_ChatCleanerMessageType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ChatCleanerMessage_ChatCleanerMessageType_Name."); + return ChatCleanerMessage_ChatCleanerMessageType_Name(static_cast(enum_t_value)); +} +bool ChatCleanerMessage_ChatCleanerMessageType_Parse( + const std::string& name, ChatCleanerMessage_ChatCleanerMessageType* value); +enum CleanerChatType : int { cleanerChatTypeLobby = 0, cleanerChatTypeGame = 1 }; bool CleanerChatType_IsValid(int value); -const CleanerChatType CleanerChatType_MIN = cleanerChatTypeLobby; -const CleanerChatType CleanerChatType_MAX = cleanerChatTypeGame; -const int CleanerChatType_ARRAYSIZE = CleanerChatType_MAX + 1; +constexpr CleanerChatType CleanerChatType_MIN = cleanerChatTypeLobby; +constexpr CleanerChatType CleanerChatType_MAX = cleanerChatTypeGame; +constexpr int CleanerChatType_ARRAYSIZE = CleanerChatType_MAX + 1; +const std::string& CleanerChatType_Name(CleanerChatType value); +template +inline const std::string& CleanerChatType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function CleanerChatType_Name."); + return CleanerChatType_Name(static_cast(enum_t_value)); +} +bool CleanerChatType_Parse( + const std::string& name, CleanerChatType* value); // =================================================================== -class CleanerInitMessage : public ::google::protobuf::MessageLite { +class CleanerInitMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:CleanerInitMessage) */ { public: - CleanerInitMessage(); + inline CleanerInitMessage() : CleanerInitMessage(nullptr) {}; virtual ~CleanerInitMessage(); CleanerInitMessage(const CleanerInitMessage& from); + CleanerInitMessage(CleanerInitMessage&& from) noexcept + : CleanerInitMessage() { + *this = ::std::move(from); + } inline CleanerInitMessage& operator=(const CleanerInitMessage& from) { CopyFrom(from); return *this; } + inline CleanerInitMessage& operator=(CleanerInitMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const CleanerInitMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CleanerInitMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_CleanerInitMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 0; - void Swap(CleanerInitMessage* other); + friend void swap(CleanerInitMessage& a, CleanerInitMessage& b) { + a.Swap(&b); + } + inline void Swap(CleanerInitMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CleanerInitMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - CleanerInitMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline CleanerInitMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + CleanerInitMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const CleanerInitMessage& from); void MergeFrom(const CleanerInitMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(CleanerInitMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "CleanerInitMessage"; + } + protected: + explicit CleanerInitMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required uint32 requestedVersion = 1; - inline bool has_requestedversion() const; - inline void clear_requestedversion(); - static const int kRequestedVersionFieldNumber = 1; - inline ::google::protobuf::uint32 requestedversion() const; - inline void set_requestedversion(::google::protobuf::uint32 value); - + enum : int { + kClientSecretFieldNumber = 2, + kRequestedVersionFieldNumber = 1, + }; // required string clientSecret = 2; - inline bool has_clientsecret() const; - inline void clear_clientsecret(); - static const int kClientSecretFieldNumber = 2; - inline const ::std::string& clientsecret() const; - inline void set_clientsecret(const ::std::string& value); - inline void set_clientsecret(const char* value); - inline void set_clientsecret(const char* value, size_t size); - inline ::std::string* mutable_clientsecret(); - inline ::std::string* release_clientsecret(); - inline void set_allocated_clientsecret(::std::string* clientsecret); + bool has_clientsecret() const; + private: + bool _internal_has_clientsecret() const; + public: + void clear_clientsecret(); + const std::string& clientsecret() const; + void set_clientsecret(const std::string& value); + void set_clientsecret(std::string&& value); + void set_clientsecret(const char* value); + void set_clientsecret(const char* value, size_t size); + std::string* mutable_clientsecret(); + std::string* release_clientsecret(); + void set_allocated_clientsecret(std::string* clientsecret); + 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_clientsecret(); + 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_clientsecret( + std::string* clientsecret); + private: + const std::string& _internal_clientsecret() const; + void _internal_set_clientsecret(const std::string& value); + std::string* _internal_mutable_clientsecret(); + public: + + // required uint32 requestedVersion = 1; + bool has_requestedversion() const; + private: + bool _internal_has_requestedversion() const; + public: + void clear_requestedversion(); + ::PROTOBUF_NAMESPACE_ID::uint32 requestedversion() const; + void set_requestedversion(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_requestedversion() const; + void _internal_set_requestedversion(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:CleanerInitMessage) private: - inline void set_has_requestedversion(); - inline void clear_has_requestedversion(); - inline void set_has_clientsecret(); - inline void clear_has_clientsecret(); + class _Internal; - ::std::string* clientsecret_; - ::google::protobuf::uint32 requestedversion_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_chatcleaner_2eproto_impl(); - #else - friend void protobuf_AddDesc_chatcleaner_2eproto(); - #endif - friend void protobuf_AssignDesc_chatcleaner_2eproto(); - friend void protobuf_ShutdownFile_chatcleaner_2eproto(); - - void InitAsDefaultInstance(); - static CleanerInitMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr clientsecret_; + ::PROTOBUF_NAMESPACE_ID::uint32 requestedversion_; + friend struct ::TableStruct_chatcleaner_2eproto; }; // ------------------------------------------------------------------- -class CleanerInitAckMessage : public ::google::protobuf::MessageLite { +class CleanerInitAckMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:CleanerInitAckMessage) */ { public: - CleanerInitAckMessage(); + inline CleanerInitAckMessage() : CleanerInitAckMessage(nullptr) {}; virtual ~CleanerInitAckMessage(); CleanerInitAckMessage(const CleanerInitAckMessage& from); + CleanerInitAckMessage(CleanerInitAckMessage&& from) noexcept + : CleanerInitAckMessage() { + *this = ::std::move(from); + } inline CleanerInitAckMessage& operator=(const CleanerInitAckMessage& from) { CopyFrom(from); return *this; } + inline CleanerInitAckMessage& operator=(CleanerInitAckMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const CleanerInitAckMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CleanerInitAckMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_CleanerInitAckMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 1; - void Swap(CleanerInitAckMessage* other); + friend void swap(CleanerInitAckMessage& a, CleanerInitAckMessage& b) { + a.Swap(&b); + } + inline void Swap(CleanerInitAckMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CleanerInitAckMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - CleanerInitAckMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline CleanerInitAckMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + CleanerInitAckMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const CleanerInitAckMessage& from); void MergeFrom(const CleanerInitAckMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(CleanerInitAckMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "CleanerInitAckMessage"; + } + protected: + explicit CleanerInitAckMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required uint32 serverVersion = 1; - inline bool has_serverversion() const; - inline void clear_serverversion(); - static const int kServerVersionFieldNumber = 1; - inline ::google::protobuf::uint32 serverversion() const; - inline void set_serverversion(::google::protobuf::uint32 value); - + enum : int { + kServerSecretFieldNumber = 2, + kServerVersionFieldNumber = 1, + }; // required string serverSecret = 2; - inline bool has_serversecret() const; - inline void clear_serversecret(); - static const int kServerSecretFieldNumber = 2; - inline const ::std::string& serversecret() const; - inline void set_serversecret(const ::std::string& value); - inline void set_serversecret(const char* value); - inline void set_serversecret(const char* value, size_t size); - inline ::std::string* mutable_serversecret(); - inline ::std::string* release_serversecret(); - inline void set_allocated_serversecret(::std::string* serversecret); + bool has_serversecret() const; + private: + bool _internal_has_serversecret() const; + public: + void clear_serversecret(); + const std::string& serversecret() const; + void set_serversecret(const std::string& value); + void set_serversecret(std::string&& value); + void set_serversecret(const char* value); + void set_serversecret(const char* value, size_t size); + std::string* mutable_serversecret(); + std::string* release_serversecret(); + void set_allocated_serversecret(std::string* serversecret); + 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_serversecret(); + 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_serversecret( + std::string* serversecret); + private: + const std::string& _internal_serversecret() const; + void _internal_set_serversecret(const std::string& value); + std::string* _internal_mutable_serversecret(); + public: + + // required uint32 serverVersion = 1; + bool has_serverversion() const; + private: + bool _internal_has_serverversion() const; + public: + void clear_serverversion(); + ::PROTOBUF_NAMESPACE_ID::uint32 serverversion() const; + void set_serverversion(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_serverversion() const; + void _internal_set_serverversion(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:CleanerInitAckMessage) private: - inline void set_has_serverversion(); - inline void clear_has_serverversion(); - inline void set_has_serversecret(); - inline void clear_has_serversecret(); + class _Internal; - ::std::string* serversecret_; - ::google::protobuf::uint32 serverversion_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_chatcleaner_2eproto_impl(); - #else - friend void protobuf_AddDesc_chatcleaner_2eproto(); - #endif - friend void protobuf_AssignDesc_chatcleaner_2eproto(); - friend void protobuf_ShutdownFile_chatcleaner_2eproto(); - - void InitAsDefaultInstance(); - static CleanerInitAckMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr serversecret_; + ::PROTOBUF_NAMESPACE_ID::uint32 serverversion_; + friend struct ::TableStruct_chatcleaner_2eproto; }; // ------------------------------------------------------------------- -class CleanerChatRequestMessage : public ::google::protobuf::MessageLite { +class CleanerChatRequestMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:CleanerChatRequestMessage) */ { public: - CleanerChatRequestMessage(); + inline CleanerChatRequestMessage() : CleanerChatRequestMessage(nullptr) {}; virtual ~CleanerChatRequestMessage(); CleanerChatRequestMessage(const CleanerChatRequestMessage& from); + CleanerChatRequestMessage(CleanerChatRequestMessage&& from) noexcept + : CleanerChatRequestMessage() { + *this = ::std::move(from); + } inline CleanerChatRequestMessage& operator=(const CleanerChatRequestMessage& from) { CopyFrom(from); return *this; } + inline CleanerChatRequestMessage& operator=(CleanerChatRequestMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const CleanerChatRequestMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CleanerChatRequestMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_CleanerChatRequestMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 2; - void Swap(CleanerChatRequestMessage* other); + friend void swap(CleanerChatRequestMessage& a, CleanerChatRequestMessage& b) { + a.Swap(&b); + } + inline void Swap(CleanerChatRequestMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CleanerChatRequestMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - CleanerChatRequestMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline CleanerChatRequestMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + CleanerChatRequestMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const CleanerChatRequestMessage& from); void MergeFrom(const CleanerChatRequestMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(CleanerChatRequestMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "CleanerChatRequestMessage"; + } + protected: + explicit CleanerChatRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required uint32 requestId = 1; - inline bool has_requestid() const; - inline void clear_requestid(); - static const int kRequestIdFieldNumber = 1; - inline ::google::protobuf::uint32 requestid() const; - inline void set_requestid(::google::protobuf::uint32 value); - - // required .CleanerChatType cleanerChatType = 2; - inline bool has_cleanerchattype() const; - inline void clear_cleanerchattype(); - static const int kCleanerChatTypeFieldNumber = 2; - inline ::CleanerChatType cleanerchattype() const; - inline void set_cleanerchattype(::CleanerChatType value); - - // optional uint32 gameId = 3 [default = 0]; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 3; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); - - // required uint32 playerId = 4; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 4; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); - + enum : int { + kPlayerNameFieldNumber = 5, + kChatMessageFieldNumber = 6, + kRequestIdFieldNumber = 1, + kCleanerChatTypeFieldNumber = 2, + kGameIdFieldNumber = 3, + kPlayerIdFieldNumber = 4, + }; // required string playerName = 5; - inline bool has_playername() const; - inline void clear_playername(); - static const int kPlayerNameFieldNumber = 5; - inline const ::std::string& playername() const; - inline void set_playername(const ::std::string& value); - inline void set_playername(const char* value); - inline void set_playername(const char* value, size_t size); - inline ::std::string* mutable_playername(); - inline ::std::string* release_playername(); - inline void set_allocated_playername(::std::string* playername); + bool has_playername() const; + private: + bool _internal_has_playername() const; + public: + void clear_playername(); + const std::string& playername() const; + void set_playername(const std::string& value); + void set_playername(std::string&& value); + void set_playername(const char* value); + void set_playername(const char* value, size_t size); + std::string* mutable_playername(); + std::string* release_playername(); + void set_allocated_playername(std::string* playername); + 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_playername(); + 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_playername( + std::string* playername); + private: + const std::string& _internal_playername() const; + void _internal_set_playername(const std::string& value); + std::string* _internal_mutable_playername(); + public: // required string chatMessage = 6; - inline bool has_chatmessage() const; - inline void clear_chatmessage(); - static const int kChatMessageFieldNumber = 6; - inline const ::std::string& chatmessage() const; - inline void set_chatmessage(const ::std::string& value); - inline void set_chatmessage(const char* value); - inline void set_chatmessage(const char* value, size_t size); - inline ::std::string* mutable_chatmessage(); - inline ::std::string* release_chatmessage(); - inline void set_allocated_chatmessage(::std::string* chatmessage); + bool has_chatmessage() const; + private: + bool _internal_has_chatmessage() const; + public: + void clear_chatmessage(); + const std::string& chatmessage() const; + void set_chatmessage(const std::string& value); + void set_chatmessage(std::string&& value); + void set_chatmessage(const char* value); + void set_chatmessage(const char* value, size_t size); + std::string* mutable_chatmessage(); + std::string* release_chatmessage(); + void set_allocated_chatmessage(std::string* chatmessage); + 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_chatmessage(); + 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_chatmessage( + std::string* chatmessage); + private: + const std::string& _internal_chatmessage() const; + void _internal_set_chatmessage(const std::string& value); + std::string* _internal_mutable_chatmessage(); + public: + + // required uint32 requestId = 1; + bool has_requestid() const; + private: + bool _internal_has_requestid() const; + public: + void clear_requestid(); + ::PROTOBUF_NAMESPACE_ID::uint32 requestid() const; + void set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_requestid() const; + void _internal_set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // required .CleanerChatType cleanerChatType = 2; + bool has_cleanerchattype() const; + private: + bool _internal_has_cleanerchattype() const; + public: + void clear_cleanerchattype(); + ::CleanerChatType cleanerchattype() const; + void set_cleanerchattype(::CleanerChatType value); + private: + ::CleanerChatType _internal_cleanerchattype() const; + void _internal_set_cleanerchattype(::CleanerChatType value); + public: + + // optional uint32 gameId = 3 [default = 0]; + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // required uint32 playerId = 4; + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:CleanerChatRequestMessage) private: - inline void set_has_requestid(); - inline void clear_has_requestid(); - inline void set_has_cleanerchattype(); - inline void clear_has_cleanerchattype(); - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_playername(); - inline void clear_has_playername(); - inline void set_has_chatmessage(); - inline void clear_has_chatmessage(); + class _Internal; - ::google::protobuf::uint32 requestid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr playername_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr chatmessage_; + ::PROTOBUF_NAMESPACE_ID::uint32 requestid_; int cleanerchattype_; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 playerid_; - ::std::string* playername_; - ::std::string* chatmessage_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_chatcleaner_2eproto_impl(); - #else - friend void protobuf_AddDesc_chatcleaner_2eproto(); - #endif - friend void protobuf_AssignDesc_chatcleaner_2eproto(); - friend void protobuf_ShutdownFile_chatcleaner_2eproto(); - - void InitAsDefaultInstance(); - static CleanerChatRequestMessage* default_instance_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; + friend struct ::TableStruct_chatcleaner_2eproto; }; // ------------------------------------------------------------------- -class CleanerChatReplyMessage : public ::google::protobuf::MessageLite { +class CleanerChatReplyMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:CleanerChatReplyMessage) */ { public: - CleanerChatReplyMessage(); + inline CleanerChatReplyMessage() : CleanerChatReplyMessage(nullptr) {}; virtual ~CleanerChatReplyMessage(); CleanerChatReplyMessage(const CleanerChatReplyMessage& from); + CleanerChatReplyMessage(CleanerChatReplyMessage&& from) noexcept + : CleanerChatReplyMessage() { + *this = ::std::move(from); + } inline CleanerChatReplyMessage& operator=(const CleanerChatReplyMessage& from) { CopyFrom(from); return *this; } + inline CleanerChatReplyMessage& operator=(CleanerChatReplyMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const CleanerChatReplyMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CleanerChatReplyMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_CleanerChatReplyMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 3; - void Swap(CleanerChatReplyMessage* other); + friend void swap(CleanerChatReplyMessage& a, CleanerChatReplyMessage& b) { + a.Swap(&b); + } + inline void Swap(CleanerChatReplyMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CleanerChatReplyMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - CleanerChatReplyMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline CleanerChatReplyMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + CleanerChatReplyMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const CleanerChatReplyMessage& from); void MergeFrom(const CleanerChatReplyMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(CleanerChatReplyMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "CleanerChatReplyMessage"; + } + protected: + explicit CleanerChatReplyMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef CleanerChatReplyMessage_CleanerActionType CleanerActionType; - static const CleanerActionType cleanerActionNone = CleanerChatReplyMessage_CleanerActionType_cleanerActionNone; - static const CleanerActionType cleanerActionWarning = CleanerChatReplyMessage_CleanerActionType_cleanerActionWarning; - static const CleanerActionType cleanerActionKick = CleanerChatReplyMessage_CleanerActionType_cleanerActionKick; - static const CleanerActionType cleanerActionBan = CleanerChatReplyMessage_CleanerActionType_cleanerActionBan; - static const CleanerActionType cleanerActionMute = CleanerChatReplyMessage_CleanerActionType_cleanerActionMute; + static constexpr CleanerActionType cleanerActionNone = + CleanerChatReplyMessage_CleanerActionType_cleanerActionNone; + static constexpr CleanerActionType cleanerActionWarning = + CleanerChatReplyMessage_CleanerActionType_cleanerActionWarning; + static constexpr CleanerActionType cleanerActionKick = + CleanerChatReplyMessage_CleanerActionType_cleanerActionKick; + static constexpr CleanerActionType cleanerActionBan = + CleanerChatReplyMessage_CleanerActionType_cleanerActionBan; + static constexpr CleanerActionType cleanerActionMute = + CleanerChatReplyMessage_CleanerActionType_cleanerActionMute; static inline bool CleanerActionType_IsValid(int value) { return CleanerChatReplyMessage_CleanerActionType_IsValid(value); } - static const CleanerActionType CleanerActionType_MIN = + static constexpr CleanerActionType CleanerActionType_MIN = CleanerChatReplyMessage_CleanerActionType_CleanerActionType_MIN; - static const CleanerActionType CleanerActionType_MAX = + static constexpr CleanerActionType CleanerActionType_MAX = CleanerChatReplyMessage_CleanerActionType_CleanerActionType_MAX; - static const int CleanerActionType_ARRAYSIZE = + static constexpr int CleanerActionType_ARRAYSIZE = CleanerChatReplyMessage_CleanerActionType_CleanerActionType_ARRAYSIZE; + template + static inline const std::string& CleanerActionType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function CleanerActionType_Name."); + return CleanerChatReplyMessage_CleanerActionType_Name(enum_t_value); + } + static inline bool CleanerActionType_Parse(const std::string& name, + CleanerActionType* value) { + return CleanerChatReplyMessage_CleanerActionType_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kCleanerTextFieldNumber = 6, + kRequestIdFieldNumber = 1, + kCleanerChatTypeFieldNumber = 2, + kGameIdFieldNumber = 3, + kPlayerIdFieldNumber = 4, + kCleanerActionTypeFieldNumber = 5, + }; + // optional string cleanerText = 6 [default = ""]; + bool has_cleanertext() const; + private: + bool _internal_has_cleanertext() const; + public: + void clear_cleanertext(); + const std::string& cleanertext() const; + void set_cleanertext(const std::string& value); + void set_cleanertext(std::string&& value); + void set_cleanertext(const char* value); + void set_cleanertext(const char* value, size_t size); + std::string* mutable_cleanertext(); + std::string* release_cleanertext(); + void set_allocated_cleanertext(std::string* cleanertext); + 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_cleanertext(); + 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_cleanertext( + std::string* cleanertext); + private: + const std::string& _internal_cleanertext() const; + void _internal_set_cleanertext(const std::string& value); + std::string* _internal_mutable_cleanertext(); + public: + // required uint32 requestId = 1; - inline bool has_requestid() const; - inline void clear_requestid(); - static const int kRequestIdFieldNumber = 1; - inline ::google::protobuf::uint32 requestid() const; - inline void set_requestid(::google::protobuf::uint32 value); + bool has_requestid() const; + private: + bool _internal_has_requestid() const; + public: + void clear_requestid(); + ::PROTOBUF_NAMESPACE_ID::uint32 requestid() const; + void set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_requestid() const; + void _internal_set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .CleanerChatType cleanerChatType = 2; - inline bool has_cleanerchattype() const; - inline void clear_cleanerchattype(); - static const int kCleanerChatTypeFieldNumber = 2; - inline ::CleanerChatType cleanerchattype() const; - inline void set_cleanerchattype(::CleanerChatType value); + bool has_cleanerchattype() const; + private: + bool _internal_has_cleanerchattype() const; + public: + void clear_cleanerchattype(); + ::CleanerChatType cleanerchattype() const; + void set_cleanerchattype(::CleanerChatType value); + private: + ::CleanerChatType _internal_cleanerchattype() const; + void _internal_set_cleanerchattype(::CleanerChatType value); + public: // optional uint32 gameId = 3 [default = 0]; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 3; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerId = 4; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 4; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .CleanerChatReplyMessage.CleanerActionType cleanerActionType = 5; - inline bool has_cleaneractiontype() const; - inline void clear_cleaneractiontype(); - static const int kCleanerActionTypeFieldNumber = 5; - inline ::CleanerChatReplyMessage_CleanerActionType cleaneractiontype() const; - inline void set_cleaneractiontype(::CleanerChatReplyMessage_CleanerActionType value); - - // optional string cleanerText = 6 [default = ""]; - inline bool has_cleanertext() const; - inline void clear_cleanertext(); - static const int kCleanerTextFieldNumber = 6; - inline const ::std::string& cleanertext() const; - inline void set_cleanertext(const ::std::string& value); - inline void set_cleanertext(const char* value); - inline void set_cleanertext(const char* value, size_t size); - inline ::std::string* mutable_cleanertext(); - inline ::std::string* release_cleanertext(); - inline void set_allocated_cleanertext(::std::string* cleanertext); + bool has_cleaneractiontype() const; + private: + bool _internal_has_cleaneractiontype() const; + public: + void clear_cleaneractiontype(); + ::CleanerChatReplyMessage_CleanerActionType cleaneractiontype() const; + void set_cleaneractiontype(::CleanerChatReplyMessage_CleanerActionType value); + private: + ::CleanerChatReplyMessage_CleanerActionType _internal_cleaneractiontype() const; + void _internal_set_cleaneractiontype(::CleanerChatReplyMessage_CleanerActionType value); + public: // @@protoc_insertion_point(class_scope:CleanerChatReplyMessage) private: - inline void set_has_requestid(); - inline void clear_has_requestid(); - inline void set_has_cleanerchattype(); - inline void clear_has_cleanerchattype(); - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_cleaneractiontype(); - inline void clear_has_cleaneractiontype(); - inline void set_has_cleanertext(); - inline void clear_has_cleanertext(); + class _Internal; - ::google::protobuf::uint32 requestid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cleanertext_; + ::PROTOBUF_NAMESPACE_ID::uint32 requestid_; int cleanerchattype_; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 playerid_; - ::std::string* cleanertext_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; int cleaneractiontype_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_chatcleaner_2eproto_impl(); - #else - friend void protobuf_AddDesc_chatcleaner_2eproto(); - #endif - friend void protobuf_AssignDesc_chatcleaner_2eproto(); - friend void protobuf_ShutdownFile_chatcleaner_2eproto(); - - void InitAsDefaultInstance(); - static CleanerChatReplyMessage* default_instance_; + friend struct ::TableStruct_chatcleaner_2eproto; }; // ------------------------------------------------------------------- -class ChatCleanerMessage : public ::google::protobuf::MessageLite { +class ChatCleanerMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:ChatCleanerMessage) */ { public: - ChatCleanerMessage(); + inline ChatCleanerMessage() : ChatCleanerMessage(nullptr) {}; virtual ~ChatCleanerMessage(); ChatCleanerMessage(const ChatCleanerMessage& from); + ChatCleanerMessage(ChatCleanerMessage&& from) noexcept + : ChatCleanerMessage() { + *this = ::std::move(from); + } inline ChatCleanerMessage& operator=(const ChatCleanerMessage& from) { CopyFrom(from); return *this; } + inline ChatCleanerMessage& operator=(ChatCleanerMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const ChatCleanerMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ChatCleanerMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ChatCleanerMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 4; - void Swap(ChatCleanerMessage* other); + friend void swap(ChatCleanerMessage& a, ChatCleanerMessage& b) { + a.Swap(&b); + } + inline void Swap(ChatCleanerMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ChatCleanerMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - ChatCleanerMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline ChatCleanerMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + ChatCleanerMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const ChatCleanerMessage& from); void MergeFrom(const ChatCleanerMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(ChatCleanerMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "ChatCleanerMessage"; + } + protected: + explicit ChatCleanerMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessageType; - static const ChatCleanerMessageType Type_CleanerInitMessage = ChatCleanerMessage_ChatCleanerMessageType_Type_CleanerInitMessage; - static const ChatCleanerMessageType Type_CleanerInitAckMessage = ChatCleanerMessage_ChatCleanerMessageType_Type_CleanerInitAckMessage; - static const ChatCleanerMessageType Type_CleanerChatRequestMessage = ChatCleanerMessage_ChatCleanerMessageType_Type_CleanerChatRequestMessage; - static const ChatCleanerMessageType Type_CleanerChatReplyMessage = ChatCleanerMessage_ChatCleanerMessageType_Type_CleanerChatReplyMessage; + static constexpr ChatCleanerMessageType Type_CleanerInitMessage = + ChatCleanerMessage_ChatCleanerMessageType_Type_CleanerInitMessage; + static constexpr ChatCleanerMessageType Type_CleanerInitAckMessage = + ChatCleanerMessage_ChatCleanerMessageType_Type_CleanerInitAckMessage; + static constexpr ChatCleanerMessageType Type_CleanerChatRequestMessage = + ChatCleanerMessage_ChatCleanerMessageType_Type_CleanerChatRequestMessage; + static constexpr ChatCleanerMessageType Type_CleanerChatReplyMessage = + ChatCleanerMessage_ChatCleanerMessageType_Type_CleanerChatReplyMessage; static inline bool ChatCleanerMessageType_IsValid(int value) { return ChatCleanerMessage_ChatCleanerMessageType_IsValid(value); } - static const ChatCleanerMessageType ChatCleanerMessageType_MIN = + static constexpr ChatCleanerMessageType ChatCleanerMessageType_MIN = ChatCleanerMessage_ChatCleanerMessageType_ChatCleanerMessageType_MIN; - static const ChatCleanerMessageType ChatCleanerMessageType_MAX = + static constexpr ChatCleanerMessageType ChatCleanerMessageType_MAX = ChatCleanerMessage_ChatCleanerMessageType_ChatCleanerMessageType_MAX; - static const int ChatCleanerMessageType_ARRAYSIZE = + static constexpr int ChatCleanerMessageType_ARRAYSIZE = ChatCleanerMessage_ChatCleanerMessageType_ChatCleanerMessageType_ARRAYSIZE; + template + static inline const std::string& ChatCleanerMessageType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ChatCleanerMessageType_Name."); + return ChatCleanerMessage_ChatCleanerMessageType_Name(enum_t_value); + } + static inline bool ChatCleanerMessageType_Parse(const std::string& name, + ChatCleanerMessageType* value) { + return ChatCleanerMessage_ChatCleanerMessageType_Parse(name, value); + } // accessors ------------------------------------------------------- - // required .ChatCleanerMessage.ChatCleanerMessageType messageType = 1; - inline bool has_messagetype() const; - inline void clear_messagetype(); - static const int kMessageTypeFieldNumber = 1; - inline ::ChatCleanerMessage_ChatCleanerMessageType messagetype() const; - inline void set_messagetype(::ChatCleanerMessage_ChatCleanerMessageType value); - + enum : int { + kCleanerInitMessageFieldNumber = 2, + kCleanerInitAckMessageFieldNumber = 3, + kCleanerChatRequestMessageFieldNumber = 4, + kCleanerChatReplyMessageFieldNumber = 5, + kMessageTypeFieldNumber = 1, + }; // optional .CleanerInitMessage cleanerInitMessage = 2; - inline bool has_cleanerinitmessage() const; - inline void clear_cleanerinitmessage(); - static const int kCleanerInitMessageFieldNumber = 2; - inline const ::CleanerInitMessage& cleanerinitmessage() const; - inline ::CleanerInitMessage* mutable_cleanerinitmessage(); - inline ::CleanerInitMessage* release_cleanerinitmessage(); - inline void set_allocated_cleanerinitmessage(::CleanerInitMessage* cleanerinitmessage); + bool has_cleanerinitmessage() const; + private: + bool _internal_has_cleanerinitmessage() const; + public: + void clear_cleanerinitmessage(); + const ::CleanerInitMessage& cleanerinitmessage() const; + ::CleanerInitMessage* release_cleanerinitmessage(); + ::CleanerInitMessage* mutable_cleanerinitmessage(); + void set_allocated_cleanerinitmessage(::CleanerInitMessage* cleanerinitmessage); + private: + const ::CleanerInitMessage& _internal_cleanerinitmessage() const; + ::CleanerInitMessage* _internal_mutable_cleanerinitmessage(); + public: + void unsafe_arena_set_allocated_cleanerinitmessage( + ::CleanerInitMessage* cleanerinitmessage); + ::CleanerInitMessage* unsafe_arena_release_cleanerinitmessage(); // optional .CleanerInitAckMessage cleanerInitAckMessage = 3; - inline bool has_cleanerinitackmessage() const; - inline void clear_cleanerinitackmessage(); - static const int kCleanerInitAckMessageFieldNumber = 3; - inline const ::CleanerInitAckMessage& cleanerinitackmessage() const; - inline ::CleanerInitAckMessage* mutable_cleanerinitackmessage(); - inline ::CleanerInitAckMessage* release_cleanerinitackmessage(); - inline void set_allocated_cleanerinitackmessage(::CleanerInitAckMessage* cleanerinitackmessage); + bool has_cleanerinitackmessage() const; + private: + bool _internal_has_cleanerinitackmessage() const; + public: + void clear_cleanerinitackmessage(); + const ::CleanerInitAckMessage& cleanerinitackmessage() const; + ::CleanerInitAckMessage* release_cleanerinitackmessage(); + ::CleanerInitAckMessage* mutable_cleanerinitackmessage(); + void set_allocated_cleanerinitackmessage(::CleanerInitAckMessage* cleanerinitackmessage); + private: + const ::CleanerInitAckMessage& _internal_cleanerinitackmessage() const; + ::CleanerInitAckMessage* _internal_mutable_cleanerinitackmessage(); + public: + void unsafe_arena_set_allocated_cleanerinitackmessage( + ::CleanerInitAckMessage* cleanerinitackmessage); + ::CleanerInitAckMessage* unsafe_arena_release_cleanerinitackmessage(); // optional .CleanerChatRequestMessage cleanerChatRequestMessage = 4; - inline bool has_cleanerchatrequestmessage() const; - inline void clear_cleanerchatrequestmessage(); - static const int kCleanerChatRequestMessageFieldNumber = 4; - inline const ::CleanerChatRequestMessage& cleanerchatrequestmessage() const; - inline ::CleanerChatRequestMessage* mutable_cleanerchatrequestmessage(); - inline ::CleanerChatRequestMessage* release_cleanerchatrequestmessage(); - inline void set_allocated_cleanerchatrequestmessage(::CleanerChatRequestMessage* cleanerchatrequestmessage); + bool has_cleanerchatrequestmessage() const; + private: + bool _internal_has_cleanerchatrequestmessage() const; + public: + void clear_cleanerchatrequestmessage(); + const ::CleanerChatRequestMessage& cleanerchatrequestmessage() const; + ::CleanerChatRequestMessage* release_cleanerchatrequestmessage(); + ::CleanerChatRequestMessage* mutable_cleanerchatrequestmessage(); + void set_allocated_cleanerchatrequestmessage(::CleanerChatRequestMessage* cleanerchatrequestmessage); + private: + const ::CleanerChatRequestMessage& _internal_cleanerchatrequestmessage() const; + ::CleanerChatRequestMessage* _internal_mutable_cleanerchatrequestmessage(); + public: + void unsafe_arena_set_allocated_cleanerchatrequestmessage( + ::CleanerChatRequestMessage* cleanerchatrequestmessage); + ::CleanerChatRequestMessage* unsafe_arena_release_cleanerchatrequestmessage(); // optional .CleanerChatReplyMessage cleanerChatReplyMessage = 5; - inline bool has_cleanerchatreplymessage() const; - inline void clear_cleanerchatreplymessage(); - static const int kCleanerChatReplyMessageFieldNumber = 5; - inline const ::CleanerChatReplyMessage& cleanerchatreplymessage() const; - inline ::CleanerChatReplyMessage* mutable_cleanerchatreplymessage(); - inline ::CleanerChatReplyMessage* release_cleanerchatreplymessage(); - inline void set_allocated_cleanerchatreplymessage(::CleanerChatReplyMessage* cleanerchatreplymessage); + bool has_cleanerchatreplymessage() const; + private: + bool _internal_has_cleanerchatreplymessage() const; + public: + void clear_cleanerchatreplymessage(); + const ::CleanerChatReplyMessage& cleanerchatreplymessage() const; + ::CleanerChatReplyMessage* release_cleanerchatreplymessage(); + ::CleanerChatReplyMessage* mutable_cleanerchatreplymessage(); + void set_allocated_cleanerchatreplymessage(::CleanerChatReplyMessage* cleanerchatreplymessage); + private: + const ::CleanerChatReplyMessage& _internal_cleanerchatreplymessage() const; + ::CleanerChatReplyMessage* _internal_mutable_cleanerchatreplymessage(); + public: + void unsafe_arena_set_allocated_cleanerchatreplymessage( + ::CleanerChatReplyMessage* cleanerchatreplymessage); + ::CleanerChatReplyMessage* unsafe_arena_release_cleanerchatreplymessage(); + + // required .ChatCleanerMessage.ChatCleanerMessageType messageType = 1; + bool has_messagetype() const; + private: + bool _internal_has_messagetype() const; + public: + void clear_messagetype(); + ::ChatCleanerMessage_ChatCleanerMessageType messagetype() const; + void set_messagetype(::ChatCleanerMessage_ChatCleanerMessageType value); + private: + ::ChatCleanerMessage_ChatCleanerMessageType _internal_messagetype() const; + void _internal_set_messagetype(::ChatCleanerMessage_ChatCleanerMessageType value); + public: // @@protoc_insertion_point(class_scope:ChatCleanerMessage) private: - inline void set_has_messagetype(); - inline void clear_has_messagetype(); - inline void set_has_cleanerinitmessage(); - inline void clear_has_cleanerinitmessage(); - inline void set_has_cleanerinitackmessage(); - inline void clear_has_cleanerinitackmessage(); - inline void set_has_cleanerchatrequestmessage(); - inline void clear_has_cleanerchatrequestmessage(); - inline void set_has_cleanerchatreplymessage(); - inline void clear_has_cleanerchatreplymessage(); + class _Internal; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::CleanerInitMessage* cleanerinitmessage_; ::CleanerInitAckMessage* cleanerinitackmessage_; ::CleanerChatRequestMessage* cleanerchatrequestmessage_; ::CleanerChatReplyMessage* cleanerchatreplymessage_; int messagetype_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_chatcleaner_2eproto_impl(); - #else - friend void protobuf_AddDesc_chatcleaner_2eproto(); - #endif - friend void protobuf_AssignDesc_chatcleaner_2eproto(); - friend void protobuf_ShutdownFile_chatcleaner_2eproto(); - - void InitAsDefaultInstance(); - static ChatCleanerMessage* default_instance_; + friend struct ::TableStruct_chatcleaner_2eproto; }; // =================================================================== // =================================================================== +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ // CleanerInitMessage // required uint32 requestedVersion = 1; +inline bool CleanerInitMessage::_internal_has_requestedversion() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool CleanerInitMessage::has_requestedversion() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void CleanerInitMessage::set_has_requestedversion() { - _has_bits_[0] |= 0x00000001u; -} -inline void CleanerInitMessage::clear_has_requestedversion() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_requestedversion(); } inline void CleanerInitMessage::clear_requestedversion() { requestedversion_ = 0u; - clear_has_requestedversion(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 CleanerInitMessage::requestedversion() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 CleanerInitMessage::_internal_requestedversion() const { return requestedversion_; } -inline void CleanerInitMessage::set_requestedversion(::google::protobuf::uint32 value) { - set_has_requestedversion(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 CleanerInitMessage::requestedversion() const { + // @@protoc_insertion_point(field_get:CleanerInitMessage.requestedVersion) + return _internal_requestedversion(); +} +inline void CleanerInitMessage::_internal_set_requestedversion(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; requestedversion_ = value; } +inline void CleanerInitMessage::set_requestedversion(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_requestedversion(value); + // @@protoc_insertion_point(field_set:CleanerInitMessage.requestedVersion) +} // required string clientSecret = 2; +inline bool CleanerInitMessage::_internal_has_clientsecret() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool CleanerInitMessage::has_clientsecret() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void CleanerInitMessage::set_has_clientsecret() { - _has_bits_[0] |= 0x00000002u; -} -inline void CleanerInitMessage::clear_has_clientsecret() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_clientsecret(); } inline void CleanerInitMessage::clear_clientsecret() { - if (clientsecret_ != &::google::protobuf::internal::kEmptyString) { - clientsecret_->clear(); - } - clear_has_clientsecret(); + clientsecret_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& CleanerInitMessage::clientsecret() const { - return *clientsecret_; +inline const std::string& CleanerInitMessage::clientsecret() const { + // @@protoc_insertion_point(field_get:CleanerInitMessage.clientSecret) + return _internal_clientsecret(); } -inline void CleanerInitMessage::set_clientsecret(const ::std::string& value) { - set_has_clientsecret(); - if (clientsecret_ == &::google::protobuf::internal::kEmptyString) { - clientsecret_ = new ::std::string; - } - clientsecret_->assign(value); +inline void CleanerInitMessage::set_clientsecret(const std::string& value) { + _internal_set_clientsecret(value); + // @@protoc_insertion_point(field_set:CleanerInitMessage.clientSecret) +} +inline std::string* CleanerInitMessage::mutable_clientsecret() { + // @@protoc_insertion_point(field_mutable:CleanerInitMessage.clientSecret) + return _internal_mutable_clientsecret(); +} +inline const std::string& CleanerInitMessage::_internal_clientsecret() const { + return clientsecret_.Get(); +} +inline void CleanerInitMessage::_internal_set_clientsecret(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + clientsecret_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void CleanerInitMessage::set_clientsecret(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + clientsecret_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:CleanerInitMessage.clientSecret) } inline void CleanerInitMessage::set_clientsecret(const char* value) { - set_has_clientsecret(); - if (clientsecret_ == &::google::protobuf::internal::kEmptyString) { - clientsecret_ = new ::std::string; - } - clientsecret_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + clientsecret_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:CleanerInitMessage.clientSecret) } -inline void CleanerInitMessage::set_clientsecret(const char* value, size_t size) { - set_has_clientsecret(); - if (clientsecret_ == &::google::protobuf::internal::kEmptyString) { - clientsecret_ = new ::std::string; - } - clientsecret_->assign(reinterpret_cast(value), size); +inline void CleanerInitMessage::set_clientsecret(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + clientsecret_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:CleanerInitMessage.clientSecret) } -inline ::std::string* CleanerInitMessage::mutable_clientsecret() { - set_has_clientsecret(); - if (clientsecret_ == &::google::protobuf::internal::kEmptyString) { - clientsecret_ = new ::std::string; - } - return clientsecret_; +inline std::string* CleanerInitMessage::_internal_mutable_clientsecret() { + _has_bits_[0] |= 0x00000001u; + return clientsecret_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* CleanerInitMessage::release_clientsecret() { - clear_has_clientsecret(); - if (clientsecret_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* CleanerInitMessage::release_clientsecret() { + // @@protoc_insertion_point(field_release:CleanerInitMessage.clientSecret) + if (!_internal_has_clientsecret()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return clientsecret_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void CleanerInitMessage::set_allocated_clientsecret(std::string* clientsecret) { + if (clientsecret != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = clientsecret_; - clientsecret_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + clientsecret_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), clientsecret, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:CleanerInitMessage.clientSecret) } -inline void CleanerInitMessage::set_allocated_clientsecret(::std::string* clientsecret) { - if (clientsecret_ != &::google::protobuf::internal::kEmptyString) { - delete clientsecret_; - } - if (clientsecret) { - set_has_clientsecret(); - clientsecret_ = clientsecret; +inline std::string* CleanerInitMessage::unsafe_arena_release_clientsecret() { + // @@protoc_insertion_point(field_unsafe_arena_release:CleanerInitMessage.clientSecret) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return clientsecret_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void CleanerInitMessage::unsafe_arena_set_allocated_clientsecret( + std::string* clientsecret) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (clientsecret != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_clientsecret(); - clientsecret_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + clientsecret_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + clientsecret, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:CleanerInitMessage.clientSecret) } // ------------------------------------------------------------------- @@ -811,95 +1358,124 @@ inline void CleanerInitMessage::set_allocated_clientsecret(::std::string* client // CleanerInitAckMessage // required uint32 serverVersion = 1; +inline bool CleanerInitAckMessage::_internal_has_serverversion() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool CleanerInitAckMessage::has_serverversion() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void CleanerInitAckMessage::set_has_serverversion() { - _has_bits_[0] |= 0x00000001u; -} -inline void CleanerInitAckMessage::clear_has_serverversion() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_serverversion(); } inline void CleanerInitAckMessage::clear_serverversion() { serverversion_ = 0u; - clear_has_serverversion(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 CleanerInitAckMessage::serverversion() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 CleanerInitAckMessage::_internal_serverversion() const { return serverversion_; } -inline void CleanerInitAckMessage::set_serverversion(::google::protobuf::uint32 value) { - set_has_serverversion(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 CleanerInitAckMessage::serverversion() const { + // @@protoc_insertion_point(field_get:CleanerInitAckMessage.serverVersion) + return _internal_serverversion(); +} +inline void CleanerInitAckMessage::_internal_set_serverversion(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; serverversion_ = value; } +inline void CleanerInitAckMessage::set_serverversion(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_serverversion(value); + // @@protoc_insertion_point(field_set:CleanerInitAckMessage.serverVersion) +} // required string serverSecret = 2; +inline bool CleanerInitAckMessage::_internal_has_serversecret() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool CleanerInitAckMessage::has_serversecret() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void CleanerInitAckMessage::set_has_serversecret() { - _has_bits_[0] |= 0x00000002u; -} -inline void CleanerInitAckMessage::clear_has_serversecret() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_serversecret(); } inline void CleanerInitAckMessage::clear_serversecret() { - if (serversecret_ != &::google::protobuf::internal::kEmptyString) { - serversecret_->clear(); - } - clear_has_serversecret(); + serversecret_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& CleanerInitAckMessage::serversecret() const { - return *serversecret_; +inline const std::string& CleanerInitAckMessage::serversecret() const { + // @@protoc_insertion_point(field_get:CleanerInitAckMessage.serverSecret) + return _internal_serversecret(); } -inline void CleanerInitAckMessage::set_serversecret(const ::std::string& value) { - set_has_serversecret(); - if (serversecret_ == &::google::protobuf::internal::kEmptyString) { - serversecret_ = new ::std::string; - } - serversecret_->assign(value); +inline void CleanerInitAckMessage::set_serversecret(const std::string& value) { + _internal_set_serversecret(value); + // @@protoc_insertion_point(field_set:CleanerInitAckMessage.serverSecret) +} +inline std::string* CleanerInitAckMessage::mutable_serversecret() { + // @@protoc_insertion_point(field_mutable:CleanerInitAckMessage.serverSecret) + return _internal_mutable_serversecret(); +} +inline const std::string& CleanerInitAckMessage::_internal_serversecret() const { + return serversecret_.Get(); +} +inline void CleanerInitAckMessage::_internal_set_serversecret(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + serversecret_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void CleanerInitAckMessage::set_serversecret(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + serversecret_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:CleanerInitAckMessage.serverSecret) } inline void CleanerInitAckMessage::set_serversecret(const char* value) { - set_has_serversecret(); - if (serversecret_ == &::google::protobuf::internal::kEmptyString) { - serversecret_ = new ::std::string; - } - serversecret_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + serversecret_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:CleanerInitAckMessage.serverSecret) } -inline void CleanerInitAckMessage::set_serversecret(const char* value, size_t size) { - set_has_serversecret(); - if (serversecret_ == &::google::protobuf::internal::kEmptyString) { - serversecret_ = new ::std::string; - } - serversecret_->assign(reinterpret_cast(value), size); +inline void CleanerInitAckMessage::set_serversecret(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + serversecret_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:CleanerInitAckMessage.serverSecret) } -inline ::std::string* CleanerInitAckMessage::mutable_serversecret() { - set_has_serversecret(); - if (serversecret_ == &::google::protobuf::internal::kEmptyString) { - serversecret_ = new ::std::string; - } - return serversecret_; +inline std::string* CleanerInitAckMessage::_internal_mutable_serversecret() { + _has_bits_[0] |= 0x00000001u; + return serversecret_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* CleanerInitAckMessage::release_serversecret() { - clear_has_serversecret(); - if (serversecret_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* CleanerInitAckMessage::release_serversecret() { + // @@protoc_insertion_point(field_release:CleanerInitAckMessage.serverSecret) + if (!_internal_has_serversecret()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return serversecret_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void CleanerInitAckMessage::set_allocated_serversecret(std::string* serversecret) { + if (serversecret != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = serversecret_; - serversecret_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + serversecret_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), serversecret, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:CleanerInitAckMessage.serverSecret) } -inline void CleanerInitAckMessage::set_allocated_serversecret(::std::string* serversecret) { - if (serversecret_ != &::google::protobuf::internal::kEmptyString) { - delete serversecret_; - } - if (serversecret) { - set_has_serversecret(); - serversecret_ = serversecret; +inline std::string* CleanerInitAckMessage::unsafe_arena_release_serversecret() { + // @@protoc_insertion_point(field_unsafe_arena_release:CleanerInitAckMessage.serverSecret) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return serversecret_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void CleanerInitAckMessage::unsafe_arena_set_allocated_serversecret( + std::string* serversecret) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (serversecret != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_serversecret(); - serversecret_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + serversecret_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + serversecret, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:CleanerInitAckMessage.serverSecret) } // ------------------------------------------------------------------- @@ -907,232 +1483,302 @@ inline void CleanerInitAckMessage::set_allocated_serversecret(::std::string* ser // CleanerChatRequestMessage // required uint32 requestId = 1; +inline bool CleanerChatRequestMessage::_internal_has_requestid() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool CleanerChatRequestMessage::has_requestid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void CleanerChatRequestMessage::set_has_requestid() { - _has_bits_[0] |= 0x00000001u; -} -inline void CleanerChatRequestMessage::clear_has_requestid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_requestid(); } inline void CleanerChatRequestMessage::clear_requestid() { requestid_ = 0u; - clear_has_requestid(); + _has_bits_[0] &= ~0x00000004u; } -inline ::google::protobuf::uint32 CleanerChatRequestMessage::requestid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 CleanerChatRequestMessage::_internal_requestid() const { return requestid_; } -inline void CleanerChatRequestMessage::set_requestid(::google::protobuf::uint32 value) { - set_has_requestid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 CleanerChatRequestMessage::requestid() const { + // @@protoc_insertion_point(field_get:CleanerChatRequestMessage.requestId) + return _internal_requestid(); +} +inline void CleanerChatRequestMessage::_internal_set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000004u; requestid_ = value; } +inline void CleanerChatRequestMessage::set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_requestid(value); + // @@protoc_insertion_point(field_set:CleanerChatRequestMessage.requestId) +} // required .CleanerChatType cleanerChatType = 2; +inline bool CleanerChatRequestMessage::_internal_has_cleanerchattype() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool CleanerChatRequestMessage::has_cleanerchattype() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void CleanerChatRequestMessage::set_has_cleanerchattype() { - _has_bits_[0] |= 0x00000002u; -} -inline void CleanerChatRequestMessage::clear_has_cleanerchattype() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_cleanerchattype(); } inline void CleanerChatRequestMessage::clear_cleanerchattype() { cleanerchattype_ = 0; - clear_has_cleanerchattype(); + _has_bits_[0] &= ~0x00000008u; } -inline ::CleanerChatType CleanerChatRequestMessage::cleanerchattype() const { +inline ::CleanerChatType CleanerChatRequestMessage::_internal_cleanerchattype() const { return static_cast< ::CleanerChatType >(cleanerchattype_); } -inline void CleanerChatRequestMessage::set_cleanerchattype(::CleanerChatType value) { +inline ::CleanerChatType CleanerChatRequestMessage::cleanerchattype() const { + // @@protoc_insertion_point(field_get:CleanerChatRequestMessage.cleanerChatType) + return _internal_cleanerchattype(); +} +inline void CleanerChatRequestMessage::_internal_set_cleanerchattype(::CleanerChatType value) { assert(::CleanerChatType_IsValid(value)); - set_has_cleanerchattype(); + _has_bits_[0] |= 0x00000008u; cleanerchattype_ = value; } +inline void CleanerChatRequestMessage::set_cleanerchattype(::CleanerChatType value) { + _internal_set_cleanerchattype(value); + // @@protoc_insertion_point(field_set:CleanerChatRequestMessage.cleanerChatType) +} // optional uint32 gameId = 3 [default = 0]; +inline bool CleanerChatRequestMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} inline bool CleanerChatRequestMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void CleanerChatRequestMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000004u; -} -inline void CleanerChatRequestMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_gameid(); } inline void CleanerChatRequestMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000010u; } -inline ::google::protobuf::uint32 CleanerChatRequestMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 CleanerChatRequestMessage::_internal_gameid() const { return gameid_; } -inline void CleanerChatRequestMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 CleanerChatRequestMessage::gameid() const { + // @@protoc_insertion_point(field_get:CleanerChatRequestMessage.gameId) + return _internal_gameid(); +} +inline void CleanerChatRequestMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000010u; gameid_ = value; } +inline void CleanerChatRequestMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:CleanerChatRequestMessage.gameId) +} // required uint32 playerId = 4; +inline bool CleanerChatRequestMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} inline bool CleanerChatRequestMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void CleanerChatRequestMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000008u; -} -inline void CleanerChatRequestMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_playerid(); } inline void CleanerChatRequestMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000020u; } -inline ::google::protobuf::uint32 CleanerChatRequestMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 CleanerChatRequestMessage::_internal_playerid() const { return playerid_; } -inline void CleanerChatRequestMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 CleanerChatRequestMessage::playerid() const { + // @@protoc_insertion_point(field_get:CleanerChatRequestMessage.playerId) + return _internal_playerid(); +} +inline void CleanerChatRequestMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000020u; playerid_ = value; } +inline void CleanerChatRequestMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:CleanerChatRequestMessage.playerId) +} // required string playerName = 5; +inline bool CleanerChatRequestMessage::_internal_has_playername() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool CleanerChatRequestMessage::has_playername() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void CleanerChatRequestMessage::set_has_playername() { - _has_bits_[0] |= 0x00000010u; -} -inline void CleanerChatRequestMessage::clear_has_playername() { - _has_bits_[0] &= ~0x00000010u; + return _internal_has_playername(); } inline void CleanerChatRequestMessage::clear_playername() { - if (playername_ != &::google::protobuf::internal::kEmptyString) { - playername_->clear(); - } - clear_has_playername(); + playername_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& CleanerChatRequestMessage::playername() const { - return *playername_; +inline const std::string& CleanerChatRequestMessage::playername() const { + // @@protoc_insertion_point(field_get:CleanerChatRequestMessage.playerName) + return _internal_playername(); } -inline void CleanerChatRequestMessage::set_playername(const ::std::string& value) { - set_has_playername(); - if (playername_ == &::google::protobuf::internal::kEmptyString) { - playername_ = new ::std::string; - } - playername_->assign(value); +inline void CleanerChatRequestMessage::set_playername(const std::string& value) { + _internal_set_playername(value); + // @@protoc_insertion_point(field_set:CleanerChatRequestMessage.playerName) +} +inline std::string* CleanerChatRequestMessage::mutable_playername() { + // @@protoc_insertion_point(field_mutable:CleanerChatRequestMessage.playerName) + return _internal_mutable_playername(); +} +inline const std::string& CleanerChatRequestMessage::_internal_playername() const { + return playername_.Get(); +} +inline void CleanerChatRequestMessage::_internal_set_playername(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + playername_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void CleanerChatRequestMessage::set_playername(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + playername_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:CleanerChatRequestMessage.playerName) } inline void CleanerChatRequestMessage::set_playername(const char* value) { - set_has_playername(); - if (playername_ == &::google::protobuf::internal::kEmptyString) { - playername_ = new ::std::string; - } - playername_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + playername_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:CleanerChatRequestMessage.playerName) } -inline void CleanerChatRequestMessage::set_playername(const char* value, size_t size) { - set_has_playername(); - if (playername_ == &::google::protobuf::internal::kEmptyString) { - playername_ = new ::std::string; - } - playername_->assign(reinterpret_cast(value), size); +inline void CleanerChatRequestMessage::set_playername(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + playername_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:CleanerChatRequestMessage.playerName) } -inline ::std::string* CleanerChatRequestMessage::mutable_playername() { - set_has_playername(); - if (playername_ == &::google::protobuf::internal::kEmptyString) { - playername_ = new ::std::string; - } - return playername_; +inline std::string* CleanerChatRequestMessage::_internal_mutable_playername() { + _has_bits_[0] |= 0x00000001u; + return playername_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* CleanerChatRequestMessage::release_playername() { - clear_has_playername(); - if (playername_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* CleanerChatRequestMessage::release_playername() { + // @@protoc_insertion_point(field_release:CleanerChatRequestMessage.playerName) + if (!_internal_has_playername()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return playername_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void CleanerChatRequestMessage::set_allocated_playername(std::string* playername) { + if (playername != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = playername_; - playername_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + playername_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), playername, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:CleanerChatRequestMessage.playerName) } -inline void CleanerChatRequestMessage::set_allocated_playername(::std::string* playername) { - if (playername_ != &::google::protobuf::internal::kEmptyString) { - delete playername_; - } - if (playername) { - set_has_playername(); - playername_ = playername; +inline std::string* CleanerChatRequestMessage::unsafe_arena_release_playername() { + // @@protoc_insertion_point(field_unsafe_arena_release:CleanerChatRequestMessage.playerName) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return playername_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void CleanerChatRequestMessage::unsafe_arena_set_allocated_playername( + std::string* playername) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (playername != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_playername(); - playername_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + playername_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + playername, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:CleanerChatRequestMessage.playerName) } // required string chatMessage = 6; +inline bool CleanerChatRequestMessage::_internal_has_chatmessage() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool CleanerChatRequestMessage::has_chatmessage() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void CleanerChatRequestMessage::set_has_chatmessage() { - _has_bits_[0] |= 0x00000020u; -} -inline void CleanerChatRequestMessage::clear_has_chatmessage() { - _has_bits_[0] &= ~0x00000020u; + return _internal_has_chatmessage(); } inline void CleanerChatRequestMessage::clear_chatmessage() { - if (chatmessage_ != &::google::protobuf::internal::kEmptyString) { - chatmessage_->clear(); - } - clear_has_chatmessage(); + chatmessage_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000002u; } -inline const ::std::string& CleanerChatRequestMessage::chatmessage() const { - return *chatmessage_; +inline const std::string& CleanerChatRequestMessage::chatmessage() const { + // @@protoc_insertion_point(field_get:CleanerChatRequestMessage.chatMessage) + return _internal_chatmessage(); } -inline void CleanerChatRequestMessage::set_chatmessage(const ::std::string& value) { - set_has_chatmessage(); - if (chatmessage_ == &::google::protobuf::internal::kEmptyString) { - chatmessage_ = new ::std::string; - } - chatmessage_->assign(value); +inline void CleanerChatRequestMessage::set_chatmessage(const std::string& value) { + _internal_set_chatmessage(value); + // @@protoc_insertion_point(field_set:CleanerChatRequestMessage.chatMessage) +} +inline std::string* CleanerChatRequestMessage::mutable_chatmessage() { + // @@protoc_insertion_point(field_mutable:CleanerChatRequestMessage.chatMessage) + return _internal_mutable_chatmessage(); +} +inline const std::string& CleanerChatRequestMessage::_internal_chatmessage() const { + return chatmessage_.Get(); +} +inline void CleanerChatRequestMessage::_internal_set_chatmessage(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + chatmessage_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void CleanerChatRequestMessage::set_chatmessage(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + chatmessage_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:CleanerChatRequestMessage.chatMessage) } inline void CleanerChatRequestMessage::set_chatmessage(const char* value) { - set_has_chatmessage(); - if (chatmessage_ == &::google::protobuf::internal::kEmptyString) { - chatmessage_ = new ::std::string; - } - chatmessage_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + chatmessage_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:CleanerChatRequestMessage.chatMessage) } -inline void CleanerChatRequestMessage::set_chatmessage(const char* value, size_t size) { - set_has_chatmessage(); - if (chatmessage_ == &::google::protobuf::internal::kEmptyString) { - chatmessage_ = new ::std::string; - } - chatmessage_->assign(reinterpret_cast(value), size); +inline void CleanerChatRequestMessage::set_chatmessage(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + chatmessage_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:CleanerChatRequestMessage.chatMessage) } -inline ::std::string* CleanerChatRequestMessage::mutable_chatmessage() { - set_has_chatmessage(); - if (chatmessage_ == &::google::protobuf::internal::kEmptyString) { - chatmessage_ = new ::std::string; - } - return chatmessage_; +inline std::string* CleanerChatRequestMessage::_internal_mutable_chatmessage() { + _has_bits_[0] |= 0x00000002u; + return chatmessage_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* CleanerChatRequestMessage::release_chatmessage() { - clear_has_chatmessage(); - if (chatmessage_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* CleanerChatRequestMessage::release_chatmessage() { + // @@protoc_insertion_point(field_release:CleanerChatRequestMessage.chatMessage) + if (!_internal_has_chatmessage()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return chatmessage_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void CleanerChatRequestMessage::set_allocated_chatmessage(std::string* chatmessage) { + if (chatmessage != nullptr) { + _has_bits_[0] |= 0x00000002u; } else { - ::std::string* temp = chatmessage_; - chatmessage_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000002u; } + chatmessage_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), chatmessage, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:CleanerChatRequestMessage.chatMessage) } -inline void CleanerChatRequestMessage::set_allocated_chatmessage(::std::string* chatmessage) { - if (chatmessage_ != &::google::protobuf::internal::kEmptyString) { - delete chatmessage_; - } - if (chatmessage) { - set_has_chatmessage(); - chatmessage_ = chatmessage; +inline std::string* CleanerChatRequestMessage::unsafe_arena_release_chatmessage() { + // @@protoc_insertion_point(field_unsafe_arena_release:CleanerChatRequestMessage.chatMessage) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000002u; + return chatmessage_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void CleanerChatRequestMessage::unsafe_arena_set_allocated_chatmessage( + std::string* chatmessage) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (chatmessage != nullptr) { + _has_bits_[0] |= 0x00000002u; } else { - clear_has_chatmessage(); - chatmessage_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000002u; } + chatmessage_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + chatmessage, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:CleanerChatRequestMessage.chatMessage) } // ------------------------------------------------------------------- @@ -1140,185 +1786,238 @@ inline void CleanerChatRequestMessage::set_allocated_chatmessage(::std::string* // CleanerChatReplyMessage // required uint32 requestId = 1; +inline bool CleanerChatReplyMessage::_internal_has_requestid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool CleanerChatReplyMessage::has_requestid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void CleanerChatReplyMessage::set_has_requestid() { - _has_bits_[0] |= 0x00000001u; -} -inline void CleanerChatReplyMessage::clear_has_requestid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_requestid(); } inline void CleanerChatReplyMessage::clear_requestid() { requestid_ = 0u; - clear_has_requestid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 CleanerChatReplyMessage::requestid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 CleanerChatReplyMessage::_internal_requestid() const { return requestid_; } -inline void CleanerChatReplyMessage::set_requestid(::google::protobuf::uint32 value) { - set_has_requestid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 CleanerChatReplyMessage::requestid() const { + // @@protoc_insertion_point(field_get:CleanerChatReplyMessage.requestId) + return _internal_requestid(); +} +inline void CleanerChatReplyMessage::_internal_set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; requestid_ = value; } +inline void CleanerChatReplyMessage::set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_requestid(value); + // @@protoc_insertion_point(field_set:CleanerChatReplyMessage.requestId) +} // required .CleanerChatType cleanerChatType = 2; +inline bool CleanerChatReplyMessage::_internal_has_cleanerchattype() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool CleanerChatReplyMessage::has_cleanerchattype() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void CleanerChatReplyMessage::set_has_cleanerchattype() { - _has_bits_[0] |= 0x00000002u; -} -inline void CleanerChatReplyMessage::clear_has_cleanerchattype() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_cleanerchattype(); } inline void CleanerChatReplyMessage::clear_cleanerchattype() { cleanerchattype_ = 0; - clear_has_cleanerchattype(); + _has_bits_[0] &= ~0x00000004u; } -inline ::CleanerChatType CleanerChatReplyMessage::cleanerchattype() const { +inline ::CleanerChatType CleanerChatReplyMessage::_internal_cleanerchattype() const { return static_cast< ::CleanerChatType >(cleanerchattype_); } -inline void CleanerChatReplyMessage::set_cleanerchattype(::CleanerChatType value) { +inline ::CleanerChatType CleanerChatReplyMessage::cleanerchattype() const { + // @@protoc_insertion_point(field_get:CleanerChatReplyMessage.cleanerChatType) + return _internal_cleanerchattype(); +} +inline void CleanerChatReplyMessage::_internal_set_cleanerchattype(::CleanerChatType value) { assert(::CleanerChatType_IsValid(value)); - set_has_cleanerchattype(); + _has_bits_[0] |= 0x00000004u; cleanerchattype_ = value; } +inline void CleanerChatReplyMessage::set_cleanerchattype(::CleanerChatType value) { + _internal_set_cleanerchattype(value); + // @@protoc_insertion_point(field_set:CleanerChatReplyMessage.cleanerChatType) +} // optional uint32 gameId = 3 [default = 0]; +inline bool CleanerChatReplyMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool CleanerChatReplyMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void CleanerChatReplyMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000004u; -} -inline void CleanerChatReplyMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_gameid(); } inline void CleanerChatReplyMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000008u; } -inline ::google::protobuf::uint32 CleanerChatReplyMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 CleanerChatReplyMessage::_internal_gameid() const { return gameid_; } -inline void CleanerChatReplyMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 CleanerChatReplyMessage::gameid() const { + // @@protoc_insertion_point(field_get:CleanerChatReplyMessage.gameId) + return _internal_gameid(); +} +inline void CleanerChatReplyMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000008u; gameid_ = value; } +inline void CleanerChatReplyMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:CleanerChatReplyMessage.gameId) +} // required uint32 playerId = 4; +inline bool CleanerChatReplyMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} inline bool CleanerChatReplyMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void CleanerChatReplyMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000008u; -} -inline void CleanerChatReplyMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_playerid(); } inline void CleanerChatReplyMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000010u; } -inline ::google::protobuf::uint32 CleanerChatReplyMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 CleanerChatReplyMessage::_internal_playerid() const { return playerid_; } -inline void CleanerChatReplyMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 CleanerChatReplyMessage::playerid() const { + // @@protoc_insertion_point(field_get:CleanerChatReplyMessage.playerId) + return _internal_playerid(); +} +inline void CleanerChatReplyMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000010u; playerid_ = value; } +inline void CleanerChatReplyMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:CleanerChatReplyMessage.playerId) +} // required .CleanerChatReplyMessage.CleanerActionType cleanerActionType = 5; +inline bool CleanerChatReplyMessage::_internal_has_cleaneractiontype() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} inline bool CleanerChatReplyMessage::has_cleaneractiontype() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void CleanerChatReplyMessage::set_has_cleaneractiontype() { - _has_bits_[0] |= 0x00000010u; -} -inline void CleanerChatReplyMessage::clear_has_cleaneractiontype() { - _has_bits_[0] &= ~0x00000010u; + return _internal_has_cleaneractiontype(); } inline void CleanerChatReplyMessage::clear_cleaneractiontype() { cleaneractiontype_ = 0; - clear_has_cleaneractiontype(); + _has_bits_[0] &= ~0x00000020u; } -inline ::CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage::cleaneractiontype() const { +inline ::CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage::_internal_cleaneractiontype() const { return static_cast< ::CleanerChatReplyMessage_CleanerActionType >(cleaneractiontype_); } -inline void CleanerChatReplyMessage::set_cleaneractiontype(::CleanerChatReplyMessage_CleanerActionType value) { +inline ::CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage::cleaneractiontype() const { + // @@protoc_insertion_point(field_get:CleanerChatReplyMessage.cleanerActionType) + return _internal_cleaneractiontype(); +} +inline void CleanerChatReplyMessage::_internal_set_cleaneractiontype(::CleanerChatReplyMessage_CleanerActionType value) { assert(::CleanerChatReplyMessage_CleanerActionType_IsValid(value)); - set_has_cleaneractiontype(); + _has_bits_[0] |= 0x00000020u; cleaneractiontype_ = value; } +inline void CleanerChatReplyMessage::set_cleaneractiontype(::CleanerChatReplyMessage_CleanerActionType value) { + _internal_set_cleaneractiontype(value); + // @@protoc_insertion_point(field_set:CleanerChatReplyMessage.cleanerActionType) +} // optional string cleanerText = 6 [default = ""]; +inline bool CleanerChatReplyMessage::_internal_has_cleanertext() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool CleanerChatReplyMessage::has_cleanertext() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void CleanerChatReplyMessage::set_has_cleanertext() { - _has_bits_[0] |= 0x00000020u; -} -inline void CleanerChatReplyMessage::clear_has_cleanertext() { - _has_bits_[0] &= ~0x00000020u; + return _internal_has_cleanertext(); } inline void CleanerChatReplyMessage::clear_cleanertext() { - if (cleanertext_ != &::google::protobuf::internal::kEmptyString) { - cleanertext_->clear(); - } - clear_has_cleanertext(); + cleanertext_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& CleanerChatReplyMessage::cleanertext() const { - return *cleanertext_; +inline const std::string& CleanerChatReplyMessage::cleanertext() const { + // @@protoc_insertion_point(field_get:CleanerChatReplyMessage.cleanerText) + return _internal_cleanertext(); } -inline void CleanerChatReplyMessage::set_cleanertext(const ::std::string& value) { - set_has_cleanertext(); - if (cleanertext_ == &::google::protobuf::internal::kEmptyString) { - cleanertext_ = new ::std::string; - } - cleanertext_->assign(value); +inline void CleanerChatReplyMessage::set_cleanertext(const std::string& value) { + _internal_set_cleanertext(value); + // @@protoc_insertion_point(field_set:CleanerChatReplyMessage.cleanerText) +} +inline std::string* CleanerChatReplyMessage::mutable_cleanertext() { + // @@protoc_insertion_point(field_mutable:CleanerChatReplyMessage.cleanerText) + return _internal_mutable_cleanertext(); +} +inline const std::string& CleanerChatReplyMessage::_internal_cleanertext() const { + return cleanertext_.Get(); +} +inline void CleanerChatReplyMessage::_internal_set_cleanertext(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + cleanertext_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void CleanerChatReplyMessage::set_cleanertext(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + cleanertext_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:CleanerChatReplyMessage.cleanerText) } inline void CleanerChatReplyMessage::set_cleanertext(const char* value) { - set_has_cleanertext(); - if (cleanertext_ == &::google::protobuf::internal::kEmptyString) { - cleanertext_ = new ::std::string; - } - cleanertext_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + cleanertext_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:CleanerChatReplyMessage.cleanerText) } -inline void CleanerChatReplyMessage::set_cleanertext(const char* value, size_t size) { - set_has_cleanertext(); - if (cleanertext_ == &::google::protobuf::internal::kEmptyString) { - cleanertext_ = new ::std::string; - } - cleanertext_->assign(reinterpret_cast(value), size); +inline void CleanerChatReplyMessage::set_cleanertext(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + cleanertext_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:CleanerChatReplyMessage.cleanerText) } -inline ::std::string* CleanerChatReplyMessage::mutable_cleanertext() { - set_has_cleanertext(); - if (cleanertext_ == &::google::protobuf::internal::kEmptyString) { - cleanertext_ = new ::std::string; - } - return cleanertext_; +inline std::string* CleanerChatReplyMessage::_internal_mutable_cleanertext() { + _has_bits_[0] |= 0x00000001u; + return cleanertext_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* CleanerChatReplyMessage::release_cleanertext() { - clear_has_cleanertext(); - if (cleanertext_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* CleanerChatReplyMessage::release_cleanertext() { + // @@protoc_insertion_point(field_release:CleanerChatReplyMessage.cleanerText) + if (!_internal_has_cleanertext()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return cleanertext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void CleanerChatReplyMessage::set_allocated_cleanertext(std::string* cleanertext) { + if (cleanertext != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = cleanertext_; - cleanertext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + cleanertext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), cleanertext, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:CleanerChatReplyMessage.cleanerText) } -inline void CleanerChatReplyMessage::set_allocated_cleanertext(::std::string* cleanertext) { - if (cleanertext_ != &::google::protobuf::internal::kEmptyString) { - delete cleanertext_; - } - if (cleanertext) { - set_has_cleanertext(); - cleanertext_ = cleanertext; +inline std::string* CleanerChatReplyMessage::unsafe_arena_release_cleanertext() { + // @@protoc_insertion_point(field_unsafe_arena_release:CleanerChatReplyMessage.cleanerText) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return cleanertext_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void CleanerChatReplyMessage::unsafe_arena_set_allocated_cleanertext( + std::string* cleanertext) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (cleanertext != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_cleanertext(); - cleanertext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + cleanertext_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + cleanertext, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:CleanerChatReplyMessage.cleanerText) } // ------------------------------------------------------------------- @@ -1326,199 +2025,382 @@ inline void CleanerChatReplyMessage::set_allocated_cleanertext(::std::string* cl // ChatCleanerMessage // required .ChatCleanerMessage.ChatCleanerMessageType messageType = 1; +inline bool ChatCleanerMessage::_internal_has_messagetype() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} inline bool ChatCleanerMessage::has_messagetype() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ChatCleanerMessage::set_has_messagetype() { - _has_bits_[0] |= 0x00000001u; -} -inline void ChatCleanerMessage::clear_has_messagetype() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_messagetype(); } inline void ChatCleanerMessage::clear_messagetype() { messagetype_ = 1; - clear_has_messagetype(); + _has_bits_[0] &= ~0x00000010u; } -inline ::ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage::messagetype() const { +inline ::ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage::_internal_messagetype() const { return static_cast< ::ChatCleanerMessage_ChatCleanerMessageType >(messagetype_); } -inline void ChatCleanerMessage::set_messagetype(::ChatCleanerMessage_ChatCleanerMessageType value) { +inline ::ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage::messagetype() const { + // @@protoc_insertion_point(field_get:ChatCleanerMessage.messageType) + return _internal_messagetype(); +} +inline void ChatCleanerMessage::_internal_set_messagetype(::ChatCleanerMessage_ChatCleanerMessageType value) { assert(::ChatCleanerMessage_ChatCleanerMessageType_IsValid(value)); - set_has_messagetype(); + _has_bits_[0] |= 0x00000010u; messagetype_ = value; } +inline void ChatCleanerMessage::set_messagetype(::ChatCleanerMessage_ChatCleanerMessageType value) { + _internal_set_messagetype(value); + // @@protoc_insertion_point(field_set:ChatCleanerMessage.messageType) +} // optional .CleanerInitMessage cleanerInitMessage = 2; +inline bool ChatCleanerMessage::_internal_has_cleanerinitmessage() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || cleanerinitmessage_ != nullptr); + return value; +} inline bool ChatCleanerMessage::has_cleanerinitmessage() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ChatCleanerMessage::set_has_cleanerinitmessage() { - _has_bits_[0] |= 0x00000002u; -} -inline void ChatCleanerMessage::clear_has_cleanerinitmessage() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_cleanerinitmessage(); } inline void ChatCleanerMessage::clear_cleanerinitmessage() { - if (cleanerinitmessage_ != NULL) cleanerinitmessage_->::CleanerInitMessage::Clear(); - clear_has_cleanerinitmessage(); + if (cleanerinitmessage_ != nullptr) cleanerinitmessage_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +inline const ::CleanerInitMessage& ChatCleanerMessage::_internal_cleanerinitmessage() const { + const ::CleanerInitMessage* p = cleanerinitmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_CleanerInitMessage_default_instance_); } inline const ::CleanerInitMessage& ChatCleanerMessage::cleanerinitmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return cleanerinitmessage_ != NULL ? *cleanerinitmessage_ : *default_instance().cleanerinitmessage_; -#else - return cleanerinitmessage_ != NULL ? *cleanerinitmessage_ : *default_instance_->cleanerinitmessage_; -#endif + // @@protoc_insertion_point(field_get:ChatCleanerMessage.cleanerInitMessage) + return _internal_cleanerinitmessage(); } -inline ::CleanerInitMessage* ChatCleanerMessage::mutable_cleanerinitmessage() { - set_has_cleanerinitmessage(); - if (cleanerinitmessage_ == NULL) cleanerinitmessage_ = new ::CleanerInitMessage; - return cleanerinitmessage_; -} -inline ::CleanerInitMessage* ChatCleanerMessage::release_cleanerinitmessage() { - clear_has_cleanerinitmessage(); - ::CleanerInitMessage* temp = cleanerinitmessage_; - cleanerinitmessage_ = NULL; - return temp; -} -inline void ChatCleanerMessage::set_allocated_cleanerinitmessage(::CleanerInitMessage* cleanerinitmessage) { - delete cleanerinitmessage_; +inline void ChatCleanerMessage::unsafe_arena_set_allocated_cleanerinitmessage( + ::CleanerInitMessage* cleanerinitmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cleanerinitmessage_); + } cleanerinitmessage_ = cleanerinitmessage; if (cleanerinitmessage) { - set_has_cleanerinitmessage(); + _has_bits_[0] |= 0x00000001u; } else { - clear_has_cleanerinitmessage(); + _has_bits_[0] &= ~0x00000001u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ChatCleanerMessage.cleanerInitMessage) +} +inline ::CleanerInitMessage* ChatCleanerMessage::release_cleanerinitmessage() { + auto temp = unsafe_arena_release_cleanerinitmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::CleanerInitMessage* ChatCleanerMessage::unsafe_arena_release_cleanerinitmessage() { + // @@protoc_insertion_point(field_release:ChatCleanerMessage.cleanerInitMessage) + _has_bits_[0] &= ~0x00000001u; + ::CleanerInitMessage* temp = cleanerinitmessage_; + cleanerinitmessage_ = nullptr; + return temp; +} +inline ::CleanerInitMessage* ChatCleanerMessage::_internal_mutable_cleanerinitmessage() { + _has_bits_[0] |= 0x00000001u; + if (cleanerinitmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::CleanerInitMessage>(GetArena()); + cleanerinitmessage_ = p; + } + return cleanerinitmessage_; +} +inline ::CleanerInitMessage* ChatCleanerMessage::mutable_cleanerinitmessage() { + // @@protoc_insertion_point(field_mutable:ChatCleanerMessage.cleanerInitMessage) + return _internal_mutable_cleanerinitmessage(); +} +inline void ChatCleanerMessage::set_allocated_cleanerinitmessage(::CleanerInitMessage* cleanerinitmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete cleanerinitmessage_; + } + if (cleanerinitmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(cleanerinitmessage); + if (message_arena != submessage_arena) { + cleanerinitmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, cleanerinitmessage, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + cleanerinitmessage_ = cleanerinitmessage; + // @@protoc_insertion_point(field_set_allocated:ChatCleanerMessage.cleanerInitMessage) } // optional .CleanerInitAckMessage cleanerInitAckMessage = 3; +inline bool ChatCleanerMessage::_internal_has_cleanerinitackmessage() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || cleanerinitackmessage_ != nullptr); + return value; +} inline bool ChatCleanerMessage::has_cleanerinitackmessage() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void ChatCleanerMessage::set_has_cleanerinitackmessage() { - _has_bits_[0] |= 0x00000004u; -} -inline void ChatCleanerMessage::clear_has_cleanerinitackmessage() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_cleanerinitackmessage(); } inline void ChatCleanerMessage::clear_cleanerinitackmessage() { - if (cleanerinitackmessage_ != NULL) cleanerinitackmessage_->::CleanerInitAckMessage::Clear(); - clear_has_cleanerinitackmessage(); + if (cleanerinitackmessage_ != nullptr) cleanerinitackmessage_->Clear(); + _has_bits_[0] &= ~0x00000002u; +} +inline const ::CleanerInitAckMessage& ChatCleanerMessage::_internal_cleanerinitackmessage() const { + const ::CleanerInitAckMessage* p = cleanerinitackmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_CleanerInitAckMessage_default_instance_); } inline const ::CleanerInitAckMessage& ChatCleanerMessage::cleanerinitackmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return cleanerinitackmessage_ != NULL ? *cleanerinitackmessage_ : *default_instance().cleanerinitackmessage_; -#else - return cleanerinitackmessage_ != NULL ? *cleanerinitackmessage_ : *default_instance_->cleanerinitackmessage_; -#endif + // @@protoc_insertion_point(field_get:ChatCleanerMessage.cleanerInitAckMessage) + return _internal_cleanerinitackmessage(); } -inline ::CleanerInitAckMessage* ChatCleanerMessage::mutable_cleanerinitackmessage() { - set_has_cleanerinitackmessage(); - if (cleanerinitackmessage_ == NULL) cleanerinitackmessage_ = new ::CleanerInitAckMessage; - return cleanerinitackmessage_; -} -inline ::CleanerInitAckMessage* ChatCleanerMessage::release_cleanerinitackmessage() { - clear_has_cleanerinitackmessage(); - ::CleanerInitAckMessage* temp = cleanerinitackmessage_; - cleanerinitackmessage_ = NULL; - return temp; -} -inline void ChatCleanerMessage::set_allocated_cleanerinitackmessage(::CleanerInitAckMessage* cleanerinitackmessage) { - delete cleanerinitackmessage_; +inline void ChatCleanerMessage::unsafe_arena_set_allocated_cleanerinitackmessage( + ::CleanerInitAckMessage* cleanerinitackmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cleanerinitackmessage_); + } cleanerinitackmessage_ = cleanerinitackmessage; if (cleanerinitackmessage) { - set_has_cleanerinitackmessage(); + _has_bits_[0] |= 0x00000002u; } else { - clear_has_cleanerinitackmessage(); + _has_bits_[0] &= ~0x00000002u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ChatCleanerMessage.cleanerInitAckMessage) +} +inline ::CleanerInitAckMessage* ChatCleanerMessage::release_cleanerinitackmessage() { + auto temp = unsafe_arena_release_cleanerinitackmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::CleanerInitAckMessage* ChatCleanerMessage::unsafe_arena_release_cleanerinitackmessage() { + // @@protoc_insertion_point(field_release:ChatCleanerMessage.cleanerInitAckMessage) + _has_bits_[0] &= ~0x00000002u; + ::CleanerInitAckMessage* temp = cleanerinitackmessage_; + cleanerinitackmessage_ = nullptr; + return temp; +} +inline ::CleanerInitAckMessage* ChatCleanerMessage::_internal_mutable_cleanerinitackmessage() { + _has_bits_[0] |= 0x00000002u; + if (cleanerinitackmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::CleanerInitAckMessage>(GetArena()); + cleanerinitackmessage_ = p; + } + return cleanerinitackmessage_; +} +inline ::CleanerInitAckMessage* ChatCleanerMessage::mutable_cleanerinitackmessage() { + // @@protoc_insertion_point(field_mutable:ChatCleanerMessage.cleanerInitAckMessage) + return _internal_mutable_cleanerinitackmessage(); +} +inline void ChatCleanerMessage::set_allocated_cleanerinitackmessage(::CleanerInitAckMessage* cleanerinitackmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete cleanerinitackmessage_; + } + if (cleanerinitackmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(cleanerinitackmessage); + if (message_arena != submessage_arena) { + cleanerinitackmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, cleanerinitackmessage, submessage_arena); + } + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + cleanerinitackmessage_ = cleanerinitackmessage; + // @@protoc_insertion_point(field_set_allocated:ChatCleanerMessage.cleanerInitAckMessage) } // optional .CleanerChatRequestMessage cleanerChatRequestMessage = 4; +inline bool ChatCleanerMessage::_internal_has_cleanerchatrequestmessage() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || cleanerchatrequestmessage_ != nullptr); + return value; +} inline bool ChatCleanerMessage::has_cleanerchatrequestmessage() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void ChatCleanerMessage::set_has_cleanerchatrequestmessage() { - _has_bits_[0] |= 0x00000008u; -} -inline void ChatCleanerMessage::clear_has_cleanerchatrequestmessage() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_cleanerchatrequestmessage(); } inline void ChatCleanerMessage::clear_cleanerchatrequestmessage() { - if (cleanerchatrequestmessage_ != NULL) cleanerchatrequestmessage_->::CleanerChatRequestMessage::Clear(); - clear_has_cleanerchatrequestmessage(); + if (cleanerchatrequestmessage_ != nullptr) cleanerchatrequestmessage_->Clear(); + _has_bits_[0] &= ~0x00000004u; +} +inline const ::CleanerChatRequestMessage& ChatCleanerMessage::_internal_cleanerchatrequestmessage() const { + const ::CleanerChatRequestMessage* p = cleanerchatrequestmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_CleanerChatRequestMessage_default_instance_); } inline const ::CleanerChatRequestMessage& ChatCleanerMessage::cleanerchatrequestmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return cleanerchatrequestmessage_ != NULL ? *cleanerchatrequestmessage_ : *default_instance().cleanerchatrequestmessage_; -#else - return cleanerchatrequestmessage_ != NULL ? *cleanerchatrequestmessage_ : *default_instance_->cleanerchatrequestmessage_; -#endif + // @@protoc_insertion_point(field_get:ChatCleanerMessage.cleanerChatRequestMessage) + return _internal_cleanerchatrequestmessage(); } -inline ::CleanerChatRequestMessage* ChatCleanerMessage::mutable_cleanerchatrequestmessage() { - set_has_cleanerchatrequestmessage(); - if (cleanerchatrequestmessage_ == NULL) cleanerchatrequestmessage_ = new ::CleanerChatRequestMessage; - return cleanerchatrequestmessage_; -} -inline ::CleanerChatRequestMessage* ChatCleanerMessage::release_cleanerchatrequestmessage() { - clear_has_cleanerchatrequestmessage(); - ::CleanerChatRequestMessage* temp = cleanerchatrequestmessage_; - cleanerchatrequestmessage_ = NULL; - return temp; -} -inline void ChatCleanerMessage::set_allocated_cleanerchatrequestmessage(::CleanerChatRequestMessage* cleanerchatrequestmessage) { - delete cleanerchatrequestmessage_; +inline void ChatCleanerMessage::unsafe_arena_set_allocated_cleanerchatrequestmessage( + ::CleanerChatRequestMessage* cleanerchatrequestmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cleanerchatrequestmessage_); + } cleanerchatrequestmessage_ = cleanerchatrequestmessage; if (cleanerchatrequestmessage) { - set_has_cleanerchatrequestmessage(); + _has_bits_[0] |= 0x00000004u; } else { - clear_has_cleanerchatrequestmessage(); + _has_bits_[0] &= ~0x00000004u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ChatCleanerMessage.cleanerChatRequestMessage) +} +inline ::CleanerChatRequestMessage* ChatCleanerMessage::release_cleanerchatrequestmessage() { + auto temp = unsafe_arena_release_cleanerchatrequestmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::CleanerChatRequestMessage* ChatCleanerMessage::unsafe_arena_release_cleanerchatrequestmessage() { + // @@protoc_insertion_point(field_release:ChatCleanerMessage.cleanerChatRequestMessage) + _has_bits_[0] &= ~0x00000004u; + ::CleanerChatRequestMessage* temp = cleanerchatrequestmessage_; + cleanerchatrequestmessage_ = nullptr; + return temp; +} +inline ::CleanerChatRequestMessage* ChatCleanerMessage::_internal_mutable_cleanerchatrequestmessage() { + _has_bits_[0] |= 0x00000004u; + if (cleanerchatrequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::CleanerChatRequestMessage>(GetArena()); + cleanerchatrequestmessage_ = p; + } + return cleanerchatrequestmessage_; +} +inline ::CleanerChatRequestMessage* ChatCleanerMessage::mutable_cleanerchatrequestmessage() { + // @@protoc_insertion_point(field_mutable:ChatCleanerMessage.cleanerChatRequestMessage) + return _internal_mutable_cleanerchatrequestmessage(); +} +inline void ChatCleanerMessage::set_allocated_cleanerchatrequestmessage(::CleanerChatRequestMessage* cleanerchatrequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete cleanerchatrequestmessage_; + } + if (cleanerchatrequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(cleanerchatrequestmessage); + if (message_arena != submessage_arena) { + cleanerchatrequestmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, cleanerchatrequestmessage, submessage_arena); + } + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + cleanerchatrequestmessage_ = cleanerchatrequestmessage; + // @@protoc_insertion_point(field_set_allocated:ChatCleanerMessage.cleanerChatRequestMessage) } // optional .CleanerChatReplyMessage cleanerChatReplyMessage = 5; +inline bool ChatCleanerMessage::_internal_has_cleanerchatreplymessage() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + PROTOBUF_ASSUME(!value || cleanerchatreplymessage_ != nullptr); + return value; +} inline bool ChatCleanerMessage::has_cleanerchatreplymessage() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void ChatCleanerMessage::set_has_cleanerchatreplymessage() { - _has_bits_[0] |= 0x00000010u; -} -inline void ChatCleanerMessage::clear_has_cleanerchatreplymessage() { - _has_bits_[0] &= ~0x00000010u; + return _internal_has_cleanerchatreplymessage(); } inline void ChatCleanerMessage::clear_cleanerchatreplymessage() { - if (cleanerchatreplymessage_ != NULL) cleanerchatreplymessage_->::CleanerChatReplyMessage::Clear(); - clear_has_cleanerchatreplymessage(); + if (cleanerchatreplymessage_ != nullptr) cleanerchatreplymessage_->Clear(); + _has_bits_[0] &= ~0x00000008u; +} +inline const ::CleanerChatReplyMessage& ChatCleanerMessage::_internal_cleanerchatreplymessage() const { + const ::CleanerChatReplyMessage* p = cleanerchatreplymessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_CleanerChatReplyMessage_default_instance_); } inline const ::CleanerChatReplyMessage& ChatCleanerMessage::cleanerchatreplymessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return cleanerchatreplymessage_ != NULL ? *cleanerchatreplymessage_ : *default_instance().cleanerchatreplymessage_; -#else - return cleanerchatreplymessage_ != NULL ? *cleanerchatreplymessage_ : *default_instance_->cleanerchatreplymessage_; -#endif + // @@protoc_insertion_point(field_get:ChatCleanerMessage.cleanerChatReplyMessage) + return _internal_cleanerchatreplymessage(); } -inline ::CleanerChatReplyMessage* ChatCleanerMessage::mutable_cleanerchatreplymessage() { - set_has_cleanerchatreplymessage(); - if (cleanerchatreplymessage_ == NULL) cleanerchatreplymessage_ = new ::CleanerChatReplyMessage; - return cleanerchatreplymessage_; -} -inline ::CleanerChatReplyMessage* ChatCleanerMessage::release_cleanerchatreplymessage() { - clear_has_cleanerchatreplymessage(); - ::CleanerChatReplyMessage* temp = cleanerchatreplymessage_; - cleanerchatreplymessage_ = NULL; - return temp; -} -inline void ChatCleanerMessage::set_allocated_cleanerchatreplymessage(::CleanerChatReplyMessage* cleanerchatreplymessage) { - delete cleanerchatreplymessage_; +inline void ChatCleanerMessage::unsafe_arena_set_allocated_cleanerchatreplymessage( + ::CleanerChatReplyMessage* cleanerchatreplymessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cleanerchatreplymessage_); + } cleanerchatreplymessage_ = cleanerchatreplymessage; if (cleanerchatreplymessage) { - set_has_cleanerchatreplymessage(); + _has_bits_[0] |= 0x00000008u; } else { - clear_has_cleanerchatreplymessage(); + _has_bits_[0] &= ~0x00000008u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ChatCleanerMessage.cleanerChatReplyMessage) } +inline ::CleanerChatReplyMessage* ChatCleanerMessage::release_cleanerchatreplymessage() { + auto temp = unsafe_arena_release_cleanerchatreplymessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::CleanerChatReplyMessage* ChatCleanerMessage::unsafe_arena_release_cleanerchatreplymessage() { + // @@protoc_insertion_point(field_release:ChatCleanerMessage.cleanerChatReplyMessage) + _has_bits_[0] &= ~0x00000008u; + ::CleanerChatReplyMessage* temp = cleanerchatreplymessage_; + cleanerchatreplymessage_ = nullptr; + return temp; +} +inline ::CleanerChatReplyMessage* ChatCleanerMessage::_internal_mutable_cleanerchatreplymessage() { + _has_bits_[0] |= 0x00000008u; + if (cleanerchatreplymessage_ == nullptr) { + auto* p = CreateMaybeMessage<::CleanerChatReplyMessage>(GetArena()); + cleanerchatreplymessage_ = p; + } + return cleanerchatreplymessage_; +} +inline ::CleanerChatReplyMessage* ChatCleanerMessage::mutable_cleanerchatreplymessage() { + // @@protoc_insertion_point(field_mutable:ChatCleanerMessage.cleanerChatReplyMessage) + return _internal_mutable_cleanerchatreplymessage(); +} +inline void ChatCleanerMessage::set_allocated_cleanerchatreplymessage(::CleanerChatReplyMessage* cleanerchatreplymessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete cleanerchatreplymessage_; + } + if (cleanerchatreplymessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(cleanerchatreplymessage); + if (message_arena != submessage_arena) { + cleanerchatreplymessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, cleanerchatreplymessage, submessage_arena); + } + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + cleanerchatreplymessage_ = cleanerchatreplymessage; + // @@protoc_insertion_point(field_set_allocated:ChatCleanerMessage.cleanerChatReplyMessage) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- // @@protoc_insertion_point(namespace_scope) + +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::CleanerChatReplyMessage_CleanerActionType> : ::std::true_type {}; +template <> struct is_proto_enum< ::ChatCleanerMessage_ChatCleanerMessageType> : ::std::true_type {}; +template <> struct is_proto_enum< ::CleanerChatType> : ::std::true_type {}; + +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#endif // PROTOBUF_chatcleaner_2eproto__INCLUDED +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_chatcleaner_2eproto diff --git a/src/third_party/protobuf/pokerth.pb.cc b/src/third_party/protobuf/pokerth.pb.cc index 87afe1f8..741a58ea 100644 --- a/src/third_party/protobuf/pokerth.pb.cc +++ b/src/third_party/protobuf/pokerth.pb.cc @@ -1,406 +1,1840 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: pokerth.proto -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "pokerth.pb.h" #include -#include -#include #include -#include +#include +#include +#include // @@protoc_insertion_point(includes) - -void protobuf_ShutdownFile_pokerth_2eproto() { - delete NetGameInfo::default_instance_; - delete PlayerResult::default_instance_; - delete AnnounceMessage::default_instance_; - delete AnnounceMessage_Version::default_instance_; - delete InitMessage::default_instance_; - delete AuthServerChallengeMessage::default_instance_; - delete AuthClientResponseMessage::default_instance_; - delete AuthServerVerificationMessage::default_instance_; - delete InitAckMessage::default_instance_; - delete AvatarRequestMessage::default_instance_; - delete AvatarHeaderMessage::default_instance_; - delete AvatarDataMessage::default_instance_; - delete AvatarEndMessage::default_instance_; - delete UnknownAvatarMessage::default_instance_; - delete PlayerListMessage::default_instance_; - delete GameListNewMessage::default_instance_; - delete GameListUpdateMessage::default_instance_; - delete GameListPlayerJoinedMessage::default_instance_; - delete GameListPlayerLeftMessage::default_instance_; - delete GameListSpectatorJoinedMessage::default_instance_; - delete GameListSpectatorLeftMessage::default_instance_; - delete GameListAdminChangedMessage::default_instance_; - delete PlayerInfoRequestMessage::default_instance_; - delete PlayerInfoReplyMessage::default_instance_; - delete PlayerInfoReplyMessage_PlayerInfoData::default_instance_; - delete PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance_; - delete SubscriptionRequestMessage::default_instance_; - delete JoinExistingGameMessage::default_instance_; - delete JoinNewGameMessage::default_instance_; - delete RejoinExistingGameMessage::default_instance_; - delete JoinGameAckMessage::default_instance_; - delete JoinGameFailedMessage::default_instance_; - delete GamePlayerJoinedMessage::default_instance_; - delete GamePlayerLeftMessage::default_instance_; - delete GameSpectatorJoinedMessage::default_instance_; - delete GameSpectatorLeftMessage::default_instance_; - delete GameAdminChangedMessage::default_instance_; - delete RemovedFromGameMessage::default_instance_; - delete KickPlayerRequestMessage::default_instance_; - delete LeaveGameRequestMessage::default_instance_; - delete InvitePlayerToGameMessage::default_instance_; - delete InviteNotifyMessage::default_instance_; - delete RejectGameInvitationMessage::default_instance_; - delete RejectInvNotifyMessage::default_instance_; - delete StartEventMessage::default_instance_; - delete StartEventAckMessage::default_instance_; - delete GameStartInitialMessage::default_instance_; - delete GameStartRejoinMessage::default_instance_; - delete GameStartRejoinMessage_RejoinPlayerData::default_instance_; - delete GameStartReentryMessage::default_instance_; - delete GameStartReentryMessage_ReentryPlayerData::default_instance_; - delete HandStartMessage::default_instance_; - delete HandStartMessage_PlainCards::default_instance_; - delete PlayersTurnMessage::default_instance_; - delete MyActionRequestMessage::default_instance_; - delete YourActionRejectedMessage::default_instance_; - delete PlayersActionDoneMessage::default_instance_; - delete DealFlopCardsMessage::default_instance_; - delete DealTurnCardMessage::default_instance_; - delete DealRiverCardMessage::default_instance_; - delete AllInShowCardsMessage::default_instance_; - delete AllInShowCardsMessage_PlayerAllIn::default_instance_; - delete EndOfHandShowCardsMessage::default_instance_; - delete EndOfHandHideCardsMessage::default_instance_; - delete ShowMyCardsRequestMessage::default_instance_; - delete AfterHandShowCardsMessage::default_instance_; - delete EndOfGameMessage::default_instance_; - delete PlayerIdChangedMessage::default_instance_; - delete AskKickPlayerMessage::default_instance_; - delete AskKickDeniedMessage::default_instance_; - delete StartKickPetitionMessage::default_instance_; - delete VoteKickRequestMessage::default_instance_; - delete VoteKickReplyMessage::default_instance_; - delete KickPetitionUpdateMessage::default_instance_; - delete EndKickPetitionMessage::default_instance_; - delete StatisticsMessage::default_instance_; - delete StatisticsMessage_StatisticsData::default_instance_; - delete ChatRequestMessage::default_instance_; - delete ChatMessage::default_instance_; - delete ChatRejectMessage::default_instance_; - delete DialogMessage::default_instance_; - delete TimeoutWarningMessage::default_instance_; - delete ResetTimeoutMessage::default_instance_; - delete ReportAvatarMessage::default_instance_; - delete ReportAvatarAckMessage::default_instance_; - delete ReportGameMessage::default_instance_; - delete ReportGameAckMessage::default_instance_; - delete ErrorMessage::default_instance_; - delete AdminRemoveGameMessage::default_instance_; - delete AdminRemoveGameAckMessage::default_instance_; - delete AdminBanPlayerMessage::default_instance_; - delete AdminBanPlayerAckMessage::default_instance_; - delete PokerTHMessage::default_instance_; -} - -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -void protobuf_AddDesc_pokerth_2eproto_impl() { +#include +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AdminBanPlayerAckMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AdminBanPlayerMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AdminRemoveGameAckMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AdminRemoveGameMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AfterHandShowCardsMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AllInShowCardsMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AllInShowCardsMessage_PlayerAllIn_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AnnounceMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AnnounceMessage_Version_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AskKickDeniedMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AskKickPlayerMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AuthClientResponseMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AuthServerChallengeMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AuthServerVerificationMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AvatarDataMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AvatarEndMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AvatarHeaderMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AvatarRequestMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ChatMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ChatRejectMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ChatRequestMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DealFlopCardsMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DealRiverCardMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DealTurnCardMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DialogMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EndKickPetitionMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EndOfGameMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EndOfHandHideCardsMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EndOfHandShowCardsMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ErrorMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameAdminChangedMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameListAdminChangedMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GameListNewMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameListPlayerJoinedMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameListPlayerLeftMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameListSpectatorJoinedMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameListSpectatorLeftMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameListUpdateMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GamePlayerJoinedMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GamePlayerLeftMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameSpectatorJoinedMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameSpectatorLeftMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameStartInitialMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GameStartRejoinMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameStartRejoinMessage_RejoinPlayerData_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_HandStartMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_HandStartMessage_PlainCards_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_InitAckMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_InitMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_InviteNotifyMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_InvitePlayerToGameMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_JoinExistingGameMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_JoinGameAckMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_JoinGameFailedMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_JoinNewGameMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KickPetitionUpdateMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KickPlayerRequestMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LeaveGameRequestMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MyActionRequestMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_NetGameInfo_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlayerIdChangedMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PlayerInfoReplyMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PlayerInfoReplyMessage_PlayerInfoData_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlayerInfoRequestMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlayerListMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlayerResult_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlayersActionDoneMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlayersTurnMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RejectGameInvitationMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RejectInvNotifyMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RejoinExistingGameMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RemovedFromGameMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ReportAvatarAckMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ReportAvatarMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ReportGameAckMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ReportGameMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ResetTimeoutMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ShowMyCardsRequestMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StartEventAckMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StartEventMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StartKickPetitionMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_StatisticsMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StatisticsMessage_StatisticsData_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SubscriptionRequestMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TimeoutWarningMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_UnknownAvatarMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VoteKickReplyMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VoteKickRequestMessage_pokerth_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_YourActionRejectedMessage_pokerth_2eproto; +class NetGameInfoDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _NetGameInfo_default_instance_; +class PlayerResultDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _PlayerResult_default_instance_; +class AnnounceMessage_VersionDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _AnnounceMessage_Version_default_instance_; +class AnnounceMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _AnnounceMessage_default_instance_; +class InitMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _InitMessage_default_instance_; +class AuthServerChallengeMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _AuthServerChallengeMessage_default_instance_; +class AuthClientResponseMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _AuthClientResponseMessage_default_instance_; +class AuthServerVerificationMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _AuthServerVerificationMessage_default_instance_; +class InitAckMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _InitAckMessage_default_instance_; +class AvatarRequestMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _AvatarRequestMessage_default_instance_; +class AvatarHeaderMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _AvatarHeaderMessage_default_instance_; +class AvatarDataMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _AvatarDataMessage_default_instance_; +class AvatarEndMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _AvatarEndMessage_default_instance_; +class UnknownAvatarMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _UnknownAvatarMessage_default_instance_; +class PlayerListMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _PlayerListMessage_default_instance_; +class GameListNewMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GameListNewMessage_default_instance_; +class GameListUpdateMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GameListUpdateMessage_default_instance_; +class GameListPlayerJoinedMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GameListPlayerJoinedMessage_default_instance_; +class GameListPlayerLeftMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GameListPlayerLeftMessage_default_instance_; +class GameListSpectatorJoinedMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GameListSpectatorJoinedMessage_default_instance_; +class GameListSpectatorLeftMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GameListSpectatorLeftMessage_default_instance_; +class GameListAdminChangedMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GameListAdminChangedMessage_default_instance_; +class PlayerInfoRequestMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _PlayerInfoRequestMessage_default_instance_; +class PlayerInfoReplyMessage_PlayerInfoData_AvatarDataDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _PlayerInfoReplyMessage_PlayerInfoData_AvatarData_default_instance_; +class PlayerInfoReplyMessage_PlayerInfoDataDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _PlayerInfoReplyMessage_PlayerInfoData_default_instance_; +class PlayerInfoReplyMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _PlayerInfoReplyMessage_default_instance_; +class SubscriptionRequestMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _SubscriptionRequestMessage_default_instance_; +class JoinExistingGameMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _JoinExistingGameMessage_default_instance_; +class JoinNewGameMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _JoinNewGameMessage_default_instance_; +class RejoinExistingGameMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _RejoinExistingGameMessage_default_instance_; +class JoinGameAckMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _JoinGameAckMessage_default_instance_; +class JoinGameFailedMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _JoinGameFailedMessage_default_instance_; +class GamePlayerJoinedMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GamePlayerJoinedMessage_default_instance_; +class GamePlayerLeftMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GamePlayerLeftMessage_default_instance_; +class GameSpectatorJoinedMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GameSpectatorJoinedMessage_default_instance_; +class GameSpectatorLeftMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GameSpectatorLeftMessage_default_instance_; +class GameAdminChangedMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GameAdminChangedMessage_default_instance_; +class RemovedFromGameMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _RemovedFromGameMessage_default_instance_; +class KickPlayerRequestMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _KickPlayerRequestMessage_default_instance_; +class LeaveGameRequestMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _LeaveGameRequestMessage_default_instance_; +class InvitePlayerToGameMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _InvitePlayerToGameMessage_default_instance_; +class InviteNotifyMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _InviteNotifyMessage_default_instance_; +class RejectGameInvitationMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _RejectGameInvitationMessage_default_instance_; +class RejectInvNotifyMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _RejectInvNotifyMessage_default_instance_; +class StartEventMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _StartEventMessage_default_instance_; +class StartEventAckMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _StartEventAckMessage_default_instance_; +class GameStartInitialMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GameStartInitialMessage_default_instance_; +class GameStartRejoinMessage_RejoinPlayerDataDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GameStartRejoinMessage_RejoinPlayerData_default_instance_; +class GameStartRejoinMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GameStartRejoinMessage_default_instance_; +class HandStartMessage_PlainCardsDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _HandStartMessage_PlainCards_default_instance_; +class HandStartMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _HandStartMessage_default_instance_; +class PlayersTurnMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _PlayersTurnMessage_default_instance_; +class MyActionRequestMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _MyActionRequestMessage_default_instance_; +class YourActionRejectedMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _YourActionRejectedMessage_default_instance_; +class PlayersActionDoneMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _PlayersActionDoneMessage_default_instance_; +class DealFlopCardsMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _DealFlopCardsMessage_default_instance_; +class DealTurnCardMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _DealTurnCardMessage_default_instance_; +class DealRiverCardMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _DealRiverCardMessage_default_instance_; +class AllInShowCardsMessage_PlayerAllInDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _AllInShowCardsMessage_PlayerAllIn_default_instance_; +class AllInShowCardsMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _AllInShowCardsMessage_default_instance_; +class EndOfHandShowCardsMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _EndOfHandShowCardsMessage_default_instance_; +class EndOfHandHideCardsMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _EndOfHandHideCardsMessage_default_instance_; +class ShowMyCardsRequestMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ShowMyCardsRequestMessage_default_instance_; +class AfterHandShowCardsMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _AfterHandShowCardsMessage_default_instance_; +class EndOfGameMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _EndOfGameMessage_default_instance_; +class PlayerIdChangedMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _PlayerIdChangedMessage_default_instance_; +class AskKickPlayerMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _AskKickPlayerMessage_default_instance_; +class AskKickDeniedMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _AskKickDeniedMessage_default_instance_; +class StartKickPetitionMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _StartKickPetitionMessage_default_instance_; +class VoteKickRequestMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _VoteKickRequestMessage_default_instance_; +class VoteKickReplyMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _VoteKickReplyMessage_default_instance_; +class KickPetitionUpdateMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _KickPetitionUpdateMessage_default_instance_; +class EndKickPetitionMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _EndKickPetitionMessage_default_instance_; +class StatisticsMessage_StatisticsDataDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _StatisticsMessage_StatisticsData_default_instance_; +class StatisticsMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _StatisticsMessage_default_instance_; +class ChatRequestMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ChatRequestMessage_default_instance_; +class ChatMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ChatMessage_default_instance_; +class ChatRejectMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ChatRejectMessage_default_instance_; +class DialogMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _DialogMessage_default_instance_; +class TimeoutWarningMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _TimeoutWarningMessage_default_instance_; +class ResetTimeoutMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ResetTimeoutMessage_default_instance_; +class ReportAvatarMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ReportAvatarMessage_default_instance_; +class ReportAvatarAckMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ReportAvatarAckMessage_default_instance_; +class ReportGameMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ReportGameMessage_default_instance_; +class ReportGameAckMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ReportGameAckMessage_default_instance_; +class ErrorMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ErrorMessage_default_instance_; +class AdminRemoveGameMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _AdminRemoveGameMessage_default_instance_; +class AdminRemoveGameAckMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _AdminRemoveGameAckMessage_default_instance_; +class AdminBanPlayerMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _AdminBanPlayerMessage_default_instance_; +class AdminBanPlayerAckMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _AdminBanPlayerAckMessage_default_instance_; +class PokerTHMessageDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _PokerTHMessage_default_instance_; +static void InitDefaultsscc_info_AdminBanPlayerAckMessage_pokerth_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; -#else -void protobuf_AddDesc_pokerth_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; + { + void* ptr = &::_AdminBanPlayerAckMessage_default_instance_; + new (ptr) ::AdminBanPlayerAckMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::AdminBanPlayerAckMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AdminBanPlayerAckMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AdminBanPlayerAckMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_AdminBanPlayerMessage_pokerth_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; -#endif - NetGameInfo::default_instance_ = new NetGameInfo(); - PlayerResult::default_instance_ = new PlayerResult(); - AnnounceMessage::default_instance_ = new AnnounceMessage(); - AnnounceMessage_Version::default_instance_ = new AnnounceMessage_Version(); - InitMessage::default_instance_ = new InitMessage(); - AuthServerChallengeMessage::default_instance_ = new AuthServerChallengeMessage(); - AuthClientResponseMessage::default_instance_ = new AuthClientResponseMessage(); - AuthServerVerificationMessage::default_instance_ = new AuthServerVerificationMessage(); - InitAckMessage::default_instance_ = new InitAckMessage(); - AvatarRequestMessage::default_instance_ = new AvatarRequestMessage(); - AvatarHeaderMessage::default_instance_ = new AvatarHeaderMessage(); - AvatarDataMessage::default_instance_ = new AvatarDataMessage(); - AvatarEndMessage::default_instance_ = new AvatarEndMessage(); - UnknownAvatarMessage::default_instance_ = new UnknownAvatarMessage(); - PlayerListMessage::default_instance_ = new PlayerListMessage(); - GameListNewMessage::default_instance_ = new GameListNewMessage(); - GameListUpdateMessage::default_instance_ = new GameListUpdateMessage(); - GameListPlayerJoinedMessage::default_instance_ = new GameListPlayerJoinedMessage(); - GameListPlayerLeftMessage::default_instance_ = new GameListPlayerLeftMessage(); - GameListSpectatorJoinedMessage::default_instance_ = new GameListSpectatorJoinedMessage(); - GameListSpectatorLeftMessage::default_instance_ = new GameListSpectatorLeftMessage(); - GameListAdminChangedMessage::default_instance_ = new GameListAdminChangedMessage(); - PlayerInfoRequestMessage::default_instance_ = new PlayerInfoRequestMessage(); - PlayerInfoReplyMessage::default_instance_ = new PlayerInfoReplyMessage(); - PlayerInfoReplyMessage_PlayerInfoData::default_instance_ = new PlayerInfoReplyMessage_PlayerInfoData(); - PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance_ = new PlayerInfoReplyMessage_PlayerInfoData_AvatarData(); - SubscriptionRequestMessage::default_instance_ = new SubscriptionRequestMessage(); - JoinExistingGameMessage::default_instance_ = new JoinExistingGameMessage(); - JoinNewGameMessage::default_instance_ = new JoinNewGameMessage(); - RejoinExistingGameMessage::default_instance_ = new RejoinExistingGameMessage(); - JoinGameAckMessage::default_instance_ = new JoinGameAckMessage(); - JoinGameFailedMessage::default_instance_ = new JoinGameFailedMessage(); - GamePlayerJoinedMessage::default_instance_ = new GamePlayerJoinedMessage(); - GamePlayerLeftMessage::default_instance_ = new GamePlayerLeftMessage(); - GameSpectatorJoinedMessage::default_instance_ = new GameSpectatorJoinedMessage(); - GameSpectatorLeftMessage::default_instance_ = new GameSpectatorLeftMessage(); - GameAdminChangedMessage::default_instance_ = new GameAdminChangedMessage(); - RemovedFromGameMessage::default_instance_ = new RemovedFromGameMessage(); - KickPlayerRequestMessage::default_instance_ = new KickPlayerRequestMessage(); - LeaveGameRequestMessage::default_instance_ = new LeaveGameRequestMessage(); - InvitePlayerToGameMessage::default_instance_ = new InvitePlayerToGameMessage(); - InviteNotifyMessage::default_instance_ = new InviteNotifyMessage(); - RejectGameInvitationMessage::default_instance_ = new RejectGameInvitationMessage(); - RejectInvNotifyMessage::default_instance_ = new RejectInvNotifyMessage(); - StartEventMessage::default_instance_ = new StartEventMessage(); - StartEventAckMessage::default_instance_ = new StartEventAckMessage(); - GameStartInitialMessage::default_instance_ = new GameStartInitialMessage(); - GameStartRejoinMessage::default_instance_ = new GameStartRejoinMessage(); - GameStartRejoinMessage_RejoinPlayerData::default_instance_ = new GameStartRejoinMessage_RejoinPlayerData(); - GameStartReentryMessage::default_instance_ = new GameStartReentryMessage(); - GameStartReentryMessage_ReentryPlayerData::default_instance_ = new GameStartReentryMessage_ReentryPlayerData(); - HandStartMessage::default_instance_ = new HandStartMessage(); - HandStartMessage_PlainCards::default_instance_ = new HandStartMessage_PlainCards(); - PlayersTurnMessage::default_instance_ = new PlayersTurnMessage(); - MyActionRequestMessage::default_instance_ = new MyActionRequestMessage(); - YourActionRejectedMessage::default_instance_ = new YourActionRejectedMessage(); - PlayersActionDoneMessage::default_instance_ = new PlayersActionDoneMessage(); - DealFlopCardsMessage::default_instance_ = new DealFlopCardsMessage(); - DealTurnCardMessage::default_instance_ = new DealTurnCardMessage(); - DealRiverCardMessage::default_instance_ = new DealRiverCardMessage(); - AllInShowCardsMessage::default_instance_ = new AllInShowCardsMessage(); - AllInShowCardsMessage_PlayerAllIn::default_instance_ = new AllInShowCardsMessage_PlayerAllIn(); - EndOfHandShowCardsMessage::default_instance_ = new EndOfHandShowCardsMessage(); - EndOfHandHideCardsMessage::default_instance_ = new EndOfHandHideCardsMessage(); - ShowMyCardsRequestMessage::default_instance_ = new ShowMyCardsRequestMessage(); - AfterHandShowCardsMessage::default_instance_ = new AfterHandShowCardsMessage(); - EndOfGameMessage::default_instance_ = new EndOfGameMessage(); - PlayerIdChangedMessage::default_instance_ = new PlayerIdChangedMessage(); - AskKickPlayerMessage::default_instance_ = new AskKickPlayerMessage(); - AskKickDeniedMessage::default_instance_ = new AskKickDeniedMessage(); - StartKickPetitionMessage::default_instance_ = new StartKickPetitionMessage(); - VoteKickRequestMessage::default_instance_ = new VoteKickRequestMessage(); - VoteKickReplyMessage::default_instance_ = new VoteKickReplyMessage(); - KickPetitionUpdateMessage::default_instance_ = new KickPetitionUpdateMessage(); - EndKickPetitionMessage::default_instance_ = new EndKickPetitionMessage(); - StatisticsMessage::default_instance_ = new StatisticsMessage(); - StatisticsMessage_StatisticsData::default_instance_ = new StatisticsMessage_StatisticsData(); - ChatRequestMessage::default_instance_ = new ChatRequestMessage(); - ChatMessage::default_instance_ = new ChatMessage(); - ChatRejectMessage::default_instance_ = new ChatRejectMessage(); - DialogMessage::default_instance_ = new DialogMessage(); - TimeoutWarningMessage::default_instance_ = new TimeoutWarningMessage(); - ResetTimeoutMessage::default_instance_ = new ResetTimeoutMessage(); - ReportAvatarMessage::default_instance_ = new ReportAvatarMessage(); - ReportAvatarAckMessage::default_instance_ = new ReportAvatarAckMessage(); - ReportGameMessage::default_instance_ = new ReportGameMessage(); - ReportGameAckMessage::default_instance_ = new ReportGameAckMessage(); - ErrorMessage::default_instance_ = new ErrorMessage(); - AdminRemoveGameMessage::default_instance_ = new AdminRemoveGameMessage(); - AdminRemoveGameAckMessage::default_instance_ = new AdminRemoveGameAckMessage(); - AdminBanPlayerMessage::default_instance_ = new AdminBanPlayerMessage(); - AdminBanPlayerAckMessage::default_instance_ = new AdminBanPlayerAckMessage(); - PokerTHMessage::default_instance_ = new PokerTHMessage(); - NetGameInfo::default_instance_->InitAsDefaultInstance(); - PlayerResult::default_instance_->InitAsDefaultInstance(); - AnnounceMessage::default_instance_->InitAsDefaultInstance(); - AnnounceMessage_Version::default_instance_->InitAsDefaultInstance(); - InitMessage::default_instance_->InitAsDefaultInstance(); - AuthServerChallengeMessage::default_instance_->InitAsDefaultInstance(); - AuthClientResponseMessage::default_instance_->InitAsDefaultInstance(); - AuthServerVerificationMessage::default_instance_->InitAsDefaultInstance(); - InitAckMessage::default_instance_->InitAsDefaultInstance(); - AvatarRequestMessage::default_instance_->InitAsDefaultInstance(); - AvatarHeaderMessage::default_instance_->InitAsDefaultInstance(); - AvatarDataMessage::default_instance_->InitAsDefaultInstance(); - AvatarEndMessage::default_instance_->InitAsDefaultInstance(); - UnknownAvatarMessage::default_instance_->InitAsDefaultInstance(); - PlayerListMessage::default_instance_->InitAsDefaultInstance(); - GameListNewMessage::default_instance_->InitAsDefaultInstance(); - GameListUpdateMessage::default_instance_->InitAsDefaultInstance(); - GameListPlayerJoinedMessage::default_instance_->InitAsDefaultInstance(); - GameListPlayerLeftMessage::default_instance_->InitAsDefaultInstance(); - GameListSpectatorJoinedMessage::default_instance_->InitAsDefaultInstance(); - GameListSpectatorLeftMessage::default_instance_->InitAsDefaultInstance(); - GameListAdminChangedMessage::default_instance_->InitAsDefaultInstance(); - PlayerInfoRequestMessage::default_instance_->InitAsDefaultInstance(); - PlayerInfoReplyMessage::default_instance_->InitAsDefaultInstance(); - PlayerInfoReplyMessage_PlayerInfoData::default_instance_->InitAsDefaultInstance(); - PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance_->InitAsDefaultInstance(); - SubscriptionRequestMessage::default_instance_->InitAsDefaultInstance(); - JoinExistingGameMessage::default_instance_->InitAsDefaultInstance(); - JoinNewGameMessage::default_instance_->InitAsDefaultInstance(); - RejoinExistingGameMessage::default_instance_->InitAsDefaultInstance(); - JoinGameAckMessage::default_instance_->InitAsDefaultInstance(); - JoinGameFailedMessage::default_instance_->InitAsDefaultInstance(); - GamePlayerJoinedMessage::default_instance_->InitAsDefaultInstance(); - GamePlayerLeftMessage::default_instance_->InitAsDefaultInstance(); - GameSpectatorJoinedMessage::default_instance_->InitAsDefaultInstance(); - GameSpectatorLeftMessage::default_instance_->InitAsDefaultInstance(); - GameAdminChangedMessage::default_instance_->InitAsDefaultInstance(); - RemovedFromGameMessage::default_instance_->InitAsDefaultInstance(); - KickPlayerRequestMessage::default_instance_->InitAsDefaultInstance(); - LeaveGameRequestMessage::default_instance_->InitAsDefaultInstance(); - InvitePlayerToGameMessage::default_instance_->InitAsDefaultInstance(); - InviteNotifyMessage::default_instance_->InitAsDefaultInstance(); - RejectGameInvitationMessage::default_instance_->InitAsDefaultInstance(); - RejectInvNotifyMessage::default_instance_->InitAsDefaultInstance(); - StartEventMessage::default_instance_->InitAsDefaultInstance(); - StartEventAckMessage::default_instance_->InitAsDefaultInstance(); - GameStartInitialMessage::default_instance_->InitAsDefaultInstance(); - GameStartRejoinMessage::default_instance_->InitAsDefaultInstance(); - GameStartRejoinMessage_RejoinPlayerData::default_instance_->InitAsDefaultInstance(); - GameStartReentryMessage::default_instance_->InitAsDefaultInstance(); - GameStartReentryMessage_ReentryPlayerData::default_instance_->InitAsDefaultInstance(); - HandStartMessage::default_instance_->InitAsDefaultInstance(); - HandStartMessage_PlainCards::default_instance_->InitAsDefaultInstance(); - PlayersTurnMessage::default_instance_->InitAsDefaultInstance(); - MyActionRequestMessage::default_instance_->InitAsDefaultInstance(); - YourActionRejectedMessage::default_instance_->InitAsDefaultInstance(); - PlayersActionDoneMessage::default_instance_->InitAsDefaultInstance(); - DealFlopCardsMessage::default_instance_->InitAsDefaultInstance(); - DealTurnCardMessage::default_instance_->InitAsDefaultInstance(); - DealRiverCardMessage::default_instance_->InitAsDefaultInstance(); - AllInShowCardsMessage::default_instance_->InitAsDefaultInstance(); - AllInShowCardsMessage_PlayerAllIn::default_instance_->InitAsDefaultInstance(); - EndOfHandShowCardsMessage::default_instance_->InitAsDefaultInstance(); - EndOfHandHideCardsMessage::default_instance_->InitAsDefaultInstance(); - ShowMyCardsRequestMessage::default_instance_->InitAsDefaultInstance(); - AfterHandShowCardsMessage::default_instance_->InitAsDefaultInstance(); - EndOfGameMessage::default_instance_->InitAsDefaultInstance(); - PlayerIdChangedMessage::default_instance_->InitAsDefaultInstance(); - AskKickPlayerMessage::default_instance_->InitAsDefaultInstance(); - AskKickDeniedMessage::default_instance_->InitAsDefaultInstance(); - StartKickPetitionMessage::default_instance_->InitAsDefaultInstance(); - VoteKickRequestMessage::default_instance_->InitAsDefaultInstance(); - VoteKickReplyMessage::default_instance_->InitAsDefaultInstance(); - KickPetitionUpdateMessage::default_instance_->InitAsDefaultInstance(); - EndKickPetitionMessage::default_instance_->InitAsDefaultInstance(); - StatisticsMessage::default_instance_->InitAsDefaultInstance(); - StatisticsMessage_StatisticsData::default_instance_->InitAsDefaultInstance(); - ChatRequestMessage::default_instance_->InitAsDefaultInstance(); - ChatMessage::default_instance_->InitAsDefaultInstance(); - ChatRejectMessage::default_instance_->InitAsDefaultInstance(); - DialogMessage::default_instance_->InitAsDefaultInstance(); - TimeoutWarningMessage::default_instance_->InitAsDefaultInstance(); - ResetTimeoutMessage::default_instance_->InitAsDefaultInstance(); - ReportAvatarMessage::default_instance_->InitAsDefaultInstance(); - ReportAvatarAckMessage::default_instance_->InitAsDefaultInstance(); - ReportGameMessage::default_instance_->InitAsDefaultInstance(); - ReportGameAckMessage::default_instance_->InitAsDefaultInstance(); - ErrorMessage::default_instance_->InitAsDefaultInstance(); - AdminRemoveGameMessage::default_instance_->InitAsDefaultInstance(); - AdminRemoveGameAckMessage::default_instance_->InitAsDefaultInstance(); - AdminBanPlayerMessage::default_instance_->InitAsDefaultInstance(); - AdminBanPlayerAckMessage::default_instance_->InitAsDefaultInstance(); - PokerTHMessage::default_instance_->InitAsDefaultInstance(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_pokerth_2eproto); -} - -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_pokerth_2eproto_once_); -void protobuf_AddDesc_pokerth_2eproto() { - ::google::protobuf::::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_pokerth_2eproto_once_, - &protobuf_AddDesc_pokerth_2eproto_impl); -} -#else -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_pokerth_2eproto { - StaticDescriptorInitializer_pokerth_2eproto() { - protobuf_AddDesc_pokerth_2eproto(); - } -} static_descriptor_initializer_pokerth_2eproto_; -#endif -bool NetGameMode_IsValid(int value) { - switch(value) { - case 1: - case 2: - case 3: - return true; - default: - return false; + { + void* ptr = &::_AdminBanPlayerMessage_default_instance_; + new (ptr) ::AdminBanPlayerMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } + ::AdminBanPlayerMessage::InitAsDefaultInstance(); } -bool NetGameState_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AdminBanPlayerMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AdminBanPlayerMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_AdminRemoveGameAckMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_AdminRemoveGameAckMessage_default_instance_; + new (ptr) ::AdminRemoveGameAckMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } + ::AdminRemoveGameAckMessage::InitAsDefaultInstance(); } -bool NetPlayerAction_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - return true; - default: - return false; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AdminRemoveGameAckMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AdminRemoveGameAckMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_AdminRemoveGameMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_AdminRemoveGameMessage_default_instance_; + new (ptr) ::AdminRemoveGameMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } + ::AdminRemoveGameMessage::InitAsDefaultInstance(); } -bool NetPlayerState_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - return true; - default: - return false; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AdminRemoveGameMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AdminRemoveGameMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_AfterHandShowCardsMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_AfterHandShowCardsMessage_default_instance_; + new (ptr) ::AfterHandShowCardsMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } + ::AfterHandShowCardsMessage::InitAsDefaultInstance(); } -bool NetPlayerInfoRights_IsValid(int value) { - switch(value) { - case 1: - case 2: - case 3: - return true; - default: - return false; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AfterHandShowCardsMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_AfterHandShowCardsMessage_pokerth_2eproto}, { + &scc_info_PlayerResult_pokerth_2eproto.base,}}; + +static void InitDefaultsscc_info_AllInShowCardsMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_AllInShowCardsMessage_default_instance_; + new (ptr) ::AllInShowCardsMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } + ::AllInShowCardsMessage::InitAsDefaultInstance(); } -bool NetAvatarType_IsValid(int value) { - switch(value) { - case 1: - case 2: - case 3: - return true; - default: - return false; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AllInShowCardsMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_AllInShowCardsMessage_pokerth_2eproto}, { + &scc_info_AllInShowCardsMessage_PlayerAllIn_pokerth_2eproto.base,}}; + +static void InitDefaultsscc_info_AllInShowCardsMessage_PlayerAllIn_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_AllInShowCardsMessage_PlayerAllIn_default_instance_; + new (ptr) ::AllInShowCardsMessage_PlayerAllIn(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } + ::AllInShowCardsMessage_PlayerAllIn::InitAsDefaultInstance(); } +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AllInShowCardsMessage_PlayerAllIn_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AllInShowCardsMessage_PlayerAllIn_pokerth_2eproto}, {}}; -// =================================================================== +static void InitDefaultsscc_info_AnnounceMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_AnnounceMessage_default_instance_; + new (ptr) ::AnnounceMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::AnnounceMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AnnounceMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_AnnounceMessage_pokerth_2eproto}, { + &scc_info_AnnounceMessage_Version_pokerth_2eproto.base,}}; + +static void InitDefaultsscc_info_AnnounceMessage_Version_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_AnnounceMessage_Version_default_instance_; + new (ptr) ::AnnounceMessage_Version(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::AnnounceMessage_Version::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AnnounceMessage_Version_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AnnounceMessage_Version_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_AskKickDeniedMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_AskKickDeniedMessage_default_instance_; + new (ptr) ::AskKickDeniedMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::AskKickDeniedMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AskKickDeniedMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AskKickDeniedMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_AskKickPlayerMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_AskKickPlayerMessage_default_instance_; + new (ptr) ::AskKickPlayerMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::AskKickPlayerMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AskKickPlayerMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AskKickPlayerMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_AuthClientResponseMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_AuthClientResponseMessage_default_instance_; + new (ptr) ::AuthClientResponseMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::AuthClientResponseMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AuthClientResponseMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AuthClientResponseMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_AuthServerChallengeMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_AuthServerChallengeMessage_default_instance_; + new (ptr) ::AuthServerChallengeMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::AuthServerChallengeMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AuthServerChallengeMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AuthServerChallengeMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_AuthServerVerificationMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_AuthServerVerificationMessage_default_instance_; + new (ptr) ::AuthServerVerificationMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::AuthServerVerificationMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AuthServerVerificationMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AuthServerVerificationMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_AvatarDataMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_AvatarDataMessage_default_instance_; + new (ptr) ::AvatarDataMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::AvatarDataMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AvatarDataMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AvatarDataMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_AvatarEndMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_AvatarEndMessage_default_instance_; + new (ptr) ::AvatarEndMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::AvatarEndMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AvatarEndMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AvatarEndMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_AvatarHeaderMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_AvatarHeaderMessage_default_instance_; + new (ptr) ::AvatarHeaderMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::AvatarHeaderMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AvatarHeaderMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AvatarHeaderMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_AvatarRequestMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_AvatarRequestMessage_default_instance_; + new (ptr) ::AvatarRequestMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::AvatarRequestMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AvatarRequestMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AvatarRequestMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_ChatMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_ChatMessage_default_instance_; + new (ptr) ::ChatMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::ChatMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ChatMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ChatMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_ChatRejectMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_ChatRejectMessage_default_instance_; + new (ptr) ::ChatRejectMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::ChatRejectMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ChatRejectMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ChatRejectMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_ChatRequestMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_ChatRequestMessage_default_instance_; + new (ptr) ::ChatRequestMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::ChatRequestMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ChatRequestMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ChatRequestMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_DealFlopCardsMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_DealFlopCardsMessage_default_instance_; + new (ptr) ::DealFlopCardsMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::DealFlopCardsMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DealFlopCardsMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_DealFlopCardsMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_DealRiverCardMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_DealRiverCardMessage_default_instance_; + new (ptr) ::DealRiverCardMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::DealRiverCardMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DealRiverCardMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_DealRiverCardMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_DealTurnCardMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_DealTurnCardMessage_default_instance_; + new (ptr) ::DealTurnCardMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::DealTurnCardMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DealTurnCardMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_DealTurnCardMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_DialogMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_DialogMessage_default_instance_; + new (ptr) ::DialogMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::DialogMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DialogMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_DialogMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_EndKickPetitionMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_EndKickPetitionMessage_default_instance_; + new (ptr) ::EndKickPetitionMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::EndKickPetitionMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EndKickPetitionMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_EndKickPetitionMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_EndOfGameMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_EndOfGameMessage_default_instance_; + new (ptr) ::EndOfGameMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::EndOfGameMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EndOfGameMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_EndOfGameMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_EndOfHandHideCardsMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_EndOfHandHideCardsMessage_default_instance_; + new (ptr) ::EndOfHandHideCardsMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::EndOfHandHideCardsMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EndOfHandHideCardsMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_EndOfHandHideCardsMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_EndOfHandShowCardsMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_EndOfHandShowCardsMessage_default_instance_; + new (ptr) ::EndOfHandShowCardsMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::EndOfHandShowCardsMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EndOfHandShowCardsMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_EndOfHandShowCardsMessage_pokerth_2eproto}, { + &scc_info_PlayerResult_pokerth_2eproto.base,}}; + +static void InitDefaultsscc_info_ErrorMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_ErrorMessage_default_instance_; + new (ptr) ::ErrorMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::ErrorMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ErrorMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ErrorMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_GameAdminChangedMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_GameAdminChangedMessage_default_instance_; + new (ptr) ::GameAdminChangedMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::GameAdminChangedMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameAdminChangedMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GameAdminChangedMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_GameListAdminChangedMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_GameListAdminChangedMessage_default_instance_; + new (ptr) ::GameListAdminChangedMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::GameListAdminChangedMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameListAdminChangedMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GameListAdminChangedMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_GameListNewMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_GameListNewMessage_default_instance_; + new (ptr) ::GameListNewMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::GameListNewMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GameListNewMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GameListNewMessage_pokerth_2eproto}, { + &scc_info_NetGameInfo_pokerth_2eproto.base,}}; + +static void InitDefaultsscc_info_GameListPlayerJoinedMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_GameListPlayerJoinedMessage_default_instance_; + new (ptr) ::GameListPlayerJoinedMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::GameListPlayerJoinedMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameListPlayerJoinedMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GameListPlayerJoinedMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_GameListPlayerLeftMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_GameListPlayerLeftMessage_default_instance_; + new (ptr) ::GameListPlayerLeftMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::GameListPlayerLeftMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameListPlayerLeftMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GameListPlayerLeftMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_GameListSpectatorJoinedMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_GameListSpectatorJoinedMessage_default_instance_; + new (ptr) ::GameListSpectatorJoinedMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::GameListSpectatorJoinedMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameListSpectatorJoinedMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GameListSpectatorJoinedMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_GameListSpectatorLeftMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_GameListSpectatorLeftMessage_default_instance_; + new (ptr) ::GameListSpectatorLeftMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::GameListSpectatorLeftMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameListSpectatorLeftMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GameListSpectatorLeftMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_GameListUpdateMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_GameListUpdateMessage_default_instance_; + new (ptr) ::GameListUpdateMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::GameListUpdateMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameListUpdateMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GameListUpdateMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_GamePlayerJoinedMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_GamePlayerJoinedMessage_default_instance_; + new (ptr) ::GamePlayerJoinedMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::GamePlayerJoinedMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GamePlayerJoinedMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GamePlayerJoinedMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_GamePlayerLeftMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_GamePlayerLeftMessage_default_instance_; + new (ptr) ::GamePlayerLeftMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::GamePlayerLeftMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GamePlayerLeftMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GamePlayerLeftMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_GameSpectatorJoinedMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_GameSpectatorJoinedMessage_default_instance_; + new (ptr) ::GameSpectatorJoinedMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::GameSpectatorJoinedMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameSpectatorJoinedMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GameSpectatorJoinedMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_GameSpectatorLeftMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_GameSpectatorLeftMessage_default_instance_; + new (ptr) ::GameSpectatorLeftMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::GameSpectatorLeftMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameSpectatorLeftMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GameSpectatorLeftMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_GameStartInitialMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_GameStartInitialMessage_default_instance_; + new (ptr) ::GameStartInitialMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::GameStartInitialMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameStartInitialMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GameStartInitialMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_GameStartRejoinMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_GameStartRejoinMessage_default_instance_; + new (ptr) ::GameStartRejoinMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::GameStartRejoinMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GameStartRejoinMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GameStartRejoinMessage_pokerth_2eproto}, { + &scc_info_GameStartRejoinMessage_RejoinPlayerData_pokerth_2eproto.base,}}; + +static void InitDefaultsscc_info_GameStartRejoinMessage_RejoinPlayerData_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_GameStartRejoinMessage_RejoinPlayerData_default_instance_; + new (ptr) ::GameStartRejoinMessage_RejoinPlayerData(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::GameStartRejoinMessage_RejoinPlayerData::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GameStartRejoinMessage_RejoinPlayerData_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GameStartRejoinMessage_RejoinPlayerData_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_HandStartMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_HandStartMessage_default_instance_; + new (ptr) ::HandStartMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::HandStartMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_HandStartMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_HandStartMessage_pokerth_2eproto}, { + &scc_info_HandStartMessage_PlainCards_pokerth_2eproto.base,}}; + +static void InitDefaultsscc_info_HandStartMessage_PlainCards_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_HandStartMessage_PlainCards_default_instance_; + new (ptr) ::HandStartMessage_PlainCards(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::HandStartMessage_PlainCards::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_HandStartMessage_PlainCards_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_HandStartMessage_PlainCards_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_InitAckMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_InitAckMessage_default_instance_; + new (ptr) ::InitAckMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::InitAckMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_InitAckMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_InitAckMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_InitMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_InitMessage_default_instance_; + new (ptr) ::InitMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::InitMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_InitMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_InitMessage_pokerth_2eproto}, { + &scc_info_AnnounceMessage_Version_pokerth_2eproto.base,}}; + +static void InitDefaultsscc_info_InviteNotifyMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_InviteNotifyMessage_default_instance_; + new (ptr) ::InviteNotifyMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::InviteNotifyMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_InviteNotifyMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_InviteNotifyMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_InvitePlayerToGameMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_InvitePlayerToGameMessage_default_instance_; + new (ptr) ::InvitePlayerToGameMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::InvitePlayerToGameMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_InvitePlayerToGameMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_InvitePlayerToGameMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_JoinExistingGameMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_JoinExistingGameMessage_default_instance_; + new (ptr) ::JoinExistingGameMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::JoinExistingGameMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_JoinExistingGameMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_JoinExistingGameMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_JoinGameAckMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_JoinGameAckMessage_default_instance_; + new (ptr) ::JoinGameAckMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::JoinGameAckMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_JoinGameAckMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_JoinGameAckMessage_pokerth_2eproto}, { + &scc_info_NetGameInfo_pokerth_2eproto.base,}}; + +static void InitDefaultsscc_info_JoinGameFailedMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_JoinGameFailedMessage_default_instance_; + new (ptr) ::JoinGameFailedMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::JoinGameFailedMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_JoinGameFailedMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_JoinGameFailedMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_JoinNewGameMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_JoinNewGameMessage_default_instance_; + new (ptr) ::JoinNewGameMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::JoinNewGameMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_JoinNewGameMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_JoinNewGameMessage_pokerth_2eproto}, { + &scc_info_NetGameInfo_pokerth_2eproto.base,}}; + +static void InitDefaultsscc_info_KickPetitionUpdateMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_KickPetitionUpdateMessage_default_instance_; + new (ptr) ::KickPetitionUpdateMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::KickPetitionUpdateMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KickPetitionUpdateMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_KickPetitionUpdateMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_KickPlayerRequestMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_KickPlayerRequestMessage_default_instance_; + new (ptr) ::KickPlayerRequestMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::KickPlayerRequestMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KickPlayerRequestMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_KickPlayerRequestMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_LeaveGameRequestMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_LeaveGameRequestMessage_default_instance_; + new (ptr) ::LeaveGameRequestMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::LeaveGameRequestMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LeaveGameRequestMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_LeaveGameRequestMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_MyActionRequestMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_MyActionRequestMessage_default_instance_; + new (ptr) ::MyActionRequestMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::MyActionRequestMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MyActionRequestMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_MyActionRequestMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_NetGameInfo_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_NetGameInfo_default_instance_; + new (ptr) ::NetGameInfo(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::NetGameInfo::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_NetGameInfo_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_NetGameInfo_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_PlayerIdChangedMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_PlayerIdChangedMessage_default_instance_; + new (ptr) ::PlayerIdChangedMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::PlayerIdChangedMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlayerIdChangedMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PlayerIdChangedMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_PlayerInfoReplyMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_PlayerInfoReplyMessage_default_instance_; + new (ptr) ::PlayerInfoReplyMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::PlayerInfoReplyMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PlayerInfoReplyMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PlayerInfoReplyMessage_pokerth_2eproto}, { + &scc_info_PlayerInfoReplyMessage_PlayerInfoData_pokerth_2eproto.base,}}; + +static void InitDefaultsscc_info_PlayerInfoReplyMessage_PlayerInfoData_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_PlayerInfoReplyMessage_PlayerInfoData_default_instance_; + new (ptr) ::PlayerInfoReplyMessage_PlayerInfoData(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::PlayerInfoReplyMessage_PlayerInfoData::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PlayerInfoReplyMessage_PlayerInfoData_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PlayerInfoReplyMessage_PlayerInfoData_pokerth_2eproto}, { + &scc_info_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_pokerth_2eproto.base,}}; + +static void InitDefaultsscc_info_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_default_instance_; + new (ptr) ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_PlayerInfoRequestMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_PlayerInfoRequestMessage_default_instance_; + new (ptr) ::PlayerInfoRequestMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::PlayerInfoRequestMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlayerInfoRequestMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PlayerInfoRequestMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_PlayerListMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_PlayerListMessage_default_instance_; + new (ptr) ::PlayerListMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::PlayerListMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlayerListMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PlayerListMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_PlayerResult_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_PlayerResult_default_instance_; + new (ptr) ::PlayerResult(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::PlayerResult::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlayerResult_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PlayerResult_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_PlayersActionDoneMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_PlayersActionDoneMessage_default_instance_; + new (ptr) ::PlayersActionDoneMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::PlayersActionDoneMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlayersActionDoneMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PlayersActionDoneMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_PlayersTurnMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_PlayersTurnMessage_default_instance_; + new (ptr) ::PlayersTurnMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::PlayersTurnMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlayersTurnMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PlayersTurnMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_PokerTHMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_PokerTHMessage_default_instance_; + new (ptr) ::PokerTHMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::PokerTHMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<81> scc_info_PokerTHMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 81, 0, InitDefaultsscc_info_PokerTHMessage_pokerth_2eproto}, { + &scc_info_AnnounceMessage_pokerth_2eproto.base, + &scc_info_InitMessage_pokerth_2eproto.base, + &scc_info_AuthServerChallengeMessage_pokerth_2eproto.base, + &scc_info_AuthClientResponseMessage_pokerth_2eproto.base, + &scc_info_AuthServerVerificationMessage_pokerth_2eproto.base, + &scc_info_InitAckMessage_pokerth_2eproto.base, + &scc_info_AvatarRequestMessage_pokerth_2eproto.base, + &scc_info_AvatarHeaderMessage_pokerth_2eproto.base, + &scc_info_AvatarDataMessage_pokerth_2eproto.base, + &scc_info_AvatarEndMessage_pokerth_2eproto.base, + &scc_info_UnknownAvatarMessage_pokerth_2eproto.base, + &scc_info_PlayerListMessage_pokerth_2eproto.base, + &scc_info_GameListNewMessage_pokerth_2eproto.base, + &scc_info_GameListUpdateMessage_pokerth_2eproto.base, + &scc_info_GameListPlayerJoinedMessage_pokerth_2eproto.base, + &scc_info_GameListPlayerLeftMessage_pokerth_2eproto.base, + &scc_info_GameListAdminChangedMessage_pokerth_2eproto.base, + &scc_info_PlayerInfoRequestMessage_pokerth_2eproto.base, + &scc_info_PlayerInfoReplyMessage_pokerth_2eproto.base, + &scc_info_SubscriptionRequestMessage_pokerth_2eproto.base, + &scc_info_JoinExistingGameMessage_pokerth_2eproto.base, + &scc_info_JoinNewGameMessage_pokerth_2eproto.base, + &scc_info_RejoinExistingGameMessage_pokerth_2eproto.base, + &scc_info_JoinGameAckMessage_pokerth_2eproto.base, + &scc_info_JoinGameFailedMessage_pokerth_2eproto.base, + &scc_info_GamePlayerJoinedMessage_pokerth_2eproto.base, + &scc_info_GamePlayerLeftMessage_pokerth_2eproto.base, + &scc_info_GameAdminChangedMessage_pokerth_2eproto.base, + &scc_info_RemovedFromGameMessage_pokerth_2eproto.base, + &scc_info_KickPlayerRequestMessage_pokerth_2eproto.base, + &scc_info_LeaveGameRequestMessage_pokerth_2eproto.base, + &scc_info_InvitePlayerToGameMessage_pokerth_2eproto.base, + &scc_info_InviteNotifyMessage_pokerth_2eproto.base, + &scc_info_RejectGameInvitationMessage_pokerth_2eproto.base, + &scc_info_RejectInvNotifyMessage_pokerth_2eproto.base, + &scc_info_StartEventMessage_pokerth_2eproto.base, + &scc_info_StartEventAckMessage_pokerth_2eproto.base, + &scc_info_GameStartInitialMessage_pokerth_2eproto.base, + &scc_info_GameStartRejoinMessage_pokerth_2eproto.base, + &scc_info_HandStartMessage_pokerth_2eproto.base, + &scc_info_PlayersTurnMessage_pokerth_2eproto.base, + &scc_info_MyActionRequestMessage_pokerth_2eproto.base, + &scc_info_YourActionRejectedMessage_pokerth_2eproto.base, + &scc_info_PlayersActionDoneMessage_pokerth_2eproto.base, + &scc_info_DealFlopCardsMessage_pokerth_2eproto.base, + &scc_info_DealTurnCardMessage_pokerth_2eproto.base, + &scc_info_DealRiverCardMessage_pokerth_2eproto.base, + &scc_info_AllInShowCardsMessage_pokerth_2eproto.base, + &scc_info_EndOfHandShowCardsMessage_pokerth_2eproto.base, + &scc_info_EndOfHandHideCardsMessage_pokerth_2eproto.base, + &scc_info_ShowMyCardsRequestMessage_pokerth_2eproto.base, + &scc_info_AfterHandShowCardsMessage_pokerth_2eproto.base, + &scc_info_EndOfGameMessage_pokerth_2eproto.base, + &scc_info_PlayerIdChangedMessage_pokerth_2eproto.base, + &scc_info_AskKickPlayerMessage_pokerth_2eproto.base, + &scc_info_AskKickDeniedMessage_pokerth_2eproto.base, + &scc_info_StartKickPetitionMessage_pokerth_2eproto.base, + &scc_info_VoteKickRequestMessage_pokerth_2eproto.base, + &scc_info_VoteKickReplyMessage_pokerth_2eproto.base, + &scc_info_KickPetitionUpdateMessage_pokerth_2eproto.base, + &scc_info_EndKickPetitionMessage_pokerth_2eproto.base, + &scc_info_StatisticsMessage_pokerth_2eproto.base, + &scc_info_ChatRequestMessage_pokerth_2eproto.base, + &scc_info_ChatMessage_pokerth_2eproto.base, + &scc_info_ChatRejectMessage_pokerth_2eproto.base, + &scc_info_DialogMessage_pokerth_2eproto.base, + &scc_info_TimeoutWarningMessage_pokerth_2eproto.base, + &scc_info_ResetTimeoutMessage_pokerth_2eproto.base, + &scc_info_ReportAvatarMessage_pokerth_2eproto.base, + &scc_info_ReportAvatarAckMessage_pokerth_2eproto.base, + &scc_info_ReportGameMessage_pokerth_2eproto.base, + &scc_info_ReportGameAckMessage_pokerth_2eproto.base, + &scc_info_ErrorMessage_pokerth_2eproto.base, + &scc_info_AdminRemoveGameMessage_pokerth_2eproto.base, + &scc_info_AdminRemoveGameAckMessage_pokerth_2eproto.base, + &scc_info_AdminBanPlayerMessage_pokerth_2eproto.base, + &scc_info_AdminBanPlayerAckMessage_pokerth_2eproto.base, + &scc_info_GameListSpectatorJoinedMessage_pokerth_2eproto.base, + &scc_info_GameListSpectatorLeftMessage_pokerth_2eproto.base, + &scc_info_GameSpectatorJoinedMessage_pokerth_2eproto.base, + &scc_info_GameSpectatorLeftMessage_pokerth_2eproto.base,}}; + +static void InitDefaultsscc_info_RejectGameInvitationMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_RejectGameInvitationMessage_default_instance_; + new (ptr) ::RejectGameInvitationMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::RejectGameInvitationMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RejectGameInvitationMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_RejectGameInvitationMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_RejectInvNotifyMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_RejectInvNotifyMessage_default_instance_; + new (ptr) ::RejectInvNotifyMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::RejectInvNotifyMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RejectInvNotifyMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_RejectInvNotifyMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_RejoinExistingGameMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_RejoinExistingGameMessage_default_instance_; + new (ptr) ::RejoinExistingGameMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::RejoinExistingGameMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RejoinExistingGameMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_RejoinExistingGameMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_RemovedFromGameMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_RemovedFromGameMessage_default_instance_; + new (ptr) ::RemovedFromGameMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::RemovedFromGameMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RemovedFromGameMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_RemovedFromGameMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_ReportAvatarAckMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_ReportAvatarAckMessage_default_instance_; + new (ptr) ::ReportAvatarAckMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::ReportAvatarAckMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ReportAvatarAckMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ReportAvatarAckMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_ReportAvatarMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_ReportAvatarMessage_default_instance_; + new (ptr) ::ReportAvatarMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::ReportAvatarMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ReportAvatarMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ReportAvatarMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_ReportGameAckMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_ReportGameAckMessage_default_instance_; + new (ptr) ::ReportGameAckMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::ReportGameAckMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ReportGameAckMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ReportGameAckMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_ReportGameMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_ReportGameMessage_default_instance_; + new (ptr) ::ReportGameMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::ReportGameMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ReportGameMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ReportGameMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_ResetTimeoutMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_ResetTimeoutMessage_default_instance_; + new (ptr) ::ResetTimeoutMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::ResetTimeoutMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ResetTimeoutMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ResetTimeoutMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_ShowMyCardsRequestMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_ShowMyCardsRequestMessage_default_instance_; + new (ptr) ::ShowMyCardsRequestMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::ShowMyCardsRequestMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ShowMyCardsRequestMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ShowMyCardsRequestMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_StartEventAckMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_StartEventAckMessage_default_instance_; + new (ptr) ::StartEventAckMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::StartEventAckMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StartEventAckMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_StartEventAckMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_StartEventMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_StartEventMessage_default_instance_; + new (ptr) ::StartEventMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::StartEventMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StartEventMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_StartEventMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_StartKickPetitionMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_StartKickPetitionMessage_default_instance_; + new (ptr) ::StartKickPetitionMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::StartKickPetitionMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StartKickPetitionMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_StartKickPetitionMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_StatisticsMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_StatisticsMessage_default_instance_; + new (ptr) ::StatisticsMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::StatisticsMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_StatisticsMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_StatisticsMessage_pokerth_2eproto}, { + &scc_info_StatisticsMessage_StatisticsData_pokerth_2eproto.base,}}; + +static void InitDefaultsscc_info_StatisticsMessage_StatisticsData_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_StatisticsMessage_StatisticsData_default_instance_; + new (ptr) ::StatisticsMessage_StatisticsData(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::StatisticsMessage_StatisticsData::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_StatisticsMessage_StatisticsData_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_StatisticsMessage_StatisticsData_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_SubscriptionRequestMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_SubscriptionRequestMessage_default_instance_; + new (ptr) ::SubscriptionRequestMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::SubscriptionRequestMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SubscriptionRequestMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SubscriptionRequestMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_TimeoutWarningMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_TimeoutWarningMessage_default_instance_; + new (ptr) ::TimeoutWarningMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::TimeoutWarningMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TimeoutWarningMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_TimeoutWarningMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_UnknownAvatarMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_UnknownAvatarMessage_default_instance_; + new (ptr) ::UnknownAvatarMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::UnknownAvatarMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_UnknownAvatarMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_UnknownAvatarMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_VoteKickReplyMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_VoteKickReplyMessage_default_instance_; + new (ptr) ::VoteKickReplyMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::VoteKickReplyMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VoteKickReplyMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_VoteKickReplyMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_VoteKickRequestMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_VoteKickRequestMessage_default_instance_; + new (ptr) ::VoteKickRequestMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::VoteKickRequestMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VoteKickRequestMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_VoteKickRequestMessage_pokerth_2eproto}, {}}; + +static void InitDefaultsscc_info_YourActionRejectedMessage_pokerth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::_YourActionRejectedMessage_default_instance_; + new (ptr) ::YourActionRejectedMessage(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::YourActionRejectedMessage::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_YourActionRejectedMessage_pokerth_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_YourActionRejectedMessage_pokerth_2eproto}, {}}; bool NetGameInfo_NetGameType_IsValid(int value) { - switch(value) { + switch (value) { case 1: case 2: case 3: @@ -411,17 +1845,64 @@ bool NetGameInfo_NetGameType_IsValid(int value) { } } -#ifndef _MSC_VER -const NetGameInfo_NetGameType NetGameInfo::normalGame; -const NetGameInfo_NetGameType NetGameInfo::registeredOnlyGame; -const NetGameInfo_NetGameType NetGameInfo::inviteOnlyGame; -const NetGameInfo_NetGameType NetGameInfo::rankingGame; -const NetGameInfo_NetGameType NetGameInfo::NetGameType_MIN; -const NetGameInfo_NetGameType NetGameInfo::NetGameType_MAX; -const int NetGameInfo::NetGameType_ARRAYSIZE; -#endif // _MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed NetGameInfo_NetGameType_strings[4] = {}; + +static const char NetGameInfo_NetGameType_names[] = + "inviteOnlyGame" + "normalGame" + "rankingGame" + "registeredOnlyGame"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry NetGameInfo_NetGameType_entries[] = { + { {NetGameInfo_NetGameType_names + 0, 14}, 3 }, + { {NetGameInfo_NetGameType_names + 14, 10}, 1 }, + { {NetGameInfo_NetGameType_names + 24, 11}, 4 }, + { {NetGameInfo_NetGameType_names + 35, 18}, 2 }, +}; + +static const int NetGameInfo_NetGameType_entries_by_number[] = { + 1, // 1 -> normalGame + 3, // 2 -> registeredOnlyGame + 0, // 3 -> inviteOnlyGame + 2, // 4 -> rankingGame +}; + +const std::string& NetGameInfo_NetGameType_Name( + NetGameInfo_NetGameType value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + NetGameInfo_NetGameType_entries, + NetGameInfo_NetGameType_entries_by_number, + 4, NetGameInfo_NetGameType_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + NetGameInfo_NetGameType_entries, + NetGameInfo_NetGameType_entries_by_number, + 4, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + NetGameInfo_NetGameType_strings[idx].get(); +} +bool NetGameInfo_NetGameType_Parse( + const std::string& name, NetGameInfo_NetGameType* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + NetGameInfo_NetGameType_entries, 4, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr NetGameInfo_NetGameType NetGameInfo::normalGame; +constexpr NetGameInfo_NetGameType NetGameInfo::registeredOnlyGame; +constexpr NetGameInfo_NetGameType NetGameInfo::inviteOnlyGame; +constexpr NetGameInfo_NetGameType NetGameInfo::rankingGame; +constexpr NetGameInfo_NetGameType NetGameInfo::NetGameType_MIN; +constexpr NetGameInfo_NetGameType NetGameInfo::NetGameType_MAX; +constexpr int NetGameInfo::NetGameType_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool NetGameInfo_RaiseIntervalMode_IsValid(int value) { - switch(value) { + switch (value) { case 1: case 2: return true; @@ -430,15 +1911,56 @@ bool NetGameInfo_RaiseIntervalMode_IsValid(int value) { } } -#ifndef _MSC_VER -const NetGameInfo_RaiseIntervalMode NetGameInfo::raiseOnHandNum; -const NetGameInfo_RaiseIntervalMode NetGameInfo::raiseOnMinutes; -const NetGameInfo_RaiseIntervalMode NetGameInfo::RaiseIntervalMode_MIN; -const NetGameInfo_RaiseIntervalMode NetGameInfo::RaiseIntervalMode_MAX; -const int NetGameInfo::RaiseIntervalMode_ARRAYSIZE; -#endif // _MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed NetGameInfo_RaiseIntervalMode_strings[2] = {}; + +static const char NetGameInfo_RaiseIntervalMode_names[] = + "raiseOnHandNum" + "raiseOnMinutes"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry NetGameInfo_RaiseIntervalMode_entries[] = { + { {NetGameInfo_RaiseIntervalMode_names + 0, 14}, 1 }, + { {NetGameInfo_RaiseIntervalMode_names + 14, 14}, 2 }, +}; + +static const int NetGameInfo_RaiseIntervalMode_entries_by_number[] = { + 0, // 1 -> raiseOnHandNum + 1, // 2 -> raiseOnMinutes +}; + +const std::string& NetGameInfo_RaiseIntervalMode_Name( + NetGameInfo_RaiseIntervalMode value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + NetGameInfo_RaiseIntervalMode_entries, + NetGameInfo_RaiseIntervalMode_entries_by_number, + 2, NetGameInfo_RaiseIntervalMode_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + NetGameInfo_RaiseIntervalMode_entries, + NetGameInfo_RaiseIntervalMode_entries_by_number, + 2, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + NetGameInfo_RaiseIntervalMode_strings[idx].get(); +} +bool NetGameInfo_RaiseIntervalMode_Parse( + const std::string& name, NetGameInfo_RaiseIntervalMode* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + NetGameInfo_RaiseIntervalMode_entries, 2, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr NetGameInfo_RaiseIntervalMode NetGameInfo::raiseOnHandNum; +constexpr NetGameInfo_RaiseIntervalMode NetGameInfo::raiseOnMinutes; +constexpr NetGameInfo_RaiseIntervalMode NetGameInfo::RaiseIntervalMode_MIN; +constexpr NetGameInfo_RaiseIntervalMode NetGameInfo::RaiseIntervalMode_MAX; +constexpr int NetGameInfo::RaiseIntervalMode_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool NetGameInfo_EndRaiseMode_IsValid(int value) { - switch(value) { + switch (value) { case 1: case 2: case 3: @@ -448,1247 +1970,60 @@ bool NetGameInfo_EndRaiseMode_IsValid(int value) { } } -#ifndef _MSC_VER -const NetGameInfo_EndRaiseMode NetGameInfo::doubleBlinds; -const NetGameInfo_EndRaiseMode NetGameInfo::raiseByEndValue; -const NetGameInfo_EndRaiseMode NetGameInfo::keepLastBlind; -const NetGameInfo_EndRaiseMode NetGameInfo::EndRaiseMode_MIN; -const NetGameInfo_EndRaiseMode NetGameInfo::EndRaiseMode_MAX; -const int NetGameInfo::EndRaiseMode_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int NetGameInfo::kGameNameFieldNumber; -const int NetGameInfo::kNetGameTypeFieldNumber; -const int NetGameInfo::kMaxNumPlayersFieldNumber; -const int NetGameInfo::kRaiseIntervalModeFieldNumber; -const int NetGameInfo::kRaiseEveryHandsFieldNumber; -const int NetGameInfo::kRaiseEveryMinutesFieldNumber; -const int NetGameInfo::kEndRaiseModeFieldNumber; -const int NetGameInfo::kEndRaiseSmallBlindValueFieldNumber; -const int NetGameInfo::kProposedGuiSpeedFieldNumber; -const int NetGameInfo::kDelayBetweenHandsFieldNumber; -const int NetGameInfo::kPlayerActionTimeoutFieldNumber; -const int NetGameInfo::kFirstSmallBlindFieldNumber; -const int NetGameInfo::kStartMoneyFieldNumber; -const int NetGameInfo::kManualBlindsFieldNumber; -const int NetGameInfo::kAllowSpectatorsFieldNumber; -const int NetGameInfo::kAllowLateRegFieldNumber; -const int NetGameInfo::kAllowReentriesFieldNumber; -const int NetGameInfo::kNumReentriesFieldNumber; -const int NetGameInfo::kMaxTimeLateRegFieldNumber; -#endif // !_MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed NetGameInfo_EndRaiseMode_strings[3] = {}; -NetGameInfo::NetGameInfo() - : ::google::protobuf::MessageLite() { - SharedCtor(); +static const char NetGameInfo_EndRaiseMode_names[] = + "doubleBlinds" + "keepLastBlind" + "raiseByEndValue"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry NetGameInfo_EndRaiseMode_entries[] = { + { {NetGameInfo_EndRaiseMode_names + 0, 12}, 1 }, + { {NetGameInfo_EndRaiseMode_names + 12, 13}, 3 }, + { {NetGameInfo_EndRaiseMode_names + 25, 15}, 2 }, +}; + +static const int NetGameInfo_EndRaiseMode_entries_by_number[] = { + 0, // 1 -> doubleBlinds + 2, // 2 -> raiseByEndValue + 1, // 3 -> keepLastBlind +}; + +const std::string& NetGameInfo_EndRaiseMode_Name( + NetGameInfo_EndRaiseMode value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + NetGameInfo_EndRaiseMode_entries, + NetGameInfo_EndRaiseMode_entries_by_number, + 3, NetGameInfo_EndRaiseMode_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + NetGameInfo_EndRaiseMode_entries, + NetGameInfo_EndRaiseMode_entries_by_number, + 3, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + NetGameInfo_EndRaiseMode_strings[idx].get(); } - -void NetGameInfo::InitAsDefaultInstance() { +bool NetGameInfo_EndRaiseMode_Parse( + const std::string& name, NetGameInfo_EndRaiseMode* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + NetGameInfo_EndRaiseMode_entries, 3, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; } - -NetGameInfo::NetGameInfo(const NetGameInfo& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void NetGameInfo::SharedCtor() { - _cached_size_ = 0; - gamename_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - netgametype_ = 1; - maxnumplayers_ = 0u; - raiseintervalmode_ = 1; - raiseeveryhands_ = 0u; - raiseeveryminutes_ = 0u; - endraisemode_ = 1; - endraisesmallblindvalue_ = 0u; - proposedguispeed_ = 0u; - delaybetweenhands_ = 0u; - playeractiontimeout_ = 0u; - firstsmallblind_ = 0u; - startmoney_ = 0u; - allowspectators_ = true; - allowlatereg_ = false; - allowreentries_ = false; - numreentries_ = 0u; - maxtimelatereg_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -NetGameInfo::~NetGameInfo() { - SharedDtor(); -} - -void NetGameInfo::SharedDtor() { - if (gamename_ != &::google::protobuf::internal::kEmptyString) { - delete gamename_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void NetGameInfo::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const NetGameInfo& NetGameInfo::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -NetGameInfo* NetGameInfo::default_instance_ = NULL; - -NetGameInfo* NetGameInfo::New() const { - return new NetGameInfo; -} - -void NetGameInfo::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_gamename()) { - if (gamename_ != &::google::protobuf::internal::kEmptyString) { - gamename_->clear(); - } - } - netgametype_ = 1; - maxnumplayers_ = 0u; - raiseintervalmode_ = 1; - raiseeveryhands_ = 0u; - raiseeveryminutes_ = 0u; - endraisemode_ = 1; - endraisesmallblindvalue_ = 0u; - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - proposedguispeed_ = 0u; - delaybetweenhands_ = 0u; - playeractiontimeout_ = 0u; - firstsmallblind_ = 0u; - startmoney_ = 0u; - allowspectators_ = true; - allowlatereg_ = false; - } - if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { - allowreentries_ = false; - numreentries_ = 0u; - maxtimelatereg_ = 0u; - } - manualblinds_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool NetGameInfo::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required string gameName = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_gamename())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_netGameType; - break; - } - - // required .NetGameInfo.NetGameType netGameType = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_netGameType: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::NetGameInfo_NetGameType_IsValid(value)) { - set_netgametype(static_cast< ::NetGameInfo_NetGameType >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_maxNumPlayers; - break; - } - - // required uint32 maxNumPlayers = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_maxNumPlayers: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &maxnumplayers_))); - set_has_maxnumplayers(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_raiseIntervalMode; - break; - } - - // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_raiseIntervalMode: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::NetGameInfo_RaiseIntervalMode_IsValid(value)) { - set_raiseintervalmode(static_cast< ::NetGameInfo_RaiseIntervalMode >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_raiseEveryHands; - break; - } - - // optional uint32 raiseEveryHands = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_raiseEveryHands: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &raiseeveryhands_))); - set_has_raiseeveryhands(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(48)) goto parse_raiseEveryMinutes; - break; - } - - // optional uint32 raiseEveryMinutes = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_raiseEveryMinutes: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &raiseeveryminutes_))); - set_has_raiseeveryminutes(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(56)) goto parse_endRaiseMode; - break; - } - - // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_endRaiseMode: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::NetGameInfo_EndRaiseMode_IsValid(value)) { - set_endraisemode(static_cast< ::NetGameInfo_EndRaiseMode >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(64)) goto parse_endRaiseSmallBlindValue; - break; - } - - // optional uint32 endRaiseSmallBlindValue = 8; - case 8: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_endRaiseSmallBlindValue: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &endraisesmallblindvalue_))); - set_has_endraisesmallblindvalue(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(72)) goto parse_proposedGuiSpeed; - break; - } - - // required uint32 proposedGuiSpeed = 9; - case 9: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_proposedGuiSpeed: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &proposedguispeed_))); - set_has_proposedguispeed(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(80)) goto parse_delayBetweenHands; - break; - } - - // required uint32 delayBetweenHands = 10; - case 10: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_delayBetweenHands: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &delaybetweenhands_))); - set_has_delaybetweenhands(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(88)) goto parse_playerActionTimeout; - break; - } - - // required uint32 playerActionTimeout = 11; - case 11: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerActionTimeout: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playeractiontimeout_))); - set_has_playeractiontimeout(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(96)) goto parse_firstSmallBlind; - break; - } - - // required uint32 firstSmallBlind = 12; - case 12: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_firstSmallBlind: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &firstsmallblind_))); - set_has_firstsmallblind(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(104)) goto parse_startMoney; - break; - } - - // required uint32 startMoney = 13; - case 13: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_startMoney: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &startmoney_))); - set_has_startmoney(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(114)) goto parse_manualBlinds; - break; - } - - // repeated uint32 manualBlinds = 14 [packed = true]; - case 14: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_manualBlinds: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_manualblinds()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 114, input, this->mutable_manualblinds()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(120)) goto parse_allowSpectators; - break; - } - - // optional bool allowSpectators = 15 [default = true]; - case 15: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_allowSpectators: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &allowspectators_))); - set_has_allowspectators(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(128)) goto parse_allowLateReg; - break; - } - - // optional bool allowLateReg = 16 [default = false]; - case 16: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_allowLateReg: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &allowlatereg_))); - set_has_allowlatereg(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(136)) goto parse_allowReentries; - break; - } - - // optional bool allowReentries = 17 [default = false]; - case 17: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_allowReentries: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &allowreentries_))); - set_has_allowreentries(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(144)) goto parse_numReentries; - break; - } - - // optional uint32 numReentries = 18 [default = 0]; - case 18: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_numReentries: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &numreentries_))); - set_has_numreentries(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(152)) goto parse_maxTimeLateReg; - break; - } - - // optional uint32 maxTimeLateReg = 19 [default = 0]; - case 19: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_maxTimeLateReg: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &maxtimelatereg_))); - set_has_maxtimelatereg(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void NetGameInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required string gameName = 1; - if (has_gamename()) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->gamename(), output); - } - - // required .NetGameInfo.NetGameType netGameType = 2; - if (has_netgametype()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->netgametype(), output); - } - - // required uint32 maxNumPlayers = 3; - if (has_maxnumplayers()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->maxnumplayers(), output); - } - - // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - if (has_raiseintervalmode()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->raiseintervalmode(), output); - } - - // optional uint32 raiseEveryHands = 5; - if (has_raiseeveryhands()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->raiseeveryhands(), output); - } - - // optional uint32 raiseEveryMinutes = 6; - if (has_raiseeveryminutes()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->raiseeveryminutes(), output); - } - - // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - if (has_endraisemode()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 7, this->endraisemode(), output); - } - - // optional uint32 endRaiseSmallBlindValue = 8; - if (has_endraisesmallblindvalue()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->endraisesmallblindvalue(), output); - } - - // required uint32 proposedGuiSpeed = 9; - if (has_proposedguispeed()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->proposedguispeed(), output); - } - - // required uint32 delayBetweenHands = 10; - if (has_delaybetweenhands()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->delaybetweenhands(), output); - } - - // required uint32 playerActionTimeout = 11; - if (has_playeractiontimeout()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(11, this->playeractiontimeout(), output); - } - - // required uint32 firstSmallBlind = 12; - if (has_firstsmallblind()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->firstsmallblind(), output); - } - - // required uint32 startMoney = 13; - if (has_startmoney()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(13, this->startmoney(), output); - } - - // repeated uint32 manualBlinds = 14 [packed = true]; - if (this->manualblinds_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(14, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_manualblinds_cached_byte_size_); - } - for (int i = 0; i < this->manualblinds_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->manualblinds(i), output); - } - - // optional bool allowSpectators = 15 [default = true]; - if (has_allowspectators()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(15, this->allowspectators(), output); - } - - // optional bool allowLateReg = 16 [default = false]; - if (has_allowlatereg()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->allowlatereg(), output); - } - - // optional bool allowReentries = 17 [default = false]; - if (has_allowreentries()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->allowreentries(), output); - } - - // optional uint32 numReentries = 18 [default = 0]; - if (has_numreentries()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(18, this->numreentries(), output); - } - - // optional uint32 maxTimeLateReg = 19 [default = 0]; - if (has_maxtimelatereg()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(19, this->maxtimelatereg(), output); - } - -} - -int NetGameInfo::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required string gameName = 1; - if (has_gamename()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->gamename()); - } - - // required .NetGameInfo.NetGameType netGameType = 2; - if (has_netgametype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->netgametype()); - } - - // required uint32 maxNumPlayers = 3; - if (has_maxnumplayers()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->maxnumplayers()); - } - - // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - if (has_raiseintervalmode()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->raiseintervalmode()); - } - - // optional uint32 raiseEveryHands = 5; - if (has_raiseeveryhands()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->raiseeveryhands()); - } - - // optional uint32 raiseEveryMinutes = 6; - if (has_raiseeveryminutes()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->raiseeveryminutes()); - } - - // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - if (has_endraisemode()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->endraisemode()); - } - - // optional uint32 endRaiseSmallBlindValue = 8; - if (has_endraisesmallblindvalue()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->endraisesmallblindvalue()); - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // required uint32 proposedGuiSpeed = 9; - if (has_proposedguispeed()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->proposedguispeed()); - } - - // required uint32 delayBetweenHands = 10; - if (has_delaybetweenhands()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->delaybetweenhands()); - } - - // required uint32 playerActionTimeout = 11; - if (has_playeractiontimeout()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playeractiontimeout()); - } - - // required uint32 firstSmallBlind = 12; - if (has_firstsmallblind()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->firstsmallblind()); - } - - // required uint32 startMoney = 13; - if (has_startmoney()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->startmoney()); - } - - // optional bool allowSpectators = 15 [default = true]; - if (has_allowspectators()) { - total_size += 1 + 1; - } - - // optional bool allowLateReg = 16 [default = false]; - if (has_allowlatereg()) { - total_size += 2 + 1; - } - - } - if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { - // optional bool allowReentries = 17 [default = false]; - if (has_allowreentries()) { - total_size += 2 + 1; - } - - // optional uint32 numReentries = 18 [default = 0]; - if (has_numreentries()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numreentries()); - } - - // optional uint32 maxTimeLateReg = 19 [default = 0]; - if (has_maxtimelatereg()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->maxtimelatereg()); - } - - } - // repeated uint32 manualBlinds = 14 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->manualblinds_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->manualblinds(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _manualblinds_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void NetGameInfo::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void NetGameInfo::MergeFrom(const NetGameInfo& from) { - GOOGLE_CHECK_NE(&from, this); - manualblinds_.MergeFrom(from.manualblinds_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gamename()) { - set_gamename(from.gamename()); - } - if (from.has_netgametype()) { - set_netgametype(from.netgametype()); - } - if (from.has_maxnumplayers()) { - set_maxnumplayers(from.maxnumplayers()); - } - if (from.has_raiseintervalmode()) { - set_raiseintervalmode(from.raiseintervalmode()); - } - if (from.has_raiseeveryhands()) { - set_raiseeveryhands(from.raiseeveryhands()); - } - if (from.has_raiseeveryminutes()) { - set_raiseeveryminutes(from.raiseeveryminutes()); - } - if (from.has_endraisemode()) { - set_endraisemode(from.endraisemode()); - } - if (from.has_endraisesmallblindvalue()) { - set_endraisesmallblindvalue(from.endraisesmallblindvalue()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_proposedguispeed()) { - set_proposedguispeed(from.proposedguispeed()); - } - if (from.has_delaybetweenhands()) { - set_delaybetweenhands(from.delaybetweenhands()); - } - if (from.has_playeractiontimeout()) { - set_playeractiontimeout(from.playeractiontimeout()); - } - if (from.has_firstsmallblind()) { - set_firstsmallblind(from.firstsmallblind()); - } - if (from.has_startmoney()) { - set_startmoney(from.startmoney()); - } - if (from.has_allowspectators()) { - set_allowspectators(from.allowspectators()); - } - if (from.has_allowlatereg()) { - set_allowlatereg(from.allowlatereg()); - } - } - if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) { - if (from.has_allowreentries()) { - set_allowreentries(from.allowreentries()); - } - if (from.has_numreentries()) { - set_numreentries(from.numreentries()); - } - if (from.has_maxtimelatereg()) { - set_maxtimelatereg(from.maxtimelatereg()); - } - } -} - -void NetGameInfo::CopyFrom(const NetGameInfo& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NetGameInfo::IsInitialized() const { - if ((_has_bits_[0] & 0x00001f4f) != 0x00001f4f) return false; - - return true; -} - -void NetGameInfo::Swap(NetGameInfo* other) { - if (other != this) { - std::swap(gamename_, other->gamename_); - std::swap(netgametype_, other->netgametype_); - std::swap(maxnumplayers_, other->maxnumplayers_); - std::swap(raiseintervalmode_, other->raiseintervalmode_); - std::swap(raiseeveryhands_, other->raiseeveryhands_); - std::swap(raiseeveryminutes_, other->raiseeveryminutes_); - std::swap(endraisemode_, other->endraisemode_); - std::swap(endraisesmallblindvalue_, other->endraisesmallblindvalue_); - std::swap(proposedguispeed_, other->proposedguispeed_); - std::swap(delaybetweenhands_, other->delaybetweenhands_); - std::swap(playeractiontimeout_, other->playeractiontimeout_); - std::swap(firstsmallblind_, other->firstsmallblind_); - std::swap(startmoney_, other->startmoney_); - manualblinds_.Swap(&other->manualblinds_); - std::swap(allowspectators_, other->allowspectators_); - std::swap(allowlatereg_, other->allowlatereg_); - std::swap(allowreentries_, other->allowreentries_); - std::swap(numreentries_, other->numreentries_); - std::swap(maxtimelatereg_, other->maxtimelatereg_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string NetGameInfo::GetTypeName() const { - return "NetGameInfo"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int PlayerResult::kPlayerIdFieldNumber; -const int PlayerResult::kResultCard1FieldNumber; -const int PlayerResult::kResultCard2FieldNumber; -const int PlayerResult::kBestHandPositionFieldNumber; -const int PlayerResult::kMoneyWonFieldNumber; -const int PlayerResult::kPlayerMoneyFieldNumber; -const int PlayerResult::kCardsValueFieldNumber; -#endif // !_MSC_VER - -PlayerResult::PlayerResult() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void PlayerResult::InitAsDefaultInstance() { -} - -PlayerResult::PlayerResult(const PlayerResult& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void PlayerResult::SharedCtor() { - _cached_size_ = 0; - playerid_ = 0u; - resultcard1_ = 0u; - resultcard2_ = 0u; - moneywon_ = 0u; - playermoney_ = 0u; - cardsvalue_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PlayerResult::~PlayerResult() { - SharedDtor(); -} - -void PlayerResult::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void PlayerResult::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const PlayerResult& PlayerResult::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -PlayerResult* PlayerResult::default_instance_ = NULL; - -PlayerResult* PlayerResult::New() const { - return new PlayerResult; -} - -void PlayerResult::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - playerid_ = 0u; - resultcard1_ = 0u; - resultcard2_ = 0u; - moneywon_ = 0u; - playermoney_ = 0u; - cardsvalue_ = 0u; - } - besthandposition_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool PlayerResult::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 playerId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_resultCard1; - break; - } - - // required uint32 resultCard1 = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_resultCard1: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &resultcard1_))); - set_has_resultcard1(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_resultCard2; - break; - } - - // required uint32 resultCard2 = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_resultCard2: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &resultcard2_))); - set_has_resultcard2(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_bestHandPosition; - break; - } - - // repeated uint32 bestHandPosition = 4 [packed = true]; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_bestHandPosition: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_besthandposition()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 34, input, this->mutable_besthandposition()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_moneyWon; - break; - } - - // required uint32 moneyWon = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_moneyWon: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &moneywon_))); - set_has_moneywon(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(48)) goto parse_playerMoney; - break; - } - - // required uint32 playerMoney = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerMoney: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playermoney_))); - set_has_playermoney(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(56)) goto parse_cardsValue; - break; - } - - // optional uint32 cardsValue = 7; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_cardsValue: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &cardsvalue_))); - set_has_cardsvalue(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void PlayerResult::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 playerId = 1; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->playerid(), output); - } - - // required uint32 resultCard1 = 2; - if (has_resultcard1()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->resultcard1(), output); - } - - // required uint32 resultCard2 = 3; - if (has_resultcard2()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->resultcard2(), output); - } - - // repeated uint32 bestHandPosition = 4 [packed = true]; - if (this->besthandposition_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_besthandposition_cached_byte_size_); - } - for (int i = 0; i < this->besthandposition_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->besthandposition(i), output); - } - - // required uint32 moneyWon = 5; - if (has_moneywon()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->moneywon(), output); - } - - // required uint32 playerMoney = 6; - if (has_playermoney()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->playermoney(), output); - } - - // optional uint32 cardsValue = 7; - if (has_cardsvalue()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->cardsvalue(), output); - } - -} - -int PlayerResult::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 playerId = 1; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - // required uint32 resultCard1 = 2; - if (has_resultcard1()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->resultcard1()); - } - - // required uint32 resultCard2 = 3; - if (has_resultcard2()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->resultcard2()); - } - - // required uint32 moneyWon = 5; - if (has_moneywon()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->moneywon()); - } - - // required uint32 playerMoney = 6; - if (has_playermoney()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playermoney()); - } - - // optional uint32 cardsValue = 7; - if (has_cardsvalue()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->cardsvalue()); - } - - } - // repeated uint32 bestHandPosition = 4 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->besthandposition_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->besthandposition(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _besthandposition_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PlayerResult::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void PlayerResult::MergeFrom(const PlayerResult& from) { - GOOGLE_CHECK_NE(&from, this); - besthandposition_.MergeFrom(from.besthandposition_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - if (from.has_resultcard1()) { - set_resultcard1(from.resultcard1()); - } - if (from.has_resultcard2()) { - set_resultcard2(from.resultcard2()); - } - if (from.has_moneywon()) { - set_moneywon(from.moneywon()); - } - if (from.has_playermoney()) { - set_playermoney(from.playermoney()); - } - if (from.has_cardsvalue()) { - set_cardsvalue(from.cardsvalue()); - } - } -} - -void PlayerResult::CopyFrom(const PlayerResult& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PlayerResult::IsInitialized() const { - if ((_has_bits_[0] & 0x00000037) != 0x00000037) return false; - - return true; -} - -void PlayerResult::Swap(PlayerResult* other) { - if (other != this) { - std::swap(playerid_, other->playerid_); - std::swap(resultcard1_, other->resultcard1_); - std::swap(resultcard2_, other->resultcard2_); - besthandposition_.Swap(&other->besthandposition_); - std::swap(moneywon_, other->moneywon_); - std::swap(playermoney_, other->playermoney_); - std::swap(cardsvalue_, other->cardsvalue_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string PlayerResult::GetTypeName() const { - return "PlayerResult"; -} - - -// =================================================================== - +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr NetGameInfo_EndRaiseMode NetGameInfo::doubleBlinds; +constexpr NetGameInfo_EndRaiseMode NetGameInfo::raiseByEndValue; +constexpr NetGameInfo_EndRaiseMode NetGameInfo::keepLastBlind; +constexpr NetGameInfo_EndRaiseMode NetGameInfo::EndRaiseMode_MIN; +constexpr NetGameInfo_EndRaiseMode NetGameInfo::EndRaiseMode_MAX; +constexpr int NetGameInfo::EndRaiseMode_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool AnnounceMessage_ServerType_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -1698,552 +2033,60 @@ bool AnnounceMessage_ServerType_IsValid(int value) { } } -#ifndef _MSC_VER -const AnnounceMessage_ServerType AnnounceMessage::serverTypeLAN; -const AnnounceMessage_ServerType AnnounceMessage::serverTypeInternetNoAuth; -const AnnounceMessage_ServerType AnnounceMessage::serverTypeInternetAuth; -const AnnounceMessage_ServerType AnnounceMessage::ServerType_MIN; -const AnnounceMessage_ServerType AnnounceMessage::ServerType_MAX; -const int AnnounceMessage::ServerType_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int AnnounceMessage_Version::kMajorVersionFieldNumber; -const int AnnounceMessage_Version::kMinorVersionFieldNumber; -#endif // !_MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed AnnounceMessage_ServerType_strings[3] = {}; -AnnounceMessage_Version::AnnounceMessage_Version() - : ::google::protobuf::MessageLite() { - SharedCtor(); +static const char AnnounceMessage_ServerType_names[] = + "serverTypeInternetAuth" + "serverTypeInternetNoAuth" + "serverTypeLAN"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry AnnounceMessage_ServerType_entries[] = { + { {AnnounceMessage_ServerType_names + 0, 22}, 2 }, + { {AnnounceMessage_ServerType_names + 22, 24}, 1 }, + { {AnnounceMessage_ServerType_names + 46, 13}, 0 }, +}; + +static const int AnnounceMessage_ServerType_entries_by_number[] = { + 2, // 0 -> serverTypeLAN + 1, // 1 -> serverTypeInternetNoAuth + 0, // 2 -> serverTypeInternetAuth +}; + +const std::string& AnnounceMessage_ServerType_Name( + AnnounceMessage_ServerType value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + AnnounceMessage_ServerType_entries, + AnnounceMessage_ServerType_entries_by_number, + 3, AnnounceMessage_ServerType_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + AnnounceMessage_ServerType_entries, + AnnounceMessage_ServerType_entries_by_number, + 3, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + AnnounceMessage_ServerType_strings[idx].get(); } - -void AnnounceMessage_Version::InitAsDefaultInstance() { -} - -AnnounceMessage_Version::AnnounceMessage_Version(const AnnounceMessage_Version& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void AnnounceMessage_Version::SharedCtor() { - _cached_size_ = 0; - majorversion_ = 0u; - minorversion_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AnnounceMessage_Version::~AnnounceMessage_Version() { - SharedDtor(); -} - -void AnnounceMessage_Version::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif +bool AnnounceMessage_ServerType_Parse( + const std::string& name, AnnounceMessage_ServerType* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + AnnounceMessage_ServerType_entries, 3, name, &int_value); + if (success) { + *value = static_cast(int_value); } + return success; } - -void AnnounceMessage_Version::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AnnounceMessage_Version& AnnounceMessage_Version::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AnnounceMessage_Version* AnnounceMessage_Version::default_instance_ = NULL; - -AnnounceMessage_Version* AnnounceMessage_Version::New() const { - return new AnnounceMessage_Version; -} - -void AnnounceMessage_Version::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - majorversion_ = 0u; - minorversion_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool AnnounceMessage_Version::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 majorVersion = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &majorversion_))); - set_has_majorversion(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_minorVersion; - break; - } - - // required uint32 minorVersion = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_minorVersion: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &minorversion_))); - set_has_minorversion(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void AnnounceMessage_Version::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 majorVersion = 1; - if (has_majorversion()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->majorversion(), output); - } - - // required uint32 minorVersion = 2; - if (has_minorversion()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->minorversion(), output); - } - -} - -int AnnounceMessage_Version::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 majorVersion = 1; - if (has_majorversion()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->majorversion()); - } - - // required uint32 minorVersion = 2; - if (has_minorversion()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->minorversion()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AnnounceMessage_Version::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void AnnounceMessage_Version::MergeFrom(const AnnounceMessage_Version& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_majorversion()) { - set_majorversion(from.majorversion()); - } - if (from.has_minorversion()) { - set_minorversion(from.minorversion()); - } - } -} - -void AnnounceMessage_Version::CopyFrom(const AnnounceMessage_Version& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AnnounceMessage_Version::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void AnnounceMessage_Version::Swap(AnnounceMessage_Version* other) { - if (other != this) { - std::swap(majorversion_, other->majorversion_); - std::swap(minorversion_, other->minorversion_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AnnounceMessage_Version::GetTypeName() const { - return "AnnounceMessage.Version"; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int AnnounceMessage::kProtocolVersionFieldNumber; -const int AnnounceMessage::kLatestGameVersionFieldNumber; -const int AnnounceMessage::kLatestBetaRevisionFieldNumber; -const int AnnounceMessage::kServerTypeFieldNumber; -const int AnnounceMessage::kNumPlayersOnServerFieldNumber; -#endif // !_MSC_VER - -AnnounceMessage::AnnounceMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void AnnounceMessage::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protocolversion_ = const_cast< ::AnnounceMessage_Version*>( - ::AnnounceMessage_Version::internal_default_instance()); -#else - protocolversion_ = const_cast< ::AnnounceMessage_Version*>(&::AnnounceMessage_Version::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - latestgameversion_ = const_cast< ::AnnounceMessage_Version*>( - ::AnnounceMessage_Version::internal_default_instance()); -#else - latestgameversion_ = const_cast< ::AnnounceMessage_Version*>(&::AnnounceMessage_Version::default_instance()); -#endif -} - -AnnounceMessage::AnnounceMessage(const AnnounceMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void AnnounceMessage::SharedCtor() { - _cached_size_ = 0; - protocolversion_ = NULL; - latestgameversion_ = NULL; - latestbetarevision_ = 0u; - servertype_ = 0; - numplayersonserver_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AnnounceMessage::~AnnounceMessage() { - SharedDtor(); -} - -void AnnounceMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete protocolversion_; - delete latestgameversion_; - } -} - -void AnnounceMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AnnounceMessage& AnnounceMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AnnounceMessage* AnnounceMessage::default_instance_ = NULL; - -AnnounceMessage* AnnounceMessage::New() const { - return new AnnounceMessage; -} - -void AnnounceMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_protocolversion()) { - if (protocolversion_ != NULL) protocolversion_->::AnnounceMessage_Version::Clear(); - } - if (has_latestgameversion()) { - if (latestgameversion_ != NULL) latestgameversion_->::AnnounceMessage_Version::Clear(); - } - latestbetarevision_ = 0u; - servertype_ = 0; - numplayersonserver_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool AnnounceMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .AnnounceMessage.Version protocolVersion = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_protocolversion())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_latestGameVersion; - break; - } - - // required .AnnounceMessage.Version latestGameVersion = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_latestGameVersion: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_latestgameversion())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_latestBetaRevision; - break; - } - - // required uint32 latestBetaRevision = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_latestBetaRevision: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &latestbetarevision_))); - set_has_latestbetarevision(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_serverType; - break; - } - - // required .AnnounceMessage.ServerType serverType = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_serverType: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::AnnounceMessage_ServerType_IsValid(value)) { - set_servertype(static_cast< ::AnnounceMessage_ServerType >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_numPlayersOnServer; - break; - } - - // required uint32 numPlayersOnServer = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_numPlayersOnServer: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &numplayersonserver_))); - set_has_numplayersonserver(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void AnnounceMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .AnnounceMessage.Version protocolVersion = 1; - if (has_protocolversion()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 1, this->protocolversion(), output); - } - - // required .AnnounceMessage.Version latestGameVersion = 2; - if (has_latestgameversion()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, this->latestgameversion(), output); - } - - // required uint32 latestBetaRevision = 3; - if (has_latestbetarevision()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->latestbetarevision(), output); - } - - // required .AnnounceMessage.ServerType serverType = 4; - if (has_servertype()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->servertype(), output); - } - - // required uint32 numPlayersOnServer = 5; - if (has_numplayersonserver()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->numplayersonserver(), output); - } - -} - -int AnnounceMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .AnnounceMessage.Version protocolVersion = 1; - if (has_protocolversion()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->protocolversion()); - } - - // required .AnnounceMessage.Version latestGameVersion = 2; - if (has_latestgameversion()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->latestgameversion()); - } - - // required uint32 latestBetaRevision = 3; - if (has_latestbetarevision()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->latestbetarevision()); - } - - // required .AnnounceMessage.ServerType serverType = 4; - if (has_servertype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->servertype()); - } - - // required uint32 numPlayersOnServer = 5; - if (has_numplayersonserver()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numplayersonserver()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AnnounceMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void AnnounceMessage::MergeFrom(const AnnounceMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_protocolversion()) { - mutable_protocolversion()->::AnnounceMessage_Version::MergeFrom(from.protocolversion()); - } - if (from.has_latestgameversion()) { - mutable_latestgameversion()->::AnnounceMessage_Version::MergeFrom(from.latestgameversion()); - } - if (from.has_latestbetarevision()) { - set_latestbetarevision(from.latestbetarevision()); - } - if (from.has_servertype()) { - set_servertype(from.servertype()); - } - if (from.has_numplayersonserver()) { - set_numplayersonserver(from.numplayersonserver()); - } - } -} - -void AnnounceMessage::CopyFrom(const AnnounceMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AnnounceMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; - - if (has_protocolversion()) { - if (!this->protocolversion().IsInitialized()) return false; - } - if (has_latestgameversion()) { - if (!this->latestgameversion().IsInitialized()) return false; - } - return true; -} - -void AnnounceMessage::Swap(AnnounceMessage* other) { - if (other != this) { - std::swap(protocolversion_, other->protocolversion_); - std::swap(latestgameversion_, other->latestgameversion_); - std::swap(latestbetarevision_, other->latestbetarevision_); - std::swap(servertype_, other->servertype_); - std::swap(numplayersonserver_, other->numplayersonserver_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AnnounceMessage::GetTypeName() const { - return "AnnounceMessage"; -} - - -// =================================================================== - +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr AnnounceMessage_ServerType AnnounceMessage::serverTypeLAN; +constexpr AnnounceMessage_ServerType AnnounceMessage::serverTypeInternetNoAuth; +constexpr AnnounceMessage_ServerType AnnounceMessage::serverTypeInternetAuth; +constexpr AnnounceMessage_ServerType AnnounceMessage::ServerType_MIN; +constexpr AnnounceMessage_ServerType AnnounceMessage::ServerType_MAX; +constexpr int AnnounceMessage::ServerType_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool InitMessage_LoginType_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -2253,2275 +2096,60 @@ bool InitMessage_LoginType_IsValid(int value) { } } -#ifndef _MSC_VER -const InitMessage_LoginType InitMessage::guestLogin; -const InitMessage_LoginType InitMessage::authenticatedLogin; -const InitMessage_LoginType InitMessage::unauthenticatedLogin; -const InitMessage_LoginType InitMessage::LoginType_MIN; -const InitMessage_LoginType InitMessage::LoginType_MAX; -const int InitMessage::LoginType_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int InitMessage::kRequestedVersionFieldNumber; -const int InitMessage::kBuildIdFieldNumber; -const int InitMessage::kMyLastSessionIdFieldNumber; -const int InitMessage::kAuthServerPasswordFieldNumber; -const int InitMessage::kLoginFieldNumber; -const int InitMessage::kNickNameFieldNumber; -const int InitMessage::kClientUserDataFieldNumber; -const int InitMessage::kAvatarHashFieldNumber; -#endif // !_MSC_VER - -InitMessage::InitMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void InitMessage::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - requestedversion_ = const_cast< ::AnnounceMessage_Version*>( - ::AnnounceMessage_Version::internal_default_instance()); -#else - requestedversion_ = const_cast< ::AnnounceMessage_Version*>(&::AnnounceMessage_Version::default_instance()); -#endif -} - -InitMessage::InitMessage(const InitMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void InitMessage::SharedCtor() { - _cached_size_ = 0; - requestedversion_ = NULL; - buildid_ = 0u; - mylastsessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - authserverpassword_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - login_ = 0; - nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - clientuserdata_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -InitMessage::~InitMessage() { - SharedDtor(); -} - -void InitMessage::SharedDtor() { - if (mylastsessionid_ != &::google::protobuf::internal::kEmptyString) { - delete mylastsessionid_; - } - if (authserverpassword_ != &::google::protobuf::internal::kEmptyString) { - delete authserverpassword_; - } - if (nickname_ != &::google::protobuf::internal::kEmptyString) { - delete nickname_; - } - if (clientuserdata_ != &::google::protobuf::internal::kEmptyString) { - delete clientuserdata_; - } - if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { - delete avatarhash_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete requestedversion_; - } -} - -void InitMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const InitMessage& InitMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -InitMessage* InitMessage::default_instance_ = NULL; - -InitMessage* InitMessage::New() const { - return new InitMessage; -} - -void InitMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_requestedversion()) { - if (requestedversion_ != NULL) requestedversion_->::AnnounceMessage_Version::Clear(); - } - buildid_ = 0u; - if (has_mylastsessionid()) { - if (mylastsessionid_ != &::google::protobuf::internal::kEmptyString) { - mylastsessionid_->clear(); - } - } - if (has_authserverpassword()) { - if (authserverpassword_ != &::google::protobuf::internal::kEmptyString) { - authserverpassword_->clear(); - } - } - login_ = 0; - if (has_nickname()) { - if (nickname_ != &::google::protobuf::internal::kEmptyString) { - nickname_->clear(); - } - } - if (has_clientuserdata()) { - if (clientuserdata_ != &::google::protobuf::internal::kEmptyString) { - clientuserdata_->clear(); - } - } - if (has_avatarhash()) { - if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { - avatarhash_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool InitMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .AnnounceMessage.Version requestedVersion = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_requestedversion())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_buildId; - break; - } - - // required uint32 buildId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_buildId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &buildid_))); - set_has_buildid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_myLastSessionId; - break; - } - - // optional bytes myLastSessionId = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_myLastSessionId: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_mylastsessionid())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_authServerPassword; - break; - } - - // optional string authServerPassword = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_authServerPassword: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_authserverpassword())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_login; - break; - } - - // required .InitMessage.LoginType login = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_login: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::InitMessage_LoginType_IsValid(value)) { - set_login(static_cast< ::InitMessage_LoginType >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(50)) goto parse_nickName; - break; - } - - // optional string nickName = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_nickName: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_nickname())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(58)) goto parse_clientUserData; - break; - } - - // optional bytes clientUserData = 7; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_clientUserData: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_clientuserdata())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(66)) goto parse_avatarHash; - break; - } - - // optional bytes avatarHash = 8; - case 8: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_avatarHash: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_avatarhash())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void InitMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .AnnounceMessage.Version requestedVersion = 1; - if (has_requestedversion()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 1, this->requestedversion(), output); - } - - // required uint32 buildId = 2; - if (has_buildid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->buildid(), output); - } - - // optional bytes myLastSessionId = 3; - if (has_mylastsessionid()) { - ::google::protobuf::internal::WireFormatLite::WriteBytes( - 3, this->mylastsessionid(), output); - } - - // optional string authServerPassword = 4; - if (has_authserverpassword()) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 4, this->authserverpassword(), output); - } - - // required .InitMessage.LoginType login = 5; - if (has_login()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 5, this->login(), output); - } - - // optional string nickName = 6; - if (has_nickname()) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 6, this->nickname(), output); - } - - // optional bytes clientUserData = 7; - if (has_clientuserdata()) { - ::google::protobuf::internal::WireFormatLite::WriteBytes( - 7, this->clientuserdata(), output); - } - - // optional bytes avatarHash = 8; - if (has_avatarhash()) { - ::google::protobuf::internal::WireFormatLite::WriteBytes( - 8, this->avatarhash(), output); - } - -} - -int InitMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .AnnounceMessage.Version requestedVersion = 1; - if (has_requestedversion()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->requestedversion()); - } - - // required uint32 buildId = 2; - if (has_buildid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->buildid()); - } - - // optional bytes myLastSessionId = 3; - if (has_mylastsessionid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->mylastsessionid()); - } - - // optional string authServerPassword = 4; - if (has_authserverpassword()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->authserverpassword()); - } - - // required .InitMessage.LoginType login = 5; - if (has_login()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->login()); - } - - // optional string nickName = 6; - if (has_nickname()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->nickname()); - } - - // optional bytes clientUserData = 7; - if (has_clientuserdata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->clientuserdata()); - } - - // optional bytes avatarHash = 8; - if (has_avatarhash()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->avatarhash()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void InitMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void InitMessage::MergeFrom(const InitMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_requestedversion()) { - mutable_requestedversion()->::AnnounceMessage_Version::MergeFrom(from.requestedversion()); - } - if (from.has_buildid()) { - set_buildid(from.buildid()); - } - if (from.has_mylastsessionid()) { - set_mylastsessionid(from.mylastsessionid()); - } - if (from.has_authserverpassword()) { - set_authserverpassword(from.authserverpassword()); - } - if (from.has_login()) { - set_login(from.login()); - } - if (from.has_nickname()) { - set_nickname(from.nickname()); - } - if (from.has_clientuserdata()) { - set_clientuserdata(from.clientuserdata()); - } - if (from.has_avatarhash()) { - set_avatarhash(from.avatarhash()); - } - } -} - -void InitMessage::CopyFrom(const InitMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InitMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000013) != 0x00000013) return false; - - if (has_requestedversion()) { - if (!this->requestedversion().IsInitialized()) return false; - } - return true; -} - -void InitMessage::Swap(InitMessage* other) { - if (other != this) { - std::swap(requestedversion_, other->requestedversion_); - std::swap(buildid_, other->buildid_); - std::swap(mylastsessionid_, other->mylastsessionid_); - std::swap(authserverpassword_, other->authserverpassword_); - std::swap(login_, other->login_); - std::swap(nickname_, other->nickname_); - std::swap(clientuserdata_, other->clientuserdata_); - std::swap(avatarhash_, other->avatarhash_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string InitMessage::GetTypeName() const { - return "InitMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int AuthServerChallengeMessage::kServerChallengeFieldNumber; -#endif // !_MSC_VER - -AuthServerChallengeMessage::AuthServerChallengeMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void AuthServerChallengeMessage::InitAsDefaultInstance() { -} - -AuthServerChallengeMessage::AuthServerChallengeMessage(const AuthServerChallengeMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void AuthServerChallengeMessage::SharedCtor() { - _cached_size_ = 0; - serverchallenge_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AuthServerChallengeMessage::~AuthServerChallengeMessage() { - SharedDtor(); -} - -void AuthServerChallengeMessage::SharedDtor() { - if (serverchallenge_ != &::google::protobuf::internal::kEmptyString) { - delete serverchallenge_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AuthServerChallengeMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AuthServerChallengeMessage& AuthServerChallengeMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AuthServerChallengeMessage* AuthServerChallengeMessage::default_instance_ = NULL; - -AuthServerChallengeMessage* AuthServerChallengeMessage::New() const { - return new AuthServerChallengeMessage; -} - -void AuthServerChallengeMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_serverchallenge()) { - if (serverchallenge_ != &::google::protobuf::internal::kEmptyString) { - serverchallenge_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool AuthServerChallengeMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required bytes serverChallenge = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_serverchallenge())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void AuthServerChallengeMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required bytes serverChallenge = 1; - if (has_serverchallenge()) { - ::google::protobuf::internal::WireFormatLite::WriteBytes( - 1, this->serverchallenge(), output); - } - -} - -int AuthServerChallengeMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required bytes serverChallenge = 1; - if (has_serverchallenge()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->serverchallenge()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AuthServerChallengeMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void AuthServerChallengeMessage::MergeFrom(const AuthServerChallengeMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_serverchallenge()) { - set_serverchallenge(from.serverchallenge()); - } - } -} - -void AuthServerChallengeMessage::CopyFrom(const AuthServerChallengeMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AuthServerChallengeMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void AuthServerChallengeMessage::Swap(AuthServerChallengeMessage* other) { - if (other != this) { - std::swap(serverchallenge_, other->serverchallenge_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AuthServerChallengeMessage::GetTypeName() const { - return "AuthServerChallengeMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int AuthClientResponseMessage::kClientResponseFieldNumber; -#endif // !_MSC_VER - -AuthClientResponseMessage::AuthClientResponseMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void AuthClientResponseMessage::InitAsDefaultInstance() { -} - -AuthClientResponseMessage::AuthClientResponseMessage(const AuthClientResponseMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void AuthClientResponseMessage::SharedCtor() { - _cached_size_ = 0; - clientresponse_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AuthClientResponseMessage::~AuthClientResponseMessage() { - SharedDtor(); -} - -void AuthClientResponseMessage::SharedDtor() { - if (clientresponse_ != &::google::protobuf::internal::kEmptyString) { - delete clientresponse_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AuthClientResponseMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AuthClientResponseMessage& AuthClientResponseMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AuthClientResponseMessage* AuthClientResponseMessage::default_instance_ = NULL; - -AuthClientResponseMessage* AuthClientResponseMessage::New() const { - return new AuthClientResponseMessage; -} - -void AuthClientResponseMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_clientresponse()) { - if (clientresponse_ != &::google::protobuf::internal::kEmptyString) { - clientresponse_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool AuthClientResponseMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required bytes clientResponse = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_clientresponse())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void AuthClientResponseMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required bytes clientResponse = 1; - if (has_clientresponse()) { - ::google::protobuf::internal::WireFormatLite::WriteBytes( - 1, this->clientresponse(), output); - } - -} - -int AuthClientResponseMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required bytes clientResponse = 1; - if (has_clientresponse()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->clientresponse()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AuthClientResponseMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void AuthClientResponseMessage::MergeFrom(const AuthClientResponseMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_clientresponse()) { - set_clientresponse(from.clientresponse()); - } - } -} - -void AuthClientResponseMessage::CopyFrom(const AuthClientResponseMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AuthClientResponseMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void AuthClientResponseMessage::Swap(AuthClientResponseMessage* other) { - if (other != this) { - std::swap(clientresponse_, other->clientresponse_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AuthClientResponseMessage::GetTypeName() const { - return "AuthClientResponseMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int AuthServerVerificationMessage::kServerVerificationFieldNumber; -#endif // !_MSC_VER - -AuthServerVerificationMessage::AuthServerVerificationMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void AuthServerVerificationMessage::InitAsDefaultInstance() { -} - -AuthServerVerificationMessage::AuthServerVerificationMessage(const AuthServerVerificationMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void AuthServerVerificationMessage::SharedCtor() { - _cached_size_ = 0; - serververification_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AuthServerVerificationMessage::~AuthServerVerificationMessage() { - SharedDtor(); -} - -void AuthServerVerificationMessage::SharedDtor() { - if (serververification_ != &::google::protobuf::internal::kEmptyString) { - delete serververification_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AuthServerVerificationMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AuthServerVerificationMessage& AuthServerVerificationMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AuthServerVerificationMessage* AuthServerVerificationMessage::default_instance_ = NULL; - -AuthServerVerificationMessage* AuthServerVerificationMessage::New() const { - return new AuthServerVerificationMessage; -} - -void AuthServerVerificationMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_serververification()) { - if (serververification_ != &::google::protobuf::internal::kEmptyString) { - serververification_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool AuthServerVerificationMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required bytes serverVerification = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_serververification())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void AuthServerVerificationMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required bytes serverVerification = 1; - if (has_serververification()) { - ::google::protobuf::internal::WireFormatLite::WriteBytes( - 1, this->serververification(), output); - } - -} - -int AuthServerVerificationMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required bytes serverVerification = 1; - if (has_serververification()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->serververification()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AuthServerVerificationMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void AuthServerVerificationMessage::MergeFrom(const AuthServerVerificationMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_serververification()) { - set_serververification(from.serververification()); - } - } -} - -void AuthServerVerificationMessage::CopyFrom(const AuthServerVerificationMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AuthServerVerificationMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void AuthServerVerificationMessage::Swap(AuthServerVerificationMessage* other) { - if (other != this) { - std::swap(serververification_, other->serververification_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AuthServerVerificationMessage::GetTypeName() const { - return "AuthServerVerificationMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int InitAckMessage::kYourSessionIdFieldNumber; -const int InitAckMessage::kYourPlayerIdFieldNumber; -const int InitAckMessage::kYourAvatarHashFieldNumber; -const int InitAckMessage::kRejoinGameIdFieldNumber; -#endif // !_MSC_VER - -InitAckMessage::InitAckMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void InitAckMessage::InitAsDefaultInstance() { -} - -InitAckMessage::InitAckMessage(const InitAckMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void InitAckMessage::SharedCtor() { - _cached_size_ = 0; - yoursessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - yourplayerid_ = 0u; - youravatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - rejoingameid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -InitAckMessage::~InitAckMessage() { - SharedDtor(); -} - -void InitAckMessage::SharedDtor() { - if (yoursessionid_ != &::google::protobuf::internal::kEmptyString) { - delete yoursessionid_; - } - if (youravatarhash_ != &::google::protobuf::internal::kEmptyString) { - delete youravatarhash_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void InitAckMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const InitAckMessage& InitAckMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -InitAckMessage* InitAckMessage::default_instance_ = NULL; - -InitAckMessage* InitAckMessage::New() const { - return new InitAckMessage; -} - -void InitAckMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_yoursessionid()) { - if (yoursessionid_ != &::google::protobuf::internal::kEmptyString) { - yoursessionid_->clear(); - } - } - yourplayerid_ = 0u; - if (has_youravatarhash()) { - if (youravatarhash_ != &::google::protobuf::internal::kEmptyString) { - youravatarhash_->clear(); - } - } - rejoingameid_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool InitAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required bytes yourSessionId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_yoursessionid())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_yourPlayerId; - break; - } - - // required uint32 yourPlayerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_yourPlayerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &yourplayerid_))); - set_has_yourplayerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_yourAvatarHash; - break; - } - - // optional bytes yourAvatarHash = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_yourAvatarHash: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_youravatarhash())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_rejoinGameId; - break; - } - - // optional uint32 rejoinGameId = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_rejoinGameId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &rejoingameid_))); - set_has_rejoingameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void InitAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required bytes yourSessionId = 1; - if (has_yoursessionid()) { - ::google::protobuf::internal::WireFormatLite::WriteBytes( - 1, this->yoursessionid(), output); - } - - // required uint32 yourPlayerId = 2; - if (has_yourplayerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->yourplayerid(), output); - } - - // optional bytes yourAvatarHash = 3; - if (has_youravatarhash()) { - ::google::protobuf::internal::WireFormatLite::WriteBytes( - 3, this->youravatarhash(), output); - } - - // optional uint32 rejoinGameId = 4; - if (has_rejoingameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->rejoingameid(), output); - } - -} - -int InitAckMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required bytes yourSessionId = 1; - if (has_yoursessionid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->yoursessionid()); - } - - // required uint32 yourPlayerId = 2; - if (has_yourplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->yourplayerid()); - } - - // optional bytes yourAvatarHash = 3; - if (has_youravatarhash()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->youravatarhash()); - } - - // optional uint32 rejoinGameId = 4; - if (has_rejoingameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->rejoingameid()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void InitAckMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void InitAckMessage::MergeFrom(const InitAckMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_yoursessionid()) { - set_yoursessionid(from.yoursessionid()); - } - if (from.has_yourplayerid()) { - set_yourplayerid(from.yourplayerid()); - } - if (from.has_youravatarhash()) { - set_youravatarhash(from.youravatarhash()); - } - if (from.has_rejoingameid()) { - set_rejoingameid(from.rejoingameid()); - } - } -} - -void InitAckMessage::CopyFrom(const InitAckMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InitAckMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void InitAckMessage::Swap(InitAckMessage* other) { - if (other != this) { - std::swap(yoursessionid_, other->yoursessionid_); - std::swap(yourplayerid_, other->yourplayerid_); - std::swap(youravatarhash_, other->youravatarhash_); - std::swap(rejoingameid_, other->rejoingameid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string InitAckMessage::GetTypeName() const { - return "InitAckMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int AvatarRequestMessage::kRequestIdFieldNumber; -const int AvatarRequestMessage::kAvatarHashFieldNumber; -#endif // !_MSC_VER - -AvatarRequestMessage::AvatarRequestMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void AvatarRequestMessage::InitAsDefaultInstance() { -} - -AvatarRequestMessage::AvatarRequestMessage(const AvatarRequestMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void AvatarRequestMessage::SharedCtor() { - _cached_size_ = 0; - requestid_ = 0u; - avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AvatarRequestMessage::~AvatarRequestMessage() { - SharedDtor(); -} - -void AvatarRequestMessage::SharedDtor() { - if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { - delete avatarhash_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AvatarRequestMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AvatarRequestMessage& AvatarRequestMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AvatarRequestMessage* AvatarRequestMessage::default_instance_ = NULL; - -AvatarRequestMessage* AvatarRequestMessage::New() const { - return new AvatarRequestMessage; -} - -void AvatarRequestMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - requestid_ = 0u; - if (has_avatarhash()) { - if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { - avatarhash_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool AvatarRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 requestId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &requestid_))); - set_has_requestid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_avatarHash; - break; - } - - // required bytes avatarHash = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_avatarHash: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_avatarhash())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void AvatarRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 requestId = 1; - if (has_requestid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); - } - - // required bytes avatarHash = 2; - if (has_avatarhash()) { - ::google::protobuf::internal::WireFormatLite::WriteBytes( - 2, this->avatarhash(), output); - } - -} - -int AvatarRequestMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 requestId = 1; - if (has_requestid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - } - - // required bytes avatarHash = 2; - if (has_avatarhash()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->avatarhash()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AvatarRequestMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void AvatarRequestMessage::MergeFrom(const AvatarRequestMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_requestid()) { - set_requestid(from.requestid()); - } - if (from.has_avatarhash()) { - set_avatarhash(from.avatarhash()); - } - } -} - -void AvatarRequestMessage::CopyFrom(const AvatarRequestMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AvatarRequestMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void AvatarRequestMessage::Swap(AvatarRequestMessage* other) { - if (other != this) { - std::swap(requestid_, other->requestid_); - std::swap(avatarhash_, other->avatarhash_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AvatarRequestMessage::GetTypeName() const { - return "AvatarRequestMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int AvatarHeaderMessage::kRequestIdFieldNumber; -const int AvatarHeaderMessage::kAvatarTypeFieldNumber; -const int AvatarHeaderMessage::kAvatarSizeFieldNumber; -#endif // !_MSC_VER - -AvatarHeaderMessage::AvatarHeaderMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void AvatarHeaderMessage::InitAsDefaultInstance() { -} - -AvatarHeaderMessage::AvatarHeaderMessage(const AvatarHeaderMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void AvatarHeaderMessage::SharedCtor() { - _cached_size_ = 0; - requestid_ = 0u; - avatartype_ = 1; - avatarsize_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AvatarHeaderMessage::~AvatarHeaderMessage() { - SharedDtor(); -} - -void AvatarHeaderMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AvatarHeaderMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AvatarHeaderMessage& AvatarHeaderMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AvatarHeaderMessage* AvatarHeaderMessage::default_instance_ = NULL; - -AvatarHeaderMessage* AvatarHeaderMessage::New() const { - return new AvatarHeaderMessage; -} - -void AvatarHeaderMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - requestid_ = 0u; - avatartype_ = 1; - avatarsize_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool AvatarHeaderMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 requestId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &requestid_))); - set_has_requestid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_avatarType; - break; - } - - // required .NetAvatarType avatarType = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_avatarType: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::NetAvatarType_IsValid(value)) { - set_avatartype(static_cast< ::NetAvatarType >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_avatarSize; - break; - } - - // required uint32 avatarSize = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_avatarSize: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &avatarsize_))); - set_has_avatarsize(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void AvatarHeaderMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 requestId = 1; - if (has_requestid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); - } - - // required .NetAvatarType avatarType = 2; - if (has_avatartype()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->avatartype(), output); - } - - // required uint32 avatarSize = 3; - if (has_avatarsize()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->avatarsize(), output); - } - -} - -int AvatarHeaderMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 requestId = 1; - if (has_requestid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - } - - // required .NetAvatarType avatarType = 2; - if (has_avatartype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->avatartype()); - } - - // required uint32 avatarSize = 3; - if (has_avatarsize()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->avatarsize()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AvatarHeaderMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void AvatarHeaderMessage::MergeFrom(const AvatarHeaderMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_requestid()) { - set_requestid(from.requestid()); - } - if (from.has_avatartype()) { - set_avatartype(from.avatartype()); - } - if (from.has_avatarsize()) { - set_avatarsize(from.avatarsize()); - } - } -} - -void AvatarHeaderMessage::CopyFrom(const AvatarHeaderMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AvatarHeaderMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - - return true; -} - -void AvatarHeaderMessage::Swap(AvatarHeaderMessage* other) { - if (other != this) { - std::swap(requestid_, other->requestid_); - std::swap(avatartype_, other->avatartype_); - std::swap(avatarsize_, other->avatarsize_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AvatarHeaderMessage::GetTypeName() const { - return "AvatarHeaderMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int AvatarDataMessage::kRequestIdFieldNumber; -const int AvatarDataMessage::kAvatarBlockFieldNumber; -#endif // !_MSC_VER - -AvatarDataMessage::AvatarDataMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void AvatarDataMessage::InitAsDefaultInstance() { -} - -AvatarDataMessage::AvatarDataMessage(const AvatarDataMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void AvatarDataMessage::SharedCtor() { - _cached_size_ = 0; - requestid_ = 0u; - avatarblock_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AvatarDataMessage::~AvatarDataMessage() { - SharedDtor(); -} - -void AvatarDataMessage::SharedDtor() { - if (avatarblock_ != &::google::protobuf::internal::kEmptyString) { - delete avatarblock_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AvatarDataMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AvatarDataMessage& AvatarDataMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AvatarDataMessage* AvatarDataMessage::default_instance_ = NULL; - -AvatarDataMessage* AvatarDataMessage::New() const { - return new AvatarDataMessage; -} - -void AvatarDataMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - requestid_ = 0u; - if (has_avatarblock()) { - if (avatarblock_ != &::google::protobuf::internal::kEmptyString) { - avatarblock_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool AvatarDataMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 requestId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &requestid_))); - set_has_requestid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_avatarBlock; - break; - } - - // required bytes avatarBlock = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_avatarBlock: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_avatarblock())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void AvatarDataMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 requestId = 1; - if (has_requestid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); - } - - // required bytes avatarBlock = 2; - if (has_avatarblock()) { - ::google::protobuf::internal::WireFormatLite::WriteBytes( - 2, this->avatarblock(), output); - } - -} - -int AvatarDataMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 requestId = 1; - if (has_requestid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - } - - // required bytes avatarBlock = 2; - if (has_avatarblock()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->avatarblock()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AvatarDataMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void AvatarDataMessage::MergeFrom(const AvatarDataMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_requestid()) { - set_requestid(from.requestid()); - } - if (from.has_avatarblock()) { - set_avatarblock(from.avatarblock()); - } - } -} - -void AvatarDataMessage::CopyFrom(const AvatarDataMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AvatarDataMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void AvatarDataMessage::Swap(AvatarDataMessage* other) { - if (other != this) { - std::swap(requestid_, other->requestid_); - std::swap(avatarblock_, other->avatarblock_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AvatarDataMessage::GetTypeName() const { - return "AvatarDataMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int AvatarEndMessage::kRequestIdFieldNumber; -#endif // !_MSC_VER - -AvatarEndMessage::AvatarEndMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void AvatarEndMessage::InitAsDefaultInstance() { -} - -AvatarEndMessage::AvatarEndMessage(const AvatarEndMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void AvatarEndMessage::SharedCtor() { - _cached_size_ = 0; - requestid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AvatarEndMessage::~AvatarEndMessage() { - SharedDtor(); -} - -void AvatarEndMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AvatarEndMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AvatarEndMessage& AvatarEndMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AvatarEndMessage* AvatarEndMessage::default_instance_ = NULL; - -AvatarEndMessage* AvatarEndMessage::New() const { - return new AvatarEndMessage; -} - -void AvatarEndMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - requestid_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool AvatarEndMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 requestId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &requestid_))); - set_has_requestid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void AvatarEndMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 requestId = 1; - if (has_requestid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); - } - -} - -int AvatarEndMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 requestId = 1; - if (has_requestid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AvatarEndMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void AvatarEndMessage::MergeFrom(const AvatarEndMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_requestid()) { - set_requestid(from.requestid()); - } - } -} - -void AvatarEndMessage::CopyFrom(const AvatarEndMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AvatarEndMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void AvatarEndMessage::Swap(AvatarEndMessage* other) { - if (other != this) { - std::swap(requestid_, other->requestid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AvatarEndMessage::GetTypeName() const { - return "AvatarEndMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int UnknownAvatarMessage::kRequestIdFieldNumber; -#endif // !_MSC_VER - -UnknownAvatarMessage::UnknownAvatarMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void UnknownAvatarMessage::InitAsDefaultInstance() { -} - -UnknownAvatarMessage::UnknownAvatarMessage(const UnknownAvatarMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void UnknownAvatarMessage::SharedCtor() { - _cached_size_ = 0; - requestid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -UnknownAvatarMessage::~UnknownAvatarMessage() { - SharedDtor(); -} - -void UnknownAvatarMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void UnknownAvatarMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const UnknownAvatarMessage& UnknownAvatarMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -UnknownAvatarMessage* UnknownAvatarMessage::default_instance_ = NULL; - -UnknownAvatarMessage* UnknownAvatarMessage::New() const { - return new UnknownAvatarMessage; -} - -void UnknownAvatarMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - requestid_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool UnknownAvatarMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 requestId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &requestid_))); - set_has_requestid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void UnknownAvatarMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 requestId = 1; - if (has_requestid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); - } - -} - -int UnknownAvatarMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 requestId = 1; - if (has_requestid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void UnknownAvatarMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void UnknownAvatarMessage::MergeFrom(const UnknownAvatarMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_requestid()) { - set_requestid(from.requestid()); - } - } -} - -void UnknownAvatarMessage::CopyFrom(const UnknownAvatarMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UnknownAvatarMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void UnknownAvatarMessage::Swap(UnknownAvatarMessage* other) { - if (other != this) { - std::swap(requestid_, other->requestid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string UnknownAvatarMessage::GetTypeName() const { - return "UnknownAvatarMessage"; -} - - -// =================================================================== - +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed InitMessage_LoginType_strings[3] = {}; + +static const char InitMessage_LoginType_names[] = + "authenticatedLogin" + "guestLogin" + "unauthenticatedLogin"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry InitMessage_LoginType_entries[] = { + { {InitMessage_LoginType_names + 0, 18}, 1 }, + { {InitMessage_LoginType_names + 18, 10}, 0 }, + { {InitMessage_LoginType_names + 28, 20}, 2 }, +}; + +static const int InitMessage_LoginType_entries_by_number[] = { + 1, // 0 -> guestLogin + 0, // 1 -> authenticatedLogin + 2, // 2 -> unauthenticatedLogin +}; + +const std::string& InitMessage_LoginType_Name( + InitMessage_LoginType value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + InitMessage_LoginType_entries, + InitMessage_LoginType_entries_by_number, + 3, InitMessage_LoginType_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + InitMessage_LoginType_entries, + InitMessage_LoginType_entries_by_number, + 3, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + InitMessage_LoginType_strings[idx].get(); +} +bool InitMessage_LoginType_Parse( + const std::string& name, InitMessage_LoginType* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + InitMessage_LoginType_entries, 3, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr InitMessage_LoginType InitMessage::guestLogin; +constexpr InitMessage_LoginType InitMessage::authenticatedLogin; +constexpr InitMessage_LoginType InitMessage::unauthenticatedLogin; +constexpr InitMessage_LoginType InitMessage::LoginType_MIN; +constexpr InitMessage_LoginType InitMessage::LoginType_MAX; +constexpr int InitMessage::LoginType_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool PlayerListMessage_PlayerListNotification_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: return true; @@ -4530,2802 +2158,56 @@ bool PlayerListMessage_PlayerListNotification_IsValid(int value) { } } -#ifndef _MSC_VER -const PlayerListMessage_PlayerListNotification PlayerListMessage::playerListNew; -const PlayerListMessage_PlayerListNotification PlayerListMessage::playerListLeft; -const PlayerListMessage_PlayerListNotification PlayerListMessage::PlayerListNotification_MIN; -const PlayerListMessage_PlayerListNotification PlayerListMessage::PlayerListNotification_MAX; -const int PlayerListMessage::PlayerListNotification_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int PlayerListMessage::kPlayerIdFieldNumber; -const int PlayerListMessage::kPlayerListNotificationFieldNumber; -#endif // !_MSC_VER - -PlayerListMessage::PlayerListMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void PlayerListMessage::InitAsDefaultInstance() { -} - -PlayerListMessage::PlayerListMessage(const PlayerListMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void PlayerListMessage::SharedCtor() { - _cached_size_ = 0; - playerid_ = 0u; - playerlistnotification_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PlayerListMessage::~PlayerListMessage() { - SharedDtor(); -} - -void PlayerListMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void PlayerListMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const PlayerListMessage& PlayerListMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -PlayerListMessage* PlayerListMessage::default_instance_ = NULL; - -PlayerListMessage* PlayerListMessage::New() const { - return new PlayerListMessage; -} - -void PlayerListMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - playerid_ = 0u; - playerlistnotification_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool PlayerListMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 playerId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerListNotification; - break; - } - - // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerListNotification: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::PlayerListMessage_PlayerListNotification_IsValid(value)) { - set_playerlistnotification(static_cast< ::PlayerListMessage_PlayerListNotification >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void PlayerListMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 playerId = 1; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->playerid(), output); - } - - // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - if (has_playerlistnotification()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->playerlistnotification(), output); - } - -} - -int PlayerListMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 playerId = 1; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - if (has_playerlistnotification()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->playerlistnotification()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PlayerListMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void PlayerListMessage::MergeFrom(const PlayerListMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - if (from.has_playerlistnotification()) { - set_playerlistnotification(from.playerlistnotification()); - } - } -} - -void PlayerListMessage::CopyFrom(const PlayerListMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PlayerListMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void PlayerListMessage::Swap(PlayerListMessage* other) { - if (other != this) { - std::swap(playerid_, other->playerid_); - std::swap(playerlistnotification_, other->playerlistnotification_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string PlayerListMessage::GetTypeName() const { - return "PlayerListMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int GameListNewMessage::kGameIdFieldNumber; -const int GameListNewMessage::kGameModeFieldNumber; -const int GameListNewMessage::kIsPrivateFieldNumber; -const int GameListNewMessage::kPlayerIdsFieldNumber; -const int GameListNewMessage::kAdminPlayerIdFieldNumber; -const int GameListNewMessage::kGameInfoFieldNumber; -const int GameListNewMessage::kSpectatorIdsFieldNumber; -#endif // !_MSC_VER - -GameListNewMessage::GameListNewMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void GameListNewMessage::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gameinfo_ = const_cast< ::NetGameInfo*>( - ::NetGameInfo::internal_default_instance()); -#else - gameinfo_ = const_cast< ::NetGameInfo*>(&::NetGameInfo::default_instance()); -#endif -} - -GameListNewMessage::GameListNewMessage(const GameListNewMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void GameListNewMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - gamemode_ = 1; - isprivate_ = false; - adminplayerid_ = 0u; - gameinfo_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameListNewMessage::~GameListNewMessage() { - SharedDtor(); -} - -void GameListNewMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete gameinfo_; - } -} - -void GameListNewMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameListNewMessage& GameListNewMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameListNewMessage* GameListNewMessage::default_instance_ = NULL; - -GameListNewMessage* GameListNewMessage::New() const { - return new GameListNewMessage; -} - -void GameListNewMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - gamemode_ = 1; - isprivate_ = false; - adminplayerid_ = 0u; - if (has_gameinfo()) { - if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); - } - } - playerids_.Clear(); - spectatorids_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool GameListNewMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_gameMode; - break; - } - - // required .NetGameMode gameMode = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_gameMode: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::NetGameMode_IsValid(value)) { - set_gamemode(static_cast< ::NetGameMode >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_isPrivate; - break; - } - - // required bool isPrivate = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_isPrivate: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &isprivate_))); - set_has_isprivate(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_playerIds; - break; - } - - // repeated uint32 playerIds = 4 [packed = true]; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_playerIds: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_playerids()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 34, input, this->mutable_playerids()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_adminPlayerId; - break; - } - - // required uint32 adminPlayerId = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_adminPlayerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &adminplayerid_))); - set_has_adminplayerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(50)) goto parse_gameInfo; - break; - } - - // required .NetGameInfo gameInfo = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_gameInfo: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gameinfo())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(58)) goto parse_spectatorIds; - break; - } - - // repeated uint32 spectatorIds = 7 [packed = true]; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_spectatorIds: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_spectatorids()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 58, input, this->mutable_spectatorids()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void GameListNewMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required .NetGameMode gameMode = 2; - if (has_gamemode()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->gamemode(), output); - } - - // required bool isPrivate = 3; - if (has_isprivate()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->isprivate(), output); - } - - // repeated uint32 playerIds = 4 [packed = true]; - if (this->playerids_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_playerids_cached_byte_size_); - } - for (int i = 0; i < this->playerids_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->playerids(i), output); - } - - // required uint32 adminPlayerId = 5; - if (has_adminplayerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->adminplayerid(), output); - } - - // required .NetGameInfo gameInfo = 6; - if (has_gameinfo()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 6, this->gameinfo(), output); - } - - // repeated uint32 spectatorIds = 7 [packed = true]; - if (this->spectatorids_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(7, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_spectatorids_cached_byte_size_); - } - for (int i = 0; i < this->spectatorids_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->spectatorids(i), output); - } - -} - -int GameListNewMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required .NetGameMode gameMode = 2; - if (has_gamemode()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamemode()); - } - - // required bool isPrivate = 3; - if (has_isprivate()) { - total_size += 1 + 1; - } - - // required uint32 adminPlayerId = 5; - if (has_adminplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->adminplayerid()); - } - - // required .NetGameInfo gameInfo = 6; - if (has_gameinfo()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gameinfo()); - } - - } - // repeated uint32 playerIds = 4 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->playerids_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->playerids(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _playerids_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated uint32 spectatorIds = 7 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->spectatorids_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->spectatorids(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _spectatorids_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GameListNewMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void GameListNewMessage::MergeFrom(const GameListNewMessage& from) { - GOOGLE_CHECK_NE(&from, this); - playerids_.MergeFrom(from.playerids_); - spectatorids_.MergeFrom(from.spectatorids_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_gamemode()) { - set_gamemode(from.gamemode()); - } - if (from.has_isprivate()) { - set_isprivate(from.isprivate()); - } - if (from.has_adminplayerid()) { - set_adminplayerid(from.adminplayerid()); - } - if (from.has_gameinfo()) { - mutable_gameinfo()->::NetGameInfo::MergeFrom(from.gameinfo()); - } - } -} - -void GameListNewMessage::CopyFrom(const GameListNewMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameListNewMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000037) != 0x00000037) return false; - - if (has_gameinfo()) { - if (!this->gameinfo().IsInitialized()) return false; - } - return true; -} - -void GameListNewMessage::Swap(GameListNewMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(gamemode_, other->gamemode_); - std::swap(isprivate_, other->isprivate_); - playerids_.Swap(&other->playerids_); - std::swap(adminplayerid_, other->adminplayerid_); - std::swap(gameinfo_, other->gameinfo_); - spectatorids_.Swap(&other->spectatorids_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string GameListNewMessage::GetTypeName() const { - return "GameListNewMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int GameListUpdateMessage::kGameIdFieldNumber; -const int GameListUpdateMessage::kGameModeFieldNumber; -#endif // !_MSC_VER - -GameListUpdateMessage::GameListUpdateMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void GameListUpdateMessage::InitAsDefaultInstance() { -} - -GameListUpdateMessage::GameListUpdateMessage(const GameListUpdateMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void GameListUpdateMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - gamemode_ = 1; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameListUpdateMessage::~GameListUpdateMessage() { - SharedDtor(); -} - -void GameListUpdateMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameListUpdateMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameListUpdateMessage& GameListUpdateMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameListUpdateMessage* GameListUpdateMessage::default_instance_ = NULL; - -GameListUpdateMessage* GameListUpdateMessage::New() const { - return new GameListUpdateMessage; -} - -void GameListUpdateMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - gamemode_ = 1; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool GameListUpdateMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_gameMode; - break; - } - - // required .NetGameMode gameMode = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_gameMode: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::NetGameMode_IsValid(value)) { - set_gamemode(static_cast< ::NetGameMode >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void GameListUpdateMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required .NetGameMode gameMode = 2; - if (has_gamemode()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->gamemode(), output); - } - -} - -int GameListUpdateMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required .NetGameMode gameMode = 2; - if (has_gamemode()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamemode()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GameListUpdateMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void GameListUpdateMessage::MergeFrom(const GameListUpdateMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_gamemode()) { - set_gamemode(from.gamemode()); - } - } -} - -void GameListUpdateMessage::CopyFrom(const GameListUpdateMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameListUpdateMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void GameListUpdateMessage::Swap(GameListUpdateMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(gamemode_, other->gamemode_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string GameListUpdateMessage::GetTypeName() const { - return "GameListUpdateMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int GameListPlayerJoinedMessage::kGameIdFieldNumber; -const int GameListPlayerJoinedMessage::kPlayerIdFieldNumber; -#endif // !_MSC_VER - -GameListPlayerJoinedMessage::GameListPlayerJoinedMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void GameListPlayerJoinedMessage::InitAsDefaultInstance() { -} - -GameListPlayerJoinedMessage::GameListPlayerJoinedMessage(const GameListPlayerJoinedMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void GameListPlayerJoinedMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameListPlayerJoinedMessage::~GameListPlayerJoinedMessage() { - SharedDtor(); -} - -void GameListPlayerJoinedMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameListPlayerJoinedMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameListPlayerJoinedMessage& GameListPlayerJoinedMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameListPlayerJoinedMessage* GameListPlayerJoinedMessage::default_instance_ = NULL; - -GameListPlayerJoinedMessage* GameListPlayerJoinedMessage::New() const { - return new GameListPlayerJoinedMessage; -} - -void GameListPlayerJoinedMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - playerid_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool GameListPlayerJoinedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void GameListPlayerJoinedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - -} - -int GameListPlayerJoinedMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GameListPlayerJoinedMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void GameListPlayerJoinedMessage::MergeFrom(const GameListPlayerJoinedMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - } -} - -void GameListPlayerJoinedMessage::CopyFrom(const GameListPlayerJoinedMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameListPlayerJoinedMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void GameListPlayerJoinedMessage::Swap(GameListPlayerJoinedMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string GameListPlayerJoinedMessage::GetTypeName() const { - return "GameListPlayerJoinedMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int GameListPlayerLeftMessage::kGameIdFieldNumber; -const int GameListPlayerLeftMessage::kPlayerIdFieldNumber; -#endif // !_MSC_VER - -GameListPlayerLeftMessage::GameListPlayerLeftMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void GameListPlayerLeftMessage::InitAsDefaultInstance() { -} - -GameListPlayerLeftMessage::GameListPlayerLeftMessage(const GameListPlayerLeftMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void GameListPlayerLeftMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameListPlayerLeftMessage::~GameListPlayerLeftMessage() { - SharedDtor(); -} - -void GameListPlayerLeftMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameListPlayerLeftMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameListPlayerLeftMessage& GameListPlayerLeftMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameListPlayerLeftMessage* GameListPlayerLeftMessage::default_instance_ = NULL; - -GameListPlayerLeftMessage* GameListPlayerLeftMessage::New() const { - return new GameListPlayerLeftMessage; -} - -void GameListPlayerLeftMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - playerid_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool GameListPlayerLeftMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void GameListPlayerLeftMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - -} - -int GameListPlayerLeftMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GameListPlayerLeftMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void GameListPlayerLeftMessage::MergeFrom(const GameListPlayerLeftMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - } -} - -void GameListPlayerLeftMessage::CopyFrom(const GameListPlayerLeftMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameListPlayerLeftMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void GameListPlayerLeftMessage::Swap(GameListPlayerLeftMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string GameListPlayerLeftMessage::GetTypeName() const { - return "GameListPlayerLeftMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int GameListSpectatorJoinedMessage::kGameIdFieldNumber; -const int GameListSpectatorJoinedMessage::kPlayerIdFieldNumber; -#endif // !_MSC_VER - -GameListSpectatorJoinedMessage::GameListSpectatorJoinedMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void GameListSpectatorJoinedMessage::InitAsDefaultInstance() { -} - -GameListSpectatorJoinedMessage::GameListSpectatorJoinedMessage(const GameListSpectatorJoinedMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void GameListSpectatorJoinedMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameListSpectatorJoinedMessage::~GameListSpectatorJoinedMessage() { - SharedDtor(); -} - -void GameListSpectatorJoinedMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameListSpectatorJoinedMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameListSpectatorJoinedMessage& GameListSpectatorJoinedMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameListSpectatorJoinedMessage* GameListSpectatorJoinedMessage::default_instance_ = NULL; - -GameListSpectatorJoinedMessage* GameListSpectatorJoinedMessage::New() const { - return new GameListSpectatorJoinedMessage; -} - -void GameListSpectatorJoinedMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - playerid_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool GameListSpectatorJoinedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void GameListSpectatorJoinedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - -} - -int GameListSpectatorJoinedMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GameListSpectatorJoinedMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void GameListSpectatorJoinedMessage::MergeFrom(const GameListSpectatorJoinedMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - } -} - -void GameListSpectatorJoinedMessage::CopyFrom(const GameListSpectatorJoinedMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameListSpectatorJoinedMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void GameListSpectatorJoinedMessage::Swap(GameListSpectatorJoinedMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string GameListSpectatorJoinedMessage::GetTypeName() const { - return "GameListSpectatorJoinedMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int GameListSpectatorLeftMessage::kGameIdFieldNumber; -const int GameListSpectatorLeftMessage::kPlayerIdFieldNumber; -#endif // !_MSC_VER - -GameListSpectatorLeftMessage::GameListSpectatorLeftMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void GameListSpectatorLeftMessage::InitAsDefaultInstance() { -} - -GameListSpectatorLeftMessage::GameListSpectatorLeftMessage(const GameListSpectatorLeftMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void GameListSpectatorLeftMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameListSpectatorLeftMessage::~GameListSpectatorLeftMessage() { - SharedDtor(); -} - -void GameListSpectatorLeftMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameListSpectatorLeftMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameListSpectatorLeftMessage& GameListSpectatorLeftMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameListSpectatorLeftMessage* GameListSpectatorLeftMessage::default_instance_ = NULL; - -GameListSpectatorLeftMessage* GameListSpectatorLeftMessage::New() const { - return new GameListSpectatorLeftMessage; -} - -void GameListSpectatorLeftMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - playerid_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool GameListSpectatorLeftMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void GameListSpectatorLeftMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - -} - -int GameListSpectatorLeftMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GameListSpectatorLeftMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void GameListSpectatorLeftMessage::MergeFrom(const GameListSpectatorLeftMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - } -} - -void GameListSpectatorLeftMessage::CopyFrom(const GameListSpectatorLeftMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameListSpectatorLeftMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void GameListSpectatorLeftMessage::Swap(GameListSpectatorLeftMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string GameListSpectatorLeftMessage::GetTypeName() const { - return "GameListSpectatorLeftMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int GameListAdminChangedMessage::kGameIdFieldNumber; -const int GameListAdminChangedMessage::kNewAdminPlayerIdFieldNumber; -#endif // !_MSC_VER - -GameListAdminChangedMessage::GameListAdminChangedMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void GameListAdminChangedMessage::InitAsDefaultInstance() { -} - -GameListAdminChangedMessage::GameListAdminChangedMessage(const GameListAdminChangedMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void GameListAdminChangedMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - newadminplayerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameListAdminChangedMessage::~GameListAdminChangedMessage() { - SharedDtor(); -} - -void GameListAdminChangedMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameListAdminChangedMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameListAdminChangedMessage& GameListAdminChangedMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameListAdminChangedMessage* GameListAdminChangedMessage::default_instance_ = NULL; - -GameListAdminChangedMessage* GameListAdminChangedMessage::New() const { - return new GameListAdminChangedMessage; -} - -void GameListAdminChangedMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - newadminplayerid_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool GameListAdminChangedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_newAdminPlayerId; - break; - } - - // required uint32 newAdminPlayerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_newAdminPlayerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &newadminplayerid_))); - set_has_newadminplayerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void GameListAdminChangedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 newAdminPlayerId = 2; - if (has_newadminplayerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->newadminplayerid(), output); - } - -} - -int GameListAdminChangedMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 newAdminPlayerId = 2; - if (has_newadminplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->newadminplayerid()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GameListAdminChangedMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void GameListAdminChangedMessage::MergeFrom(const GameListAdminChangedMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_newadminplayerid()) { - set_newadminplayerid(from.newadminplayerid()); - } - } -} - -void GameListAdminChangedMessage::CopyFrom(const GameListAdminChangedMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameListAdminChangedMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void GameListAdminChangedMessage::Swap(GameListAdminChangedMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(newadminplayerid_, other->newadminplayerid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string GameListAdminChangedMessage::GetTypeName() const { - return "GameListAdminChangedMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int PlayerInfoRequestMessage::kPlayerIdFieldNumber; -#endif // !_MSC_VER - -PlayerInfoRequestMessage::PlayerInfoRequestMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void PlayerInfoRequestMessage::InitAsDefaultInstance() { -} - -PlayerInfoRequestMessage::PlayerInfoRequestMessage(const PlayerInfoRequestMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void PlayerInfoRequestMessage::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PlayerInfoRequestMessage::~PlayerInfoRequestMessage() { - SharedDtor(); -} - -void PlayerInfoRequestMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void PlayerInfoRequestMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const PlayerInfoRequestMessage& PlayerInfoRequestMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -PlayerInfoRequestMessage* PlayerInfoRequestMessage::default_instance_ = NULL; - -PlayerInfoRequestMessage* PlayerInfoRequestMessage::New() const { - return new PlayerInfoRequestMessage; -} - -void PlayerInfoRequestMessage::Clear() { - playerid_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool PlayerInfoRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated uint32 playerId = 1 [packed = true]; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_playerid()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 10, input, this->mutable_playerid()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void PlayerInfoRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // repeated uint32 playerId = 1 [packed = true]; - if (this->playerid_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_playerid_cached_byte_size_); - } - for (int i = 0; i < this->playerid_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->playerid(i), output); - } - -} - -int PlayerInfoRequestMessage::ByteSize() const { - int total_size = 0; - - // repeated uint32 playerId = 1 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->playerid_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->playerid(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _playerid_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PlayerInfoRequestMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void PlayerInfoRequestMessage::MergeFrom(const PlayerInfoRequestMessage& from) { - GOOGLE_CHECK_NE(&from, this); - playerid_.MergeFrom(from.playerid_); -} - -void PlayerInfoRequestMessage::CopyFrom(const PlayerInfoRequestMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PlayerInfoRequestMessage::IsInitialized() const { - - return true; -} - -void PlayerInfoRequestMessage::Swap(PlayerInfoRequestMessage* other) { - if (other != this) { - playerid_.Swap(&other->playerid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string PlayerInfoRequestMessage::GetTypeName() const { - return "PlayerInfoRequestMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int PlayerInfoReplyMessage_PlayerInfoData_AvatarData::kAvatarTypeFieldNumber; -const int PlayerInfoReplyMessage_PlayerInfoData_AvatarData::kAvatarHashFieldNumber; -#endif // !_MSC_VER - -PlayerInfoReplyMessage_PlayerInfoData_AvatarData::PlayerInfoReplyMessage_PlayerInfoData_AvatarData() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::InitAsDefaultInstance() { -} - -PlayerInfoReplyMessage_PlayerInfoData_AvatarData::PlayerInfoReplyMessage_PlayerInfoData_AvatarData(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::SharedCtor() { - _cached_size_ = 0; - avatartype_ = 1; - avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PlayerInfoReplyMessage_PlayerInfoData_AvatarData::~PlayerInfoReplyMessage_PlayerInfoData_AvatarData() { - SharedDtor(); -} - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::SharedDtor() { - if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { - delete avatarhash_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -PlayerInfoReplyMessage_PlayerInfoData_AvatarData* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance_ = NULL; - -PlayerInfoReplyMessage_PlayerInfoData_AvatarData* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::New() const { - return new PlayerInfoReplyMessage_PlayerInfoData_AvatarData; -} - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - avatartype_ = 1; - if (has_avatarhash()) { - if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { - avatarhash_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool PlayerInfoReplyMessage_PlayerInfoData_AvatarData::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .NetAvatarType avatarType = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::NetAvatarType_IsValid(value)) { - set_avatartype(static_cast< ::NetAvatarType >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_avatarHash; - break; - } - - // required bytes avatarHash = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_avatarHash: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_avatarhash())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .NetAvatarType avatarType = 1; - if (has_avatartype()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->avatartype(), output); - } - - // required bytes avatarHash = 2; - if (has_avatarhash()) { - ::google::protobuf::internal::WireFormatLite::WriteBytes( - 2, this->avatarhash(), output); - } - -} - -int PlayerInfoReplyMessage_PlayerInfoData_AvatarData::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .NetAvatarType avatarType = 1; - if (has_avatartype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->avatartype()); - } - - // required bytes avatarHash = 2; - if (has_avatarhash()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->avatarhash()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::MergeFrom(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_avatartype()) { - set_avatartype(from.avatartype()); - } - if (from.has_avatarhash()) { - set_avatarhash(from.avatarhash()); - } - } -} - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::CopyFrom(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PlayerInfoReplyMessage_PlayerInfoData_AvatarData::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::Swap(PlayerInfoReplyMessage_PlayerInfoData_AvatarData* other) { - if (other != this) { - std::swap(avatartype_, other->avatartype_); - std::swap(avatarhash_, other->avatarhash_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string PlayerInfoReplyMessage_PlayerInfoData_AvatarData::GetTypeName() const { - return "PlayerInfoReplyMessage.PlayerInfoData.AvatarData"; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int PlayerInfoReplyMessage_PlayerInfoData::kPlayerNameFieldNumber; -const int PlayerInfoReplyMessage_PlayerInfoData::kIsHumanFieldNumber; -const int PlayerInfoReplyMessage_PlayerInfoData::kPlayerRightsFieldNumber; -const int PlayerInfoReplyMessage_PlayerInfoData::kCountryCodeFieldNumber; -const int PlayerInfoReplyMessage_PlayerInfoData::kAvatarDataFieldNumber; -#endif // !_MSC_VER - -PlayerInfoReplyMessage_PlayerInfoData::PlayerInfoReplyMessage_PlayerInfoData() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void PlayerInfoReplyMessage_PlayerInfoData::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - avatardata_ = const_cast< ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData*>( - ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::internal_default_instance()); -#else - avatardata_ = const_cast< ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData*>(&::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance()); -#endif -} - -PlayerInfoReplyMessage_PlayerInfoData::PlayerInfoReplyMessage_PlayerInfoData(const PlayerInfoReplyMessage_PlayerInfoData& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void PlayerInfoReplyMessage_PlayerInfoData::SharedCtor() { - _cached_size_ = 0; - playername_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ishuman_ = false; - playerrights_ = 1; - countrycode_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - avatardata_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PlayerInfoReplyMessage_PlayerInfoData::~PlayerInfoReplyMessage_PlayerInfoData() { - SharedDtor(); -} - -void PlayerInfoReplyMessage_PlayerInfoData::SharedDtor() { - if (playername_ != &::google::protobuf::internal::kEmptyString) { - delete playername_; - } - if (countrycode_ != &::google::protobuf::internal::kEmptyString) { - delete countrycode_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete avatardata_; - } -} - -void PlayerInfoReplyMessage_PlayerInfoData::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const PlayerInfoReplyMessage_PlayerInfoData& PlayerInfoReplyMessage_PlayerInfoData::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -PlayerInfoReplyMessage_PlayerInfoData* PlayerInfoReplyMessage_PlayerInfoData::default_instance_ = NULL; - -PlayerInfoReplyMessage_PlayerInfoData* PlayerInfoReplyMessage_PlayerInfoData::New() const { - return new PlayerInfoReplyMessage_PlayerInfoData; -} - -void PlayerInfoReplyMessage_PlayerInfoData::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_playername()) { - if (playername_ != &::google::protobuf::internal::kEmptyString) { - playername_->clear(); - } - } - ishuman_ = false; - playerrights_ = 1; - if (has_countrycode()) { - if (countrycode_ != &::google::protobuf::internal::kEmptyString) { - countrycode_->clear(); - } - } - if (has_avatardata()) { - if (avatardata_ != NULL) avatardata_->::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool PlayerInfoReplyMessage_PlayerInfoData::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required string playerName = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_playername())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_isHuman; - break; - } - - // required bool isHuman = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_isHuman: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &ishuman_))); - set_has_ishuman(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_playerRights; - break; - } - - // required .NetPlayerInfoRights playerRights = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerRights: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::NetPlayerInfoRights_IsValid(value)) { - set_playerrights(static_cast< ::NetPlayerInfoRights >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_countryCode; - break; - } - - // optional string countryCode = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_countryCode: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_countrycode())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(42)) goto parse_avatarData; - break; - } - - // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_avatarData: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_avatardata())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void PlayerInfoReplyMessage_PlayerInfoData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required string playerName = 1; - if (has_playername()) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->playername(), output); - } - - // required bool isHuman = 2; - if (has_ishuman()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->ishuman(), output); - } - - // required .NetPlayerInfoRights playerRights = 3; - if (has_playerrights()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->playerrights(), output); - } - - // optional string countryCode = 4; - if (has_countrycode()) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 4, this->countrycode(), output); - } - - // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - if (has_avatardata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 5, this->avatardata(), output); - } - -} - -int PlayerInfoReplyMessage_PlayerInfoData::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required string playerName = 1; - if (has_playername()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->playername()); - } - - // required bool isHuman = 2; - if (has_ishuman()) { - total_size += 1 + 1; - } - - // required .NetPlayerInfoRights playerRights = 3; - if (has_playerrights()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->playerrights()); - } - - // optional string countryCode = 4; - if (has_countrycode()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->countrycode()); - } - - // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - if (has_avatardata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->avatardata()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PlayerInfoReplyMessage_PlayerInfoData::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void PlayerInfoReplyMessage_PlayerInfoData::MergeFrom(const PlayerInfoReplyMessage_PlayerInfoData& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_playername()) { - set_playername(from.playername()); - } - if (from.has_ishuman()) { - set_ishuman(from.ishuman()); - } - if (from.has_playerrights()) { - set_playerrights(from.playerrights()); - } - if (from.has_countrycode()) { - set_countrycode(from.countrycode()); - } - if (from.has_avatardata()) { - mutable_avatardata()->::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::MergeFrom(from.avatardata()); - } - } -} - -void PlayerInfoReplyMessage_PlayerInfoData::CopyFrom(const PlayerInfoReplyMessage_PlayerInfoData& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PlayerInfoReplyMessage_PlayerInfoData::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - - if (has_avatardata()) { - if (!this->avatardata().IsInitialized()) return false; - } - return true; -} - -void PlayerInfoReplyMessage_PlayerInfoData::Swap(PlayerInfoReplyMessage_PlayerInfoData* other) { - if (other != this) { - std::swap(playername_, other->playername_); - std::swap(ishuman_, other->ishuman_); - std::swap(playerrights_, other->playerrights_); - std::swap(countrycode_, other->countrycode_); - std::swap(avatardata_, other->avatardata_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string PlayerInfoReplyMessage_PlayerInfoData::GetTypeName() const { - return "PlayerInfoReplyMessage.PlayerInfoData"; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int PlayerInfoReplyMessage::kPlayerIdFieldNumber; -const int PlayerInfoReplyMessage::kPlayerInfoDataFieldNumber; -#endif // !_MSC_VER - -PlayerInfoReplyMessage::PlayerInfoReplyMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void PlayerInfoReplyMessage::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - playerinfodata_ = const_cast< ::PlayerInfoReplyMessage_PlayerInfoData*>( - ::PlayerInfoReplyMessage_PlayerInfoData::internal_default_instance()); -#else - playerinfodata_ = const_cast< ::PlayerInfoReplyMessage_PlayerInfoData*>(&::PlayerInfoReplyMessage_PlayerInfoData::default_instance()); -#endif -} - -PlayerInfoReplyMessage::PlayerInfoReplyMessage(const PlayerInfoReplyMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void PlayerInfoReplyMessage::SharedCtor() { - _cached_size_ = 0; - playerid_ = 0u; - playerinfodata_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PlayerInfoReplyMessage::~PlayerInfoReplyMessage() { - SharedDtor(); -} - -void PlayerInfoReplyMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete playerinfodata_; - } -} - -void PlayerInfoReplyMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const PlayerInfoReplyMessage& PlayerInfoReplyMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -PlayerInfoReplyMessage* PlayerInfoReplyMessage::default_instance_ = NULL; - -PlayerInfoReplyMessage* PlayerInfoReplyMessage::New() const { - return new PlayerInfoReplyMessage; -} - -void PlayerInfoReplyMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - playerid_ = 0u; - if (has_playerinfodata()) { - if (playerinfodata_ != NULL) playerinfodata_->::PlayerInfoReplyMessage_PlayerInfoData::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool PlayerInfoReplyMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 playerId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_playerInfoData; - break; - } - - // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_playerInfoData: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_playerinfodata())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void PlayerInfoReplyMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 playerId = 1; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->playerid(), output); - } - - // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - if (has_playerinfodata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, this->playerinfodata(), output); - } - -} - -int PlayerInfoReplyMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 playerId = 1; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - if (has_playerinfodata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->playerinfodata()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PlayerInfoReplyMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void PlayerInfoReplyMessage::MergeFrom(const PlayerInfoReplyMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - if (from.has_playerinfodata()) { - mutable_playerinfodata()->::PlayerInfoReplyMessage_PlayerInfoData::MergeFrom(from.playerinfodata()); - } - } -} - -void PlayerInfoReplyMessage::CopyFrom(const PlayerInfoReplyMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PlayerInfoReplyMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - if (has_playerinfodata()) { - if (!this->playerinfodata().IsInitialized()) return false; - } - return true; -} - -void PlayerInfoReplyMessage::Swap(PlayerInfoReplyMessage* other) { - if (other != this) { - std::swap(playerid_, other->playerid_); - std::swap(playerinfodata_, other->playerinfodata_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string PlayerInfoReplyMessage::GetTypeName() const { - return "PlayerInfoReplyMessage"; -} - - -// =================================================================== - +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PlayerListMessage_PlayerListNotification_strings[2] = {}; + +static const char PlayerListMessage_PlayerListNotification_names[] = + "playerListLeft" + "playerListNew"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PlayerListMessage_PlayerListNotification_entries[] = { + { {PlayerListMessage_PlayerListNotification_names + 0, 14}, 1 }, + { {PlayerListMessage_PlayerListNotification_names + 14, 13}, 0 }, +}; + +static const int PlayerListMessage_PlayerListNotification_entries_by_number[] = { + 1, // 0 -> playerListNew + 0, // 1 -> playerListLeft +}; + +const std::string& PlayerListMessage_PlayerListNotification_Name( + PlayerListMessage_PlayerListNotification value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + PlayerListMessage_PlayerListNotification_entries, + PlayerListMessage_PlayerListNotification_entries_by_number, + 2, PlayerListMessage_PlayerListNotification_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + PlayerListMessage_PlayerListNotification_entries, + PlayerListMessage_PlayerListNotification_entries_by_number, + 2, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + PlayerListMessage_PlayerListNotification_strings[idx].get(); +} +bool PlayerListMessage_PlayerListNotification_Parse( + const std::string& name, PlayerListMessage_PlayerListNotification* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + PlayerListMessage_PlayerListNotification_entries, 2, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr PlayerListMessage_PlayerListNotification PlayerListMessage::playerListNew; +constexpr PlayerListMessage_PlayerListNotification PlayerListMessage::playerListLeft; +constexpr PlayerListMessage_PlayerListNotification PlayerListMessage::PlayerListNotification_MIN; +constexpr PlayerListMessage_PlayerListNotification PlayerListMessage::PlayerListNotification_MAX; +constexpr int PlayerListMessage::PlayerListNotification_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool SubscriptionRequestMessage_SubscriptionAction_IsValid(int value) { - switch(value) { + switch (value) { case 1: case 2: return true; @@ -7334,1195 +2216,56 @@ bool SubscriptionRequestMessage_SubscriptionAction_IsValid(int value) { } } -#ifndef _MSC_VER -const SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::unsubscribeGameList; -const SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::resubscribeGameList; -const SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::SubscriptionAction_MIN; -const SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::SubscriptionAction_MAX; -const int SubscriptionRequestMessage::SubscriptionAction_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int SubscriptionRequestMessage::kSubscriptionActionFieldNumber; -#endif // !_MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed SubscriptionRequestMessage_SubscriptionAction_strings[2] = {}; -SubscriptionRequestMessage::SubscriptionRequestMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); +static const char SubscriptionRequestMessage_SubscriptionAction_names[] = + "resubscribeGameList" + "unsubscribeGameList"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SubscriptionRequestMessage_SubscriptionAction_entries[] = { + { {SubscriptionRequestMessage_SubscriptionAction_names + 0, 19}, 2 }, + { {SubscriptionRequestMessage_SubscriptionAction_names + 19, 19}, 1 }, +}; + +static const int SubscriptionRequestMessage_SubscriptionAction_entries_by_number[] = { + 1, // 1 -> unsubscribeGameList + 0, // 2 -> resubscribeGameList +}; + +const std::string& SubscriptionRequestMessage_SubscriptionAction_Name( + SubscriptionRequestMessage_SubscriptionAction value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + SubscriptionRequestMessage_SubscriptionAction_entries, + SubscriptionRequestMessage_SubscriptionAction_entries_by_number, + 2, SubscriptionRequestMessage_SubscriptionAction_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + SubscriptionRequestMessage_SubscriptionAction_entries, + SubscriptionRequestMessage_SubscriptionAction_entries_by_number, + 2, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + SubscriptionRequestMessage_SubscriptionAction_strings[idx].get(); } - -void SubscriptionRequestMessage::InitAsDefaultInstance() { -} - -SubscriptionRequestMessage::SubscriptionRequestMessage(const SubscriptionRequestMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void SubscriptionRequestMessage::SharedCtor() { - _cached_size_ = 0; - subscriptionaction_ = 1; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -SubscriptionRequestMessage::~SubscriptionRequestMessage() { - SharedDtor(); -} - -void SubscriptionRequestMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif +bool SubscriptionRequestMessage_SubscriptionAction_Parse( + const std::string& name, SubscriptionRequestMessage_SubscriptionAction* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + SubscriptionRequestMessage_SubscriptionAction_entries, 2, name, &int_value); + if (success) { + *value = static_cast(int_value); } -} - -void SubscriptionRequestMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const SubscriptionRequestMessage& SubscriptionRequestMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -SubscriptionRequestMessage* SubscriptionRequestMessage::default_instance_ = NULL; - -SubscriptionRequestMessage* SubscriptionRequestMessage::New() const { - return new SubscriptionRequestMessage; -} - -void SubscriptionRequestMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - subscriptionaction_ = 1; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool SubscriptionRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::SubscriptionRequestMessage_SubscriptionAction_IsValid(value)) { - set_subscriptionaction(static_cast< ::SubscriptionRequestMessage_SubscriptionAction >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void SubscriptionRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - if (has_subscriptionaction()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->subscriptionaction(), output); - } - -} - -int SubscriptionRequestMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - if (has_subscriptionaction()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->subscriptionaction()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SubscriptionRequestMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void SubscriptionRequestMessage::MergeFrom(const SubscriptionRequestMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_subscriptionaction()) { - set_subscriptionaction(from.subscriptionaction()); - } - } -} - -void SubscriptionRequestMessage::CopyFrom(const SubscriptionRequestMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SubscriptionRequestMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void SubscriptionRequestMessage::Swap(SubscriptionRequestMessage* other) { - if (other != this) { - std::swap(subscriptionaction_, other->subscriptionaction_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string SubscriptionRequestMessage::GetTypeName() const { - return "SubscriptionRequestMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int JoinExistingGameMessage::kGameIdFieldNumber; -const int JoinExistingGameMessage::kPasswordFieldNumber; -const int JoinExistingGameMessage::kAutoLeaveFieldNumber; -const int JoinExistingGameMessage::kSpectateOnlyFieldNumber; -#endif // !_MSC_VER - -JoinExistingGameMessage::JoinExistingGameMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void JoinExistingGameMessage::InitAsDefaultInstance() { -} - -JoinExistingGameMessage::JoinExistingGameMessage(const JoinExistingGameMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void JoinExistingGameMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - autoleave_ = false; - spectateonly_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -JoinExistingGameMessage::~JoinExistingGameMessage() { - SharedDtor(); -} - -void JoinExistingGameMessage::SharedDtor() { - if (password_ != &::google::protobuf::internal::kEmptyString) { - delete password_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void JoinExistingGameMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const JoinExistingGameMessage& JoinExistingGameMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -JoinExistingGameMessage* JoinExistingGameMessage::default_instance_ = NULL; - -JoinExistingGameMessage* JoinExistingGameMessage::New() const { - return new JoinExistingGameMessage; -} - -void JoinExistingGameMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - if (has_password()) { - if (password_ != &::google::protobuf::internal::kEmptyString) { - password_->clear(); - } - } - autoleave_ = false; - spectateonly_ = false; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool JoinExistingGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_password; - break; - } - - // optional string password = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_password: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_password())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_autoLeave; - break; - } - - // optional bool autoLeave = 3 [default = false]; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_autoLeave: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &autoleave_))); - set_has_autoleave(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_spectateOnly; - break; - } - - // optional bool spectateOnly = 4 [default = false]; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_spectateOnly: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &spectateonly_))); - set_has_spectateonly(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void JoinExistingGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // optional string password = 2; - if (has_password()) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->password(), output); - } - - // optional bool autoLeave = 3 [default = false]; - if (has_autoleave()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->autoleave(), output); - } - - // optional bool spectateOnly = 4 [default = false]; - if (has_spectateonly()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->spectateonly(), output); - } - -} - -int JoinExistingGameMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // optional string password = 2; - if (has_password()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->password()); - } - - // optional bool autoLeave = 3 [default = false]; - if (has_autoleave()) { - total_size += 1 + 1; - } - - // optional bool spectateOnly = 4 [default = false]; - if (has_spectateonly()) { - total_size += 1 + 1; - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void JoinExistingGameMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void JoinExistingGameMessage::MergeFrom(const JoinExistingGameMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_password()) { - set_password(from.password()); - } - if (from.has_autoleave()) { - set_autoleave(from.autoleave()); - } - if (from.has_spectateonly()) { - set_spectateonly(from.spectateonly()); - } - } -} - -void JoinExistingGameMessage::CopyFrom(const JoinExistingGameMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool JoinExistingGameMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void JoinExistingGameMessage::Swap(JoinExistingGameMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(password_, other->password_); - std::swap(autoleave_, other->autoleave_); - std::swap(spectateonly_, other->spectateonly_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string JoinExistingGameMessage::GetTypeName() const { - return "JoinExistingGameMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int JoinNewGameMessage::kGameInfoFieldNumber; -const int JoinNewGameMessage::kPasswordFieldNumber; -const int JoinNewGameMessage::kAutoLeaveFieldNumber; -#endif // !_MSC_VER - -JoinNewGameMessage::JoinNewGameMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void JoinNewGameMessage::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gameinfo_ = const_cast< ::NetGameInfo*>( - ::NetGameInfo::internal_default_instance()); -#else - gameinfo_ = const_cast< ::NetGameInfo*>(&::NetGameInfo::default_instance()); -#endif -} - -JoinNewGameMessage::JoinNewGameMessage(const JoinNewGameMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void JoinNewGameMessage::SharedCtor() { - _cached_size_ = 0; - gameinfo_ = NULL; - password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - autoleave_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -JoinNewGameMessage::~JoinNewGameMessage() { - SharedDtor(); -} - -void JoinNewGameMessage::SharedDtor() { - if (password_ != &::google::protobuf::internal::kEmptyString) { - delete password_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete gameinfo_; - } -} - -void JoinNewGameMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const JoinNewGameMessage& JoinNewGameMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -JoinNewGameMessage* JoinNewGameMessage::default_instance_ = NULL; - -JoinNewGameMessage* JoinNewGameMessage::New() const { - return new JoinNewGameMessage; -} - -void JoinNewGameMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_gameinfo()) { - if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); - } - if (has_password()) { - if (password_ != &::google::protobuf::internal::kEmptyString) { - password_->clear(); - } - } - autoleave_ = false; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool JoinNewGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .NetGameInfo gameInfo = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gameinfo())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_password; - break; - } - - // optional string password = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_password: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_password())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_autoLeave; - break; - } - - // optional bool autoLeave = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_autoLeave: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &autoleave_))); - set_has_autoleave(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void JoinNewGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .NetGameInfo gameInfo = 1; - if (has_gameinfo()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 1, this->gameinfo(), output); - } - - // optional string password = 2; - if (has_password()) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->password(), output); - } - - // optional bool autoLeave = 3; - if (has_autoleave()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->autoleave(), output); - } - -} - -int JoinNewGameMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .NetGameInfo gameInfo = 1; - if (has_gameinfo()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gameinfo()); - } - - // optional string password = 2; - if (has_password()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->password()); - } - - // optional bool autoLeave = 3; - if (has_autoleave()) { - total_size += 1 + 1; - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void JoinNewGameMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void JoinNewGameMessage::MergeFrom(const JoinNewGameMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameinfo()) { - mutable_gameinfo()->::NetGameInfo::MergeFrom(from.gameinfo()); - } - if (from.has_password()) { - set_password(from.password()); - } - if (from.has_autoleave()) { - set_autoleave(from.autoleave()); - } - } -} - -void JoinNewGameMessage::CopyFrom(const JoinNewGameMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool JoinNewGameMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - if (has_gameinfo()) { - if (!this->gameinfo().IsInitialized()) return false; - } - return true; -} - -void JoinNewGameMessage::Swap(JoinNewGameMessage* other) { - if (other != this) { - std::swap(gameinfo_, other->gameinfo_); - std::swap(password_, other->password_); - std::swap(autoleave_, other->autoleave_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string JoinNewGameMessage::GetTypeName() const { - return "JoinNewGameMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int RejoinExistingGameMessage::kGameIdFieldNumber; -const int RejoinExistingGameMessage::kAutoLeaveFieldNumber; -#endif // !_MSC_VER - -RejoinExistingGameMessage::RejoinExistingGameMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void RejoinExistingGameMessage::InitAsDefaultInstance() { -} - -RejoinExistingGameMessage::RejoinExistingGameMessage(const RejoinExistingGameMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void RejoinExistingGameMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - autoleave_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -RejoinExistingGameMessage::~RejoinExistingGameMessage() { - SharedDtor(); -} - -void RejoinExistingGameMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void RejoinExistingGameMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const RejoinExistingGameMessage& RejoinExistingGameMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -RejoinExistingGameMessage* RejoinExistingGameMessage::default_instance_ = NULL; - -RejoinExistingGameMessage* RejoinExistingGameMessage::New() const { - return new RejoinExistingGameMessage; -} - -void RejoinExistingGameMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - autoleave_ = false; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool RejoinExistingGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_autoLeave; - break; - } - - // optional bool autoLeave = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_autoLeave: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &autoleave_))); - set_has_autoleave(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void RejoinExistingGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // optional bool autoLeave = 2; - if (has_autoleave()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->autoleave(), output); - } - -} - -int RejoinExistingGameMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // optional bool autoLeave = 2; - if (has_autoleave()) { - total_size += 1 + 1; - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void RejoinExistingGameMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void RejoinExistingGameMessage::MergeFrom(const RejoinExistingGameMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_autoleave()) { - set_autoleave(from.autoleave()); - } - } -} - -void RejoinExistingGameMessage::CopyFrom(const RejoinExistingGameMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RejoinExistingGameMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void RejoinExistingGameMessage::Swap(RejoinExistingGameMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(autoleave_, other->autoleave_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string RejoinExistingGameMessage::GetTypeName() const { - return "RejoinExistingGameMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int JoinGameAckMessage::kGameIdFieldNumber; -const int JoinGameAckMessage::kAreYouGameAdminFieldNumber; -const int JoinGameAckMessage::kGameInfoFieldNumber; -const int JoinGameAckMessage::kSpectateOnlyFieldNumber; -#endif // !_MSC_VER - -JoinGameAckMessage::JoinGameAckMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void JoinGameAckMessage::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gameinfo_ = const_cast< ::NetGameInfo*>( - ::NetGameInfo::internal_default_instance()); -#else - gameinfo_ = const_cast< ::NetGameInfo*>(&::NetGameInfo::default_instance()); -#endif -} - -JoinGameAckMessage::JoinGameAckMessage(const JoinGameAckMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void JoinGameAckMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - areyougameadmin_ = false; - gameinfo_ = NULL; - spectateonly_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -JoinGameAckMessage::~JoinGameAckMessage() { - SharedDtor(); -} - -void JoinGameAckMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete gameinfo_; - } -} - -void JoinGameAckMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const JoinGameAckMessage& JoinGameAckMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -JoinGameAckMessage* JoinGameAckMessage::default_instance_ = NULL; - -JoinGameAckMessage* JoinGameAckMessage::New() const { - return new JoinGameAckMessage; -} - -void JoinGameAckMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - areyougameadmin_ = false; - if (has_gameinfo()) { - if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); - } - spectateonly_ = false; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool JoinGameAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_areYouGameAdmin; - break; - } - - // required bool areYouGameAdmin = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_areYouGameAdmin: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &areyougameadmin_))); - set_has_areyougameadmin(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_gameInfo; - break; - } - - // required .NetGameInfo gameInfo = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_gameInfo: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gameinfo())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_spectateOnly; - break; - } - - // optional bool spectateOnly = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_spectateOnly: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &spectateonly_))); - set_has_spectateonly(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void JoinGameAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required bool areYouGameAdmin = 2; - if (has_areyougameadmin()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->areyougameadmin(), output); - } - - // required .NetGameInfo gameInfo = 3; - if (has_gameinfo()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 3, this->gameinfo(), output); - } - - // optional bool spectateOnly = 4; - if (has_spectateonly()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->spectateonly(), output); - } - -} - -int JoinGameAckMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required bool areYouGameAdmin = 2; - if (has_areyougameadmin()) { - total_size += 1 + 1; - } - - // required .NetGameInfo gameInfo = 3; - if (has_gameinfo()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gameinfo()); - } - - // optional bool spectateOnly = 4; - if (has_spectateonly()) { - total_size += 1 + 1; - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void JoinGameAckMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void JoinGameAckMessage::MergeFrom(const JoinGameAckMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_areyougameadmin()) { - set_areyougameadmin(from.areyougameadmin()); - } - if (from.has_gameinfo()) { - mutable_gameinfo()->::NetGameInfo::MergeFrom(from.gameinfo()); - } - if (from.has_spectateonly()) { - set_spectateonly(from.spectateonly()); - } - } -} - -void JoinGameAckMessage::CopyFrom(const JoinGameAckMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool JoinGameAckMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - - if (has_gameinfo()) { - if (!this->gameinfo().IsInitialized()) return false; - } - return true; -} - -void JoinGameAckMessage::Swap(JoinGameAckMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(areyougameadmin_, other->areyougameadmin_); - std::swap(gameinfo_, other->gameinfo_); - std::swap(spectateonly_, other->spectateonly_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string JoinGameAckMessage::GetTypeName() const { - return "JoinGameAckMessage"; -} - - -// =================================================================== - + return success; +} +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::unsubscribeGameList; +constexpr SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::resubscribeGameList; +constexpr SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::SubscriptionAction_MIN; +constexpr SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::SubscriptionAction_MAX; +constexpr int SubscriptionRequestMessage::SubscriptionAction_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool JoinGameFailedMessage_JoinGameFailureReason_IsValid(int value) { - switch(value) { + switch (value) { case 1: case 2: case 3: @@ -8541,467 +2284,96 @@ bool JoinGameFailedMessage_JoinGameFailureReason_IsValid(int value) { } } -#ifndef _MSC_VER -const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::invalidGame; -const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::gameIsFull; -const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::gameIsRunning; -const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::invalidPassword; -const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::notAllowedAsGuest; -const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::notInvited; -const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::gameNameInUse; -const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::badGameName; -const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::invalidSettings; -const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::ipAddressBlocked; -const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::rejoinFailed; -const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::noSpectatorsAllowed; -const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::JoinGameFailureReason_MIN; -const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::JoinGameFailureReason_MAX; -const int JoinGameFailedMessage::JoinGameFailureReason_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int JoinGameFailedMessage::kGameIdFieldNumber; -const int JoinGameFailedMessage::kJoinGameFailureReasonFieldNumber; -#endif // !_MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed JoinGameFailedMessage_JoinGameFailureReason_strings[12] = {}; -JoinGameFailedMessage::JoinGameFailedMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); +static const char JoinGameFailedMessage_JoinGameFailureReason_names[] = + "badGameName" + "gameIsFull" + "gameIsRunning" + "gameNameInUse" + "invalidGame" + "invalidPassword" + "invalidSettings" + "ipAddressBlocked" + "noSpectatorsAllowed" + "notAllowedAsGuest" + "notInvited" + "rejoinFailed"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry JoinGameFailedMessage_JoinGameFailureReason_entries[] = { + { {JoinGameFailedMessage_JoinGameFailureReason_names + 0, 11}, 8 }, + { {JoinGameFailedMessage_JoinGameFailureReason_names + 11, 10}, 2 }, + { {JoinGameFailedMessage_JoinGameFailureReason_names + 21, 13}, 3 }, + { {JoinGameFailedMessage_JoinGameFailureReason_names + 34, 13}, 7 }, + { {JoinGameFailedMessage_JoinGameFailureReason_names + 47, 11}, 1 }, + { {JoinGameFailedMessage_JoinGameFailureReason_names + 58, 15}, 4 }, + { {JoinGameFailedMessage_JoinGameFailureReason_names + 73, 15}, 9 }, + { {JoinGameFailedMessage_JoinGameFailureReason_names + 88, 16}, 10 }, + { {JoinGameFailedMessage_JoinGameFailureReason_names + 104, 19}, 12 }, + { {JoinGameFailedMessage_JoinGameFailureReason_names + 123, 17}, 5 }, + { {JoinGameFailedMessage_JoinGameFailureReason_names + 140, 10}, 6 }, + { {JoinGameFailedMessage_JoinGameFailureReason_names + 150, 12}, 11 }, +}; + +static const int JoinGameFailedMessage_JoinGameFailureReason_entries_by_number[] = { + 4, // 1 -> invalidGame + 1, // 2 -> gameIsFull + 2, // 3 -> gameIsRunning + 5, // 4 -> invalidPassword + 9, // 5 -> notAllowedAsGuest + 10, // 6 -> notInvited + 3, // 7 -> gameNameInUse + 0, // 8 -> badGameName + 6, // 9 -> invalidSettings + 7, // 10 -> ipAddressBlocked + 11, // 11 -> rejoinFailed + 8, // 12 -> noSpectatorsAllowed +}; + +const std::string& JoinGameFailedMessage_JoinGameFailureReason_Name( + JoinGameFailedMessage_JoinGameFailureReason value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + JoinGameFailedMessage_JoinGameFailureReason_entries, + JoinGameFailedMessage_JoinGameFailureReason_entries_by_number, + 12, JoinGameFailedMessage_JoinGameFailureReason_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + JoinGameFailedMessage_JoinGameFailureReason_entries, + JoinGameFailedMessage_JoinGameFailureReason_entries_by_number, + 12, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + JoinGameFailedMessage_JoinGameFailureReason_strings[idx].get(); } - -void JoinGameFailedMessage::InitAsDefaultInstance() { -} - -JoinGameFailedMessage::JoinGameFailedMessage(const JoinGameFailedMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void JoinGameFailedMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - joingamefailurereason_ = 1; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -JoinGameFailedMessage::~JoinGameFailedMessage() { - SharedDtor(); -} - -void JoinGameFailedMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif +bool JoinGameFailedMessage_JoinGameFailureReason_Parse( + const std::string& name, JoinGameFailedMessage_JoinGameFailureReason* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + JoinGameFailedMessage_JoinGameFailureReason_entries, 12, name, &int_value); + if (success) { + *value = static_cast(int_value); } + return success; } - -void JoinGameFailedMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const JoinGameFailedMessage& JoinGameFailedMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -JoinGameFailedMessage* JoinGameFailedMessage::default_instance_ = NULL; - -JoinGameFailedMessage* JoinGameFailedMessage::New() const { - return new JoinGameFailedMessage; -} - -void JoinGameFailedMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - joingamefailurereason_ = 1; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool JoinGameFailedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_joinGameFailureReason; - break; - } - - // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_joinGameFailureReason: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::JoinGameFailedMessage_JoinGameFailureReason_IsValid(value)) { - set_joingamefailurereason(static_cast< ::JoinGameFailedMessage_JoinGameFailureReason >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void JoinGameFailedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - if (has_joingamefailurereason()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->joingamefailurereason(), output); - } - -} - -int JoinGameFailedMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - if (has_joingamefailurereason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->joingamefailurereason()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void JoinGameFailedMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void JoinGameFailedMessage::MergeFrom(const JoinGameFailedMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_joingamefailurereason()) { - set_joingamefailurereason(from.joingamefailurereason()); - } - } -} - -void JoinGameFailedMessage::CopyFrom(const JoinGameFailedMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool JoinGameFailedMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void JoinGameFailedMessage::Swap(JoinGameFailedMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(joingamefailurereason_, other->joingamefailurereason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string JoinGameFailedMessage::GetTypeName() const { - return "JoinGameFailedMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int GamePlayerJoinedMessage::kGameIdFieldNumber; -const int GamePlayerJoinedMessage::kPlayerIdFieldNumber; -const int GamePlayerJoinedMessage::kIsGameAdminFieldNumber; -#endif // !_MSC_VER - -GamePlayerJoinedMessage::GamePlayerJoinedMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void GamePlayerJoinedMessage::InitAsDefaultInstance() { -} - -GamePlayerJoinedMessage::GamePlayerJoinedMessage(const GamePlayerJoinedMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void GamePlayerJoinedMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - isgameadmin_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GamePlayerJoinedMessage::~GamePlayerJoinedMessage() { - SharedDtor(); -} - -void GamePlayerJoinedMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GamePlayerJoinedMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GamePlayerJoinedMessage& GamePlayerJoinedMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GamePlayerJoinedMessage* GamePlayerJoinedMessage::default_instance_ = NULL; - -GamePlayerJoinedMessage* GamePlayerJoinedMessage::New() const { - return new GamePlayerJoinedMessage; -} - -void GamePlayerJoinedMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - playerid_ = 0u; - isgameadmin_ = false; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool GamePlayerJoinedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_isGameAdmin; - break; - } - - // required bool isGameAdmin = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_isGameAdmin: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &isgameadmin_))); - set_has_isgameadmin(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void GamePlayerJoinedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - // required bool isGameAdmin = 3; - if (has_isgameadmin()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->isgameadmin(), output); - } - -} - -int GamePlayerJoinedMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - // required bool isGameAdmin = 3; - if (has_isgameadmin()) { - total_size += 1 + 1; - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GamePlayerJoinedMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void GamePlayerJoinedMessage::MergeFrom(const GamePlayerJoinedMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - if (from.has_isgameadmin()) { - set_isgameadmin(from.isgameadmin()); - } - } -} - -void GamePlayerJoinedMessage::CopyFrom(const GamePlayerJoinedMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GamePlayerJoinedMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - - return true; -} - -void GamePlayerJoinedMessage::Swap(GamePlayerJoinedMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(isgameadmin_, other->isgameadmin_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string GamePlayerJoinedMessage::GetTypeName() const { - return "GamePlayerJoinedMessage"; -} - - -// =================================================================== - +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::invalidGame; +constexpr JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::gameIsFull; +constexpr JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::gameIsRunning; +constexpr JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::invalidPassword; +constexpr JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::notAllowedAsGuest; +constexpr JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::notInvited; +constexpr JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::gameNameInUse; +constexpr JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::badGameName; +constexpr JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::invalidSettings; +constexpr JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::ipAddressBlocked; +constexpr JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::rejoinFailed; +constexpr JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::noSpectatorsAllowed; +constexpr JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::JoinGameFailureReason_MIN; +constexpr JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::JoinGameFailureReason_MAX; +constexpr int JoinGameFailedMessage::JoinGameFailureReason_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -9011,904 +2383,60 @@ bool GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(int value) { } } -#ifndef _MSC_VER -const GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::leftOnRequest; -const GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::leftKicked; -const GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::leftError; -const GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::GamePlayerLeftReason_MIN; -const GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::GamePlayerLeftReason_MAX; -const int GamePlayerLeftMessage::GamePlayerLeftReason_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int GamePlayerLeftMessage::kGameIdFieldNumber; -const int GamePlayerLeftMessage::kPlayerIdFieldNumber; -const int GamePlayerLeftMessage::kGamePlayerLeftReasonFieldNumber; -#endif // !_MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed GamePlayerLeftMessage_GamePlayerLeftReason_strings[3] = {}; -GamePlayerLeftMessage::GamePlayerLeftMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); +static const char GamePlayerLeftMessage_GamePlayerLeftReason_names[] = + "leftError" + "leftKicked" + "leftOnRequest"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry GamePlayerLeftMessage_GamePlayerLeftReason_entries[] = { + { {GamePlayerLeftMessage_GamePlayerLeftReason_names + 0, 9}, 2 }, + { {GamePlayerLeftMessage_GamePlayerLeftReason_names + 9, 10}, 1 }, + { {GamePlayerLeftMessage_GamePlayerLeftReason_names + 19, 13}, 0 }, +}; + +static const int GamePlayerLeftMessage_GamePlayerLeftReason_entries_by_number[] = { + 2, // 0 -> leftOnRequest + 1, // 1 -> leftKicked + 0, // 2 -> leftError +}; + +const std::string& GamePlayerLeftMessage_GamePlayerLeftReason_Name( + GamePlayerLeftMessage_GamePlayerLeftReason value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + GamePlayerLeftMessage_GamePlayerLeftReason_entries, + GamePlayerLeftMessage_GamePlayerLeftReason_entries_by_number, + 3, GamePlayerLeftMessage_GamePlayerLeftReason_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + GamePlayerLeftMessage_GamePlayerLeftReason_entries, + GamePlayerLeftMessage_GamePlayerLeftReason_entries_by_number, + 3, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + GamePlayerLeftMessage_GamePlayerLeftReason_strings[idx].get(); } - -void GamePlayerLeftMessage::InitAsDefaultInstance() { -} - -GamePlayerLeftMessage::GamePlayerLeftMessage(const GamePlayerLeftMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void GamePlayerLeftMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - gameplayerleftreason_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GamePlayerLeftMessage::~GamePlayerLeftMessage() { - SharedDtor(); -} - -void GamePlayerLeftMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif +bool GamePlayerLeftMessage_GamePlayerLeftReason_Parse( + const std::string& name, GamePlayerLeftMessage_GamePlayerLeftReason* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + GamePlayerLeftMessage_GamePlayerLeftReason_entries, 3, name, &int_value); + if (success) { + *value = static_cast(int_value); } -} - -void GamePlayerLeftMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GamePlayerLeftMessage& GamePlayerLeftMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GamePlayerLeftMessage* GamePlayerLeftMessage::default_instance_ = NULL; - -GamePlayerLeftMessage* GamePlayerLeftMessage::New() const { - return new GamePlayerLeftMessage; -} - -void GamePlayerLeftMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - playerid_ = 0u; - gameplayerleftreason_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool GamePlayerLeftMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_gamePlayerLeftReason; - break; - } - - // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_gamePlayerLeftReason: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(value)) { - set_gameplayerleftreason(static_cast< ::GamePlayerLeftMessage_GamePlayerLeftReason >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void GamePlayerLeftMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - if (has_gameplayerleftreason()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->gameplayerleftreason(), output); - } - -} - -int GamePlayerLeftMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - if (has_gameplayerleftreason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gameplayerleftreason()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GamePlayerLeftMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void GamePlayerLeftMessage::MergeFrom(const GamePlayerLeftMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - if (from.has_gameplayerleftreason()) { - set_gameplayerleftreason(from.gameplayerleftreason()); - } - } -} - -void GamePlayerLeftMessage::CopyFrom(const GamePlayerLeftMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GamePlayerLeftMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - - return true; -} - -void GamePlayerLeftMessage::Swap(GamePlayerLeftMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(gameplayerleftreason_, other->gameplayerleftreason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string GamePlayerLeftMessage::GetTypeName() const { - return "GamePlayerLeftMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int GameSpectatorJoinedMessage::kGameIdFieldNumber; -const int GameSpectatorJoinedMessage::kPlayerIdFieldNumber; -#endif // !_MSC_VER - -GameSpectatorJoinedMessage::GameSpectatorJoinedMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void GameSpectatorJoinedMessage::InitAsDefaultInstance() { -} - -GameSpectatorJoinedMessage::GameSpectatorJoinedMessage(const GameSpectatorJoinedMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void GameSpectatorJoinedMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameSpectatorJoinedMessage::~GameSpectatorJoinedMessage() { - SharedDtor(); -} - -void GameSpectatorJoinedMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameSpectatorJoinedMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameSpectatorJoinedMessage& GameSpectatorJoinedMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameSpectatorJoinedMessage* GameSpectatorJoinedMessage::default_instance_ = NULL; - -GameSpectatorJoinedMessage* GameSpectatorJoinedMessage::New() const { - return new GameSpectatorJoinedMessage; -} - -void GameSpectatorJoinedMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - playerid_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool GameSpectatorJoinedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void GameSpectatorJoinedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - -} - -int GameSpectatorJoinedMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GameSpectatorJoinedMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void GameSpectatorJoinedMessage::MergeFrom(const GameSpectatorJoinedMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - } -} - -void GameSpectatorJoinedMessage::CopyFrom(const GameSpectatorJoinedMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameSpectatorJoinedMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void GameSpectatorJoinedMessage::Swap(GameSpectatorJoinedMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string GameSpectatorJoinedMessage::GetTypeName() const { - return "GameSpectatorJoinedMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int GameSpectatorLeftMessage::kGameIdFieldNumber; -const int GameSpectatorLeftMessage::kPlayerIdFieldNumber; -const int GameSpectatorLeftMessage::kGameSpectatorLeftReasonFieldNumber; -#endif // !_MSC_VER - -GameSpectatorLeftMessage::GameSpectatorLeftMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void GameSpectatorLeftMessage::InitAsDefaultInstance() { -} - -GameSpectatorLeftMessage::GameSpectatorLeftMessage(const GameSpectatorLeftMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void GameSpectatorLeftMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - gamespectatorleftreason_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameSpectatorLeftMessage::~GameSpectatorLeftMessage() { - SharedDtor(); -} - -void GameSpectatorLeftMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameSpectatorLeftMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameSpectatorLeftMessage& GameSpectatorLeftMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameSpectatorLeftMessage* GameSpectatorLeftMessage::default_instance_ = NULL; - -GameSpectatorLeftMessage* GameSpectatorLeftMessage::New() const { - return new GameSpectatorLeftMessage; -} - -void GameSpectatorLeftMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - playerid_ = 0u; - gamespectatorleftreason_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool GameSpectatorLeftMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_gameSpectatorLeftReason; - break; - } - - // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_gameSpectatorLeftReason: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(value)) { - set_gamespectatorleftreason(static_cast< ::GamePlayerLeftMessage_GamePlayerLeftReason >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void GameSpectatorLeftMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - if (has_gamespectatorleftreason()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->gamespectatorleftreason(), output); - } - -} - -int GameSpectatorLeftMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - if (has_gamespectatorleftreason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamespectatorleftreason()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GameSpectatorLeftMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void GameSpectatorLeftMessage::MergeFrom(const GameSpectatorLeftMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - if (from.has_gamespectatorleftreason()) { - set_gamespectatorleftreason(from.gamespectatorleftreason()); - } - } -} - -void GameSpectatorLeftMessage::CopyFrom(const GameSpectatorLeftMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameSpectatorLeftMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - - return true; -} - -void GameSpectatorLeftMessage::Swap(GameSpectatorLeftMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(gamespectatorleftreason_, other->gamespectatorleftreason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string GameSpectatorLeftMessage::GetTypeName() const { - return "GameSpectatorLeftMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int GameAdminChangedMessage::kGameIdFieldNumber; -const int GameAdminChangedMessage::kNewAdminPlayerIdFieldNumber; -#endif // !_MSC_VER - -GameAdminChangedMessage::GameAdminChangedMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void GameAdminChangedMessage::InitAsDefaultInstance() { -} - -GameAdminChangedMessage::GameAdminChangedMessage(const GameAdminChangedMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void GameAdminChangedMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - newadminplayerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameAdminChangedMessage::~GameAdminChangedMessage() { - SharedDtor(); -} - -void GameAdminChangedMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameAdminChangedMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameAdminChangedMessage& GameAdminChangedMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameAdminChangedMessage* GameAdminChangedMessage::default_instance_ = NULL; - -GameAdminChangedMessage* GameAdminChangedMessage::New() const { - return new GameAdminChangedMessage; -} - -void GameAdminChangedMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - newadminplayerid_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool GameAdminChangedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_newAdminPlayerId; - break; - } - - // required uint32 newAdminPlayerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_newAdminPlayerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &newadminplayerid_))); - set_has_newadminplayerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void GameAdminChangedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 newAdminPlayerId = 2; - if (has_newadminplayerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->newadminplayerid(), output); - } - -} - -int GameAdminChangedMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 newAdminPlayerId = 2; - if (has_newadminplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->newadminplayerid()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GameAdminChangedMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void GameAdminChangedMessage::MergeFrom(const GameAdminChangedMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_newadminplayerid()) { - set_newadminplayerid(from.newadminplayerid()); - } - } -} - -void GameAdminChangedMessage::CopyFrom(const GameAdminChangedMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameAdminChangedMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void GameAdminChangedMessage::Swap(GameAdminChangedMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(newadminplayerid_, other->newadminplayerid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string GameAdminChangedMessage::GetTypeName() const { - return "GameAdminChangedMessage"; -} - - -// =================================================================== - + return success; +} +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::leftOnRequest; +constexpr GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::leftKicked; +constexpr GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::leftError; +constexpr GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::GamePlayerLeftReason_MIN; +constexpr GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::GamePlayerLeftReason_MAX; +constexpr int GamePlayerLeftMessage::GamePlayerLeftReason_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool RemovedFromGameMessage_RemovedFromGameReason_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -9922,1038 +2450,76 @@ bool RemovedFromGameMessage_RemovedFromGameReason_IsValid(int value) { } } -#ifndef _MSC_VER -const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::removedOnRequest; -const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::kickedFromGame; -const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::gameIsFull; -const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::gameIsRunning; -const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::gameTimeout; -const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::removedStartFailed; -const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::gameClosed; -const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::RemovedFromGameReason_MIN; -const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::RemovedFromGameReason_MAX; -const int RemovedFromGameMessage::RemovedFromGameReason_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int RemovedFromGameMessage::kGameIdFieldNumber; -const int RemovedFromGameMessage::kRemovedFromGameReasonFieldNumber; -#endif // !_MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed RemovedFromGameMessage_RemovedFromGameReason_strings[7] = {}; -RemovedFromGameMessage::RemovedFromGameMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); +static const char RemovedFromGameMessage_RemovedFromGameReason_names[] = + "gameClosed" + "gameIsFull" + "gameIsRunning" + "gameTimeout" + "kickedFromGame" + "removedOnRequest" + "removedStartFailed"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry RemovedFromGameMessage_RemovedFromGameReason_entries[] = { + { {RemovedFromGameMessage_RemovedFromGameReason_names + 0, 10}, 6 }, + { {RemovedFromGameMessage_RemovedFromGameReason_names + 10, 10}, 2 }, + { {RemovedFromGameMessage_RemovedFromGameReason_names + 20, 13}, 3 }, + { {RemovedFromGameMessage_RemovedFromGameReason_names + 33, 11}, 4 }, + { {RemovedFromGameMessage_RemovedFromGameReason_names + 44, 14}, 1 }, + { {RemovedFromGameMessage_RemovedFromGameReason_names + 58, 16}, 0 }, + { {RemovedFromGameMessage_RemovedFromGameReason_names + 74, 18}, 5 }, +}; + +static const int RemovedFromGameMessage_RemovedFromGameReason_entries_by_number[] = { + 5, // 0 -> removedOnRequest + 4, // 1 -> kickedFromGame + 1, // 2 -> gameIsFull + 2, // 3 -> gameIsRunning + 3, // 4 -> gameTimeout + 6, // 5 -> removedStartFailed + 0, // 6 -> gameClosed +}; + +const std::string& RemovedFromGameMessage_RemovedFromGameReason_Name( + RemovedFromGameMessage_RemovedFromGameReason value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + RemovedFromGameMessage_RemovedFromGameReason_entries, + RemovedFromGameMessage_RemovedFromGameReason_entries_by_number, + 7, RemovedFromGameMessage_RemovedFromGameReason_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + RemovedFromGameMessage_RemovedFromGameReason_entries, + RemovedFromGameMessage_RemovedFromGameReason_entries_by_number, + 7, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + RemovedFromGameMessage_RemovedFromGameReason_strings[idx].get(); } - -void RemovedFromGameMessage::InitAsDefaultInstance() { -} - -RemovedFromGameMessage::RemovedFromGameMessage(const RemovedFromGameMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void RemovedFromGameMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - removedfromgamereason_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -RemovedFromGameMessage::~RemovedFromGameMessage() { - SharedDtor(); -} - -void RemovedFromGameMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif +bool RemovedFromGameMessage_RemovedFromGameReason_Parse( + const std::string& name, RemovedFromGameMessage_RemovedFromGameReason* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + RemovedFromGameMessage_RemovedFromGameReason_entries, 7, name, &int_value); + if (success) { + *value = static_cast(int_value); } -} - -void RemovedFromGameMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const RemovedFromGameMessage& RemovedFromGameMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -RemovedFromGameMessage* RemovedFromGameMessage::default_instance_ = NULL; - -RemovedFromGameMessage* RemovedFromGameMessage::New() const { - return new RemovedFromGameMessage; -} - -void RemovedFromGameMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - removedfromgamereason_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool RemovedFromGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_removedFromGameReason; - break; - } - - // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_removedFromGameReason: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::RemovedFromGameMessage_RemovedFromGameReason_IsValid(value)) { - set_removedfromgamereason(static_cast< ::RemovedFromGameMessage_RemovedFromGameReason >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void RemovedFromGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - if (has_removedfromgamereason()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->removedfromgamereason(), output); - } - -} - -int RemovedFromGameMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - if (has_removedfromgamereason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->removedfromgamereason()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void RemovedFromGameMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void RemovedFromGameMessage::MergeFrom(const RemovedFromGameMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_removedfromgamereason()) { - set_removedfromgamereason(from.removedfromgamereason()); - } - } -} - -void RemovedFromGameMessage::CopyFrom(const RemovedFromGameMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RemovedFromGameMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void RemovedFromGameMessage::Swap(RemovedFromGameMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(removedfromgamereason_, other->removedfromgamereason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string RemovedFromGameMessage::GetTypeName() const { - return "RemovedFromGameMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int KickPlayerRequestMessage::kGameIdFieldNumber; -const int KickPlayerRequestMessage::kPlayerIdFieldNumber; -#endif // !_MSC_VER - -KickPlayerRequestMessage::KickPlayerRequestMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void KickPlayerRequestMessage::InitAsDefaultInstance() { -} - -KickPlayerRequestMessage::KickPlayerRequestMessage(const KickPlayerRequestMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void KickPlayerRequestMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -KickPlayerRequestMessage::~KickPlayerRequestMessage() { - SharedDtor(); -} - -void KickPlayerRequestMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void KickPlayerRequestMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const KickPlayerRequestMessage& KickPlayerRequestMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -KickPlayerRequestMessage* KickPlayerRequestMessage::default_instance_ = NULL; - -KickPlayerRequestMessage* KickPlayerRequestMessage::New() const { - return new KickPlayerRequestMessage; -} - -void KickPlayerRequestMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - playerid_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool KickPlayerRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void KickPlayerRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - -} - -int KickPlayerRequestMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void KickPlayerRequestMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void KickPlayerRequestMessage::MergeFrom(const KickPlayerRequestMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - } -} - -void KickPlayerRequestMessage::CopyFrom(const KickPlayerRequestMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool KickPlayerRequestMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void KickPlayerRequestMessage::Swap(KickPlayerRequestMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string KickPlayerRequestMessage::GetTypeName() const { - return "KickPlayerRequestMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int LeaveGameRequestMessage::kGameIdFieldNumber; -#endif // !_MSC_VER - -LeaveGameRequestMessage::LeaveGameRequestMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void LeaveGameRequestMessage::InitAsDefaultInstance() { -} - -LeaveGameRequestMessage::LeaveGameRequestMessage(const LeaveGameRequestMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void LeaveGameRequestMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -LeaveGameRequestMessage::~LeaveGameRequestMessage() { - SharedDtor(); -} - -void LeaveGameRequestMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void LeaveGameRequestMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const LeaveGameRequestMessage& LeaveGameRequestMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -LeaveGameRequestMessage* LeaveGameRequestMessage::default_instance_ = NULL; - -LeaveGameRequestMessage* LeaveGameRequestMessage::New() const { - return new LeaveGameRequestMessage; -} - -void LeaveGameRequestMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool LeaveGameRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void LeaveGameRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - -} - -int LeaveGameRequestMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void LeaveGameRequestMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void LeaveGameRequestMessage::MergeFrom(const LeaveGameRequestMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - } -} - -void LeaveGameRequestMessage::CopyFrom(const LeaveGameRequestMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LeaveGameRequestMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void LeaveGameRequestMessage::Swap(LeaveGameRequestMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string LeaveGameRequestMessage::GetTypeName() const { - return "LeaveGameRequestMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int InvitePlayerToGameMessage::kGameIdFieldNumber; -const int InvitePlayerToGameMessage::kPlayerIdFieldNumber; -#endif // !_MSC_VER - -InvitePlayerToGameMessage::InvitePlayerToGameMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void InvitePlayerToGameMessage::InitAsDefaultInstance() { -} - -InvitePlayerToGameMessage::InvitePlayerToGameMessage(const InvitePlayerToGameMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void InvitePlayerToGameMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -InvitePlayerToGameMessage::~InvitePlayerToGameMessage() { - SharedDtor(); -} - -void InvitePlayerToGameMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void InvitePlayerToGameMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const InvitePlayerToGameMessage& InvitePlayerToGameMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -InvitePlayerToGameMessage* InvitePlayerToGameMessage::default_instance_ = NULL; - -InvitePlayerToGameMessage* InvitePlayerToGameMessage::New() const { - return new InvitePlayerToGameMessage; -} - -void InvitePlayerToGameMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - playerid_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool InvitePlayerToGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void InvitePlayerToGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - -} - -int InvitePlayerToGameMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void InvitePlayerToGameMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void InvitePlayerToGameMessage::MergeFrom(const InvitePlayerToGameMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - } -} - -void InvitePlayerToGameMessage::CopyFrom(const InvitePlayerToGameMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InvitePlayerToGameMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void InvitePlayerToGameMessage::Swap(InvitePlayerToGameMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string InvitePlayerToGameMessage::GetTypeName() const { - return "InvitePlayerToGameMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int InviteNotifyMessage::kGameIdFieldNumber; -const int InviteNotifyMessage::kPlayerIdWhoFieldNumber; -const int InviteNotifyMessage::kPlayerIdByWhomFieldNumber; -#endif // !_MSC_VER - -InviteNotifyMessage::InviteNotifyMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void InviteNotifyMessage::InitAsDefaultInstance() { -} - -InviteNotifyMessage::InviteNotifyMessage(const InviteNotifyMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void InviteNotifyMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playeridwho_ = 0u; - playeridbywhom_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -InviteNotifyMessage::~InviteNotifyMessage() { - SharedDtor(); -} - -void InviteNotifyMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void InviteNotifyMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const InviteNotifyMessage& InviteNotifyMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -InviteNotifyMessage* InviteNotifyMessage::default_instance_ = NULL; - -InviteNotifyMessage* InviteNotifyMessage::New() const { - return new InviteNotifyMessage; -} - -void InviteNotifyMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - playeridwho_ = 0u; - playeridbywhom_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool InviteNotifyMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerIdWho; - break; - } - - // required uint32 playerIdWho = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerIdWho: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playeridwho_))); - set_has_playeridwho(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_playerIdByWhom; - break; - } - - // required uint32 playerIdByWhom = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerIdByWhom: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playeridbywhom_))); - set_has_playeridbywhom(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void InviteNotifyMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerIdWho = 2; - if (has_playeridwho()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playeridwho(), output); - } - - // required uint32 playerIdByWhom = 3; - if (has_playeridbywhom()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->playeridbywhom(), output); - } - -} - -int InviteNotifyMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 playerIdWho = 2; - if (has_playeridwho()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playeridwho()); - } - - // required uint32 playerIdByWhom = 3; - if (has_playeridbywhom()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playeridbywhom()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void InviteNotifyMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void InviteNotifyMessage::MergeFrom(const InviteNotifyMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_playeridwho()) { - set_playeridwho(from.playeridwho()); - } - if (from.has_playeridbywhom()) { - set_playeridbywhom(from.playeridbywhom()); - } - } -} - -void InviteNotifyMessage::CopyFrom(const InviteNotifyMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InviteNotifyMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - - return true; -} - -void InviteNotifyMessage::Swap(InviteNotifyMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(playeridwho_, other->playeridwho_); - std::swap(playeridbywhom_, other->playeridbywhom_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string InviteNotifyMessage::GetTypeName() const { - return "InviteNotifyMessage"; -} - - -// =================================================================== - + return success; +} +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::removedOnRequest; +constexpr RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::kickedFromGame; +constexpr RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::gameIsFull; +constexpr RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::gameIsRunning; +constexpr RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::gameTimeout; +constexpr RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::removedStartFailed; +constexpr RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::gameClosed; +constexpr RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::RemovedFromGameReason_MIN; +constexpr RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::RemovedFromGameReason_MAX; +constexpr int RemovedFromGameMessage::RemovedFromGameReason_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool RejectGameInvitationMessage_RejectGameInvReason_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: return true; @@ -10962,3227 +2528,114 @@ bool RejectGameInvitationMessage_RejectGameInvReason_IsValid(int value) { } } -#ifndef _MSC_VER -const RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::rejectReasonNo; -const RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::rejectReasonBusy; -const RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::RejectGameInvReason_MIN; -const RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::RejectGameInvReason_MAX; -const int RejectGameInvitationMessage::RejectGameInvReason_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int RejectGameInvitationMessage::kGameIdFieldNumber; -const int RejectGameInvitationMessage::kMyRejectReasonFieldNumber; -#endif // !_MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed RejectGameInvitationMessage_RejectGameInvReason_strings[2] = {}; -RejectGameInvitationMessage::RejectGameInvitationMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); +static const char RejectGameInvitationMessage_RejectGameInvReason_names[] = + "rejectReasonBusy" + "rejectReasonNo"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry RejectGameInvitationMessage_RejectGameInvReason_entries[] = { + { {RejectGameInvitationMessage_RejectGameInvReason_names + 0, 16}, 1 }, + { {RejectGameInvitationMessage_RejectGameInvReason_names + 16, 14}, 0 }, +}; + +static const int RejectGameInvitationMessage_RejectGameInvReason_entries_by_number[] = { + 1, // 0 -> rejectReasonNo + 0, // 1 -> rejectReasonBusy +}; + +const std::string& RejectGameInvitationMessage_RejectGameInvReason_Name( + RejectGameInvitationMessage_RejectGameInvReason value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + RejectGameInvitationMessage_RejectGameInvReason_entries, + RejectGameInvitationMessage_RejectGameInvReason_entries_by_number, + 2, RejectGameInvitationMessage_RejectGameInvReason_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + RejectGameInvitationMessage_RejectGameInvReason_entries, + RejectGameInvitationMessage_RejectGameInvReason_entries_by_number, + 2, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + RejectGameInvitationMessage_RejectGameInvReason_strings[idx].get(); } - -void RejectGameInvitationMessage::InitAsDefaultInstance() { -} - -RejectGameInvitationMessage::RejectGameInvitationMessage(const RejectGameInvitationMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void RejectGameInvitationMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - myrejectreason_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -RejectGameInvitationMessage::~RejectGameInvitationMessage() { - SharedDtor(); -} - -void RejectGameInvitationMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif +bool RejectGameInvitationMessage_RejectGameInvReason_Parse( + const std::string& name, RejectGameInvitationMessage_RejectGameInvReason* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + RejectGameInvitationMessage_RejectGameInvReason_entries, 2, name, &int_value); + if (success) { + *value = static_cast(int_value); } + return success; } - -void RejectGameInvitationMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const RejectGameInvitationMessage& RejectGameInvitationMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -RejectGameInvitationMessage* RejectGameInvitationMessage::default_instance_ = NULL; - -RejectGameInvitationMessage* RejectGameInvitationMessage::New() const { - return new RejectGameInvitationMessage; -} - -void RejectGameInvitationMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - myrejectreason_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool RejectGameInvitationMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_myRejectReason; - break; - } - - // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_myRejectReason: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::RejectGameInvitationMessage_RejectGameInvReason_IsValid(value)) { - set_myrejectreason(static_cast< ::RejectGameInvitationMessage_RejectGameInvReason >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void RejectGameInvitationMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - if (has_myrejectreason()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->myrejectreason(), output); - } - -} - -int RejectGameInvitationMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - if (has_myrejectreason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->myrejectreason()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void RejectGameInvitationMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void RejectGameInvitationMessage::MergeFrom(const RejectGameInvitationMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_myrejectreason()) { - set_myrejectreason(from.myrejectreason()); - } - } -} - -void RejectGameInvitationMessage::CopyFrom(const RejectGameInvitationMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RejectGameInvitationMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void RejectGameInvitationMessage::Swap(RejectGameInvitationMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(myrejectreason_, other->myrejectreason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string RejectGameInvitationMessage::GetTypeName() const { - return "RejectGameInvitationMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int RejectInvNotifyMessage::kGameIdFieldNumber; -const int RejectInvNotifyMessage::kPlayerIdFieldNumber; -const int RejectInvNotifyMessage::kPlayerRejectReasonFieldNumber; -#endif // !_MSC_VER - -RejectInvNotifyMessage::RejectInvNotifyMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void RejectInvNotifyMessage::InitAsDefaultInstance() { -} - -RejectInvNotifyMessage::RejectInvNotifyMessage(const RejectInvNotifyMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void RejectInvNotifyMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - playerrejectreason_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -RejectInvNotifyMessage::~RejectInvNotifyMessage() { - SharedDtor(); -} - -void RejectInvNotifyMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void RejectInvNotifyMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const RejectInvNotifyMessage& RejectInvNotifyMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -RejectInvNotifyMessage* RejectInvNotifyMessage::default_instance_ = NULL; - -RejectInvNotifyMessage* RejectInvNotifyMessage::New() const { - return new RejectInvNotifyMessage; -} - -void RejectInvNotifyMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - playerid_ = 0u; - playerrejectreason_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool RejectInvNotifyMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_playerRejectReason; - break; - } - - // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerRejectReason: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::RejectGameInvitationMessage_RejectGameInvReason_IsValid(value)) { - set_playerrejectreason(static_cast< ::RejectGameInvitationMessage_RejectGameInvReason >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void RejectInvNotifyMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - if (has_playerrejectreason()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->playerrejectreason(), output); - } - -} - -int RejectInvNotifyMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - if (has_playerrejectreason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->playerrejectreason()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void RejectInvNotifyMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void RejectInvNotifyMessage::MergeFrom(const RejectInvNotifyMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - if (from.has_playerrejectreason()) { - set_playerrejectreason(from.playerrejectreason()); - } - } -} - -void RejectInvNotifyMessage::CopyFrom(const RejectInvNotifyMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RejectInvNotifyMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - - return true; -} - -void RejectInvNotifyMessage::Swap(RejectInvNotifyMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(playerrejectreason_, other->playerrejectreason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string RejectInvNotifyMessage::GetTypeName() const { - return "RejectInvNotifyMessage"; -} - - -// =================================================================== - +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::rejectReasonNo; +constexpr RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::rejectReasonBusy; +constexpr RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::RejectGameInvReason_MIN; +constexpr RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::RejectGameInvReason_MAX; +constexpr int RejectGameInvitationMessage::RejectGameInvReason_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool StartEventMessage_StartEventType_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: - case 2: return true; default: return false; } } -#ifndef _MSC_VER -const StartEventMessage_StartEventType StartEventMessage::startEvent; -const StartEventMessage_StartEventType StartEventMessage::rejoinEvent; -const StartEventMessage_StartEventType StartEventMessage::reentryEvent; -const StartEventMessage_StartEventType StartEventMessage::StartEventType_MIN; -const StartEventMessage_StartEventType StartEventMessage::StartEventType_MAX; -const int StartEventMessage::StartEventType_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int StartEventMessage::kGameIdFieldNumber; -const int StartEventMessage::kStartEventTypeFieldNumber; -const int StartEventMessage::kFillWithComputerPlayersFieldNumber; -#endif // !_MSC_VER - -StartEventMessage::StartEventMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void StartEventMessage::InitAsDefaultInstance() { -} - -StartEventMessage::StartEventMessage(const StartEventMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void StartEventMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - starteventtype_ = 0; - fillwithcomputerplayers_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -StartEventMessage::~StartEventMessage() { - SharedDtor(); -} - -void StartEventMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void StartEventMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const StartEventMessage& StartEventMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -StartEventMessage* StartEventMessage::default_instance_ = NULL; - -StartEventMessage* StartEventMessage::New() const { - return new StartEventMessage; -} - -void StartEventMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - starteventtype_ = 0; - fillwithcomputerplayers_ = false; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool StartEventMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_startEventType; - break; - } - - // required .StartEventMessage.StartEventType startEventType = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_startEventType: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::StartEventMessage_StartEventType_IsValid(value)) { - set_starteventtype(static_cast< ::StartEventMessage_StartEventType >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_fillWithComputerPlayers; - break; - } - - // optional bool fillWithComputerPlayers = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_fillWithComputerPlayers: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &fillwithcomputerplayers_))); - set_has_fillwithcomputerplayers(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void StartEventMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required .StartEventMessage.StartEventType startEventType = 2; - if (has_starteventtype()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->starteventtype(), output); - } - - // optional bool fillWithComputerPlayers = 3; - if (has_fillwithcomputerplayers()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->fillwithcomputerplayers(), output); - } - -} - -int StartEventMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required .StartEventMessage.StartEventType startEventType = 2; - if (has_starteventtype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->starteventtype()); - } - - // optional bool fillWithComputerPlayers = 3; - if (has_fillwithcomputerplayers()) { - total_size += 1 + 1; - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void StartEventMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void StartEventMessage::MergeFrom(const StartEventMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_starteventtype()) { - set_starteventtype(from.starteventtype()); - } - if (from.has_fillwithcomputerplayers()) { - set_fillwithcomputerplayers(from.fillwithcomputerplayers()); - } - } -} - -void StartEventMessage::CopyFrom(const StartEventMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StartEventMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void StartEventMessage::Swap(StartEventMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(starteventtype_, other->starteventtype_); - std::swap(fillwithcomputerplayers_, other->fillwithcomputerplayers_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string StartEventMessage::GetTypeName() const { - return "StartEventMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int StartEventAckMessage::kGameIdFieldNumber; -#endif // !_MSC_VER - -StartEventAckMessage::StartEventAckMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void StartEventAckMessage::InitAsDefaultInstance() { -} - -StartEventAckMessage::StartEventAckMessage(const StartEventAckMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void StartEventAckMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -StartEventAckMessage::~StartEventAckMessage() { - SharedDtor(); -} - -void StartEventAckMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void StartEventAckMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const StartEventAckMessage& StartEventAckMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -StartEventAckMessage* StartEventAckMessage::default_instance_ = NULL; - -StartEventAckMessage* StartEventAckMessage::New() const { - return new StartEventAckMessage; -} - -void StartEventAckMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool StartEventAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void StartEventAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - -} - -int StartEventAckMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void StartEventAckMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void StartEventAckMessage::MergeFrom(const StartEventAckMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - } -} - -void StartEventAckMessage::CopyFrom(const StartEventAckMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StartEventAckMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void StartEventAckMessage::Swap(StartEventAckMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string StartEventAckMessage::GetTypeName() const { - return "StartEventAckMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int GameStartInitialMessage::kGameIdFieldNumber; -const int GameStartInitialMessage::kStartDealerPlayerIdFieldNumber; -const int GameStartInitialMessage::kPlayerSeatsFieldNumber; -#endif // !_MSC_VER - -GameStartInitialMessage::GameStartInitialMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void GameStartInitialMessage::InitAsDefaultInstance() { -} - -GameStartInitialMessage::GameStartInitialMessage(const GameStartInitialMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void GameStartInitialMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - startdealerplayerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameStartInitialMessage::~GameStartInitialMessage() { - SharedDtor(); -} - -void GameStartInitialMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameStartInitialMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameStartInitialMessage& GameStartInitialMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameStartInitialMessage* GameStartInitialMessage::default_instance_ = NULL; - -GameStartInitialMessage* GameStartInitialMessage::New() const { - return new GameStartInitialMessage; -} - -void GameStartInitialMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - startdealerplayerid_ = 0u; - } - playerseats_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool GameStartInitialMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_startDealerPlayerId; - break; - } - - // required uint32 startDealerPlayerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_startDealerPlayerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &startdealerplayerid_))); - set_has_startdealerplayerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_playerSeats; - break; - } - - // repeated uint32 playerSeats = 3 [packed = true]; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_playerSeats: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_playerseats()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 26, input, this->mutable_playerseats()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void GameStartInitialMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 startDealerPlayerId = 2; - if (has_startdealerplayerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->startdealerplayerid(), output); - } - - // repeated uint32 playerSeats = 3 [packed = true]; - if (this->playerseats_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_playerseats_cached_byte_size_); - } - for (int i = 0; i < this->playerseats_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->playerseats(i), output); - } - -} - -int GameStartInitialMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 startDealerPlayerId = 2; - if (has_startdealerplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->startdealerplayerid()); - } - - } - // repeated uint32 playerSeats = 3 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->playerseats_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->playerseats(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _playerseats_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GameStartInitialMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void GameStartInitialMessage::MergeFrom(const GameStartInitialMessage& from) { - GOOGLE_CHECK_NE(&from, this); - playerseats_.MergeFrom(from.playerseats_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_startdealerplayerid()) { - set_startdealerplayerid(from.startdealerplayerid()); - } - } -} - -void GameStartInitialMessage::CopyFrom(const GameStartInitialMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameStartInitialMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void GameStartInitialMessage::Swap(GameStartInitialMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(startdealerplayerid_, other->startdealerplayerid_); - playerseats_.Swap(&other->playerseats_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string GameStartInitialMessage::GetTypeName() const { - return "GameStartInitialMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int GameStartRejoinMessage_RejoinPlayerData::kPlayerIdFieldNumber; -const int GameStartRejoinMessage_RejoinPlayerData::kPlayerMoneyFieldNumber; -#endif // !_MSC_VER - -GameStartRejoinMessage_RejoinPlayerData::GameStartRejoinMessage_RejoinPlayerData() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void GameStartRejoinMessage_RejoinPlayerData::InitAsDefaultInstance() { -} - -GameStartRejoinMessage_RejoinPlayerData::GameStartRejoinMessage_RejoinPlayerData(const GameStartRejoinMessage_RejoinPlayerData& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void GameStartRejoinMessage_RejoinPlayerData::SharedCtor() { - _cached_size_ = 0; - playerid_ = 0u; - playermoney_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameStartRejoinMessage_RejoinPlayerData::~GameStartRejoinMessage_RejoinPlayerData() { - SharedDtor(); -} - -void GameStartRejoinMessage_RejoinPlayerData::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameStartRejoinMessage_RejoinPlayerData::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameStartRejoinMessage_RejoinPlayerData& GameStartRejoinMessage_RejoinPlayerData::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameStartRejoinMessage_RejoinPlayerData* GameStartRejoinMessage_RejoinPlayerData::default_instance_ = NULL; - -GameStartRejoinMessage_RejoinPlayerData* GameStartRejoinMessage_RejoinPlayerData::New() const { - return new GameStartRejoinMessage_RejoinPlayerData; -} - -void GameStartRejoinMessage_RejoinPlayerData::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - playerid_ = 0u; - playermoney_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool GameStartRejoinMessage_RejoinPlayerData::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 playerId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerMoney; - break; - } - - // required uint32 playerMoney = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerMoney: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playermoney_))); - set_has_playermoney(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void GameStartRejoinMessage_RejoinPlayerData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 playerId = 1; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->playerid(), output); - } - - // required uint32 playerMoney = 2; - if (has_playermoney()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playermoney(), output); - } - -} - -int GameStartRejoinMessage_RejoinPlayerData::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 playerId = 1; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - // required uint32 playerMoney = 2; - if (has_playermoney()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playermoney()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GameStartRejoinMessage_RejoinPlayerData::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void GameStartRejoinMessage_RejoinPlayerData::MergeFrom(const GameStartRejoinMessage_RejoinPlayerData& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - if (from.has_playermoney()) { - set_playermoney(from.playermoney()); - } - } -} - -void GameStartRejoinMessage_RejoinPlayerData::CopyFrom(const GameStartRejoinMessage_RejoinPlayerData& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameStartRejoinMessage_RejoinPlayerData::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void GameStartRejoinMessage_RejoinPlayerData::Swap(GameStartRejoinMessage_RejoinPlayerData* other) { - if (other != this) { - std::swap(playerid_, other->playerid_); - std::swap(playermoney_, other->playermoney_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string GameStartRejoinMessage_RejoinPlayerData::GetTypeName() const { - return "GameStartRejoinMessage.RejoinPlayerData"; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int GameStartRejoinMessage::kGameIdFieldNumber; -const int GameStartRejoinMessage::kStartDealerPlayerIdFieldNumber; -const int GameStartRejoinMessage::kHandNumFieldNumber; -const int GameStartRejoinMessage::kRejoinPlayerDataFieldNumber; -#endif // !_MSC_VER - -GameStartRejoinMessage::GameStartRejoinMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void GameStartRejoinMessage::InitAsDefaultInstance() { -} - -GameStartRejoinMessage::GameStartRejoinMessage(const GameStartRejoinMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void GameStartRejoinMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - startdealerplayerid_ = 0u; - handnum_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameStartRejoinMessage::~GameStartRejoinMessage() { - SharedDtor(); -} - -void GameStartRejoinMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameStartRejoinMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameStartRejoinMessage& GameStartRejoinMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameStartRejoinMessage* GameStartRejoinMessage::default_instance_ = NULL; - -GameStartRejoinMessage* GameStartRejoinMessage::New() const { - return new GameStartRejoinMessage; -} - -void GameStartRejoinMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - startdealerplayerid_ = 0u; - handnum_ = 0u; - } - rejoinplayerdata_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool GameStartRejoinMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_startDealerPlayerId; - break; - } - - // required uint32 startDealerPlayerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_startDealerPlayerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &startdealerplayerid_))); - set_has_startdealerplayerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_handNum; - break; - } - - // required uint32 handNum = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_handNum: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &handnum_))); - set_has_handnum(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_rejoinPlayerData; - break; - } - - // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_rejoinPlayerData: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_rejoinplayerdata())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_rejoinPlayerData; - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void GameStartRejoinMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 startDealerPlayerId = 2; - if (has_startdealerplayerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->startdealerplayerid(), output); - } - - // required uint32 handNum = 3; - if (has_handnum()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->handnum(), output); - } - - // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - for (int i = 0; i < this->rejoinplayerdata_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 4, this->rejoinplayerdata(i), output); - } - -} - -int GameStartRejoinMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 startDealerPlayerId = 2; - if (has_startdealerplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->startdealerplayerid()); - } - - // required uint32 handNum = 3; - if (has_handnum()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->handnum()); - } - - } - // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - total_size += 1 * this->rejoinplayerdata_size(); - for (int i = 0; i < this->rejoinplayerdata_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->rejoinplayerdata(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GameStartRejoinMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void GameStartRejoinMessage::MergeFrom(const GameStartRejoinMessage& from) { - GOOGLE_CHECK_NE(&from, this); - rejoinplayerdata_.MergeFrom(from.rejoinplayerdata_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_startdealerplayerid()) { - set_startdealerplayerid(from.startdealerplayerid()); - } - if (from.has_handnum()) { - set_handnum(from.handnum()); - } - } -} - -void GameStartRejoinMessage::CopyFrom(const GameStartRejoinMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameStartRejoinMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - - for (int i = 0; i < rejoinplayerdata_size(); i++) { - if (!this->rejoinplayerdata(i).IsInitialized()) return false; - } - return true; -} - -void GameStartRejoinMessage::Swap(GameStartRejoinMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(startdealerplayerid_, other->startdealerplayerid_); - std::swap(handnum_, other->handnum_); - rejoinplayerdata_.Swap(&other->rejoinplayerdata_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string GameStartRejoinMessage::GetTypeName() const { - return "GameStartRejoinMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int GameStartReentryMessage_ReentryPlayerData::kPlayerIdFieldNumber; -const int GameStartReentryMessage_ReentryPlayerData::kPlayerMoneyFieldNumber; -#endif // !_MSC_VER - -GameStartReentryMessage_ReentryPlayerData::GameStartReentryMessage_ReentryPlayerData() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void GameStartReentryMessage_ReentryPlayerData::InitAsDefaultInstance() { -} - -GameStartReentryMessage_ReentryPlayerData::GameStartReentryMessage_ReentryPlayerData(const GameStartReentryMessage_ReentryPlayerData& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void GameStartReentryMessage_ReentryPlayerData::SharedCtor() { - _cached_size_ = 0; - playerid_ = 0u; - playermoney_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameStartReentryMessage_ReentryPlayerData::~GameStartReentryMessage_ReentryPlayerData() { - SharedDtor(); -} - -void GameStartReentryMessage_ReentryPlayerData::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameStartReentryMessage_ReentryPlayerData::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameStartReentryMessage_ReentryPlayerData& GameStartReentryMessage_ReentryPlayerData::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameStartReentryMessage_ReentryPlayerData* GameStartReentryMessage_ReentryPlayerData::default_instance_ = NULL; - -GameStartReentryMessage_ReentryPlayerData* GameStartReentryMessage_ReentryPlayerData::New() const { - return new GameStartReentryMessage_ReentryPlayerData; -} - -void GameStartReentryMessage_ReentryPlayerData::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - playerid_ = 0u; - playermoney_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool GameStartReentryMessage_ReentryPlayerData::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 playerId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerMoney; - break; - } - - // required uint32 playerMoney = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerMoney: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playermoney_))); - set_has_playermoney(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void GameStartReentryMessage_ReentryPlayerData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 playerId = 1; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->playerid(), output); - } - - // required uint32 playerMoney = 2; - if (has_playermoney()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playermoney(), output); - } - -} - -int GameStartReentryMessage_ReentryPlayerData::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 playerId = 1; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - // required uint32 playerMoney = 2; - if (has_playermoney()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playermoney()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GameStartReentryMessage_ReentryPlayerData::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void GameStartReentryMessage_ReentryPlayerData::MergeFrom(const GameStartReentryMessage_ReentryPlayerData& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - if (from.has_playermoney()) { - set_playermoney(from.playermoney()); - } - } -} - -void GameStartReentryMessage_ReentryPlayerData::CopyFrom(const GameStartReentryMessage_ReentryPlayerData& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameStartReentryMessage_ReentryPlayerData::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void GameStartReentryMessage_ReentryPlayerData::Swap(GameStartReentryMessage_ReentryPlayerData* other) { - if (other != this) { - std::swap(playerid_, other->playerid_); - std::swap(playermoney_, other->playermoney_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string GameStartReentryMessage_ReentryPlayerData::GetTypeName() const { - return "GameStartReentryMessage.ReentryPlayerData"; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int GameStartReentryMessage::kGameIdFieldNumber; -const int GameStartReentryMessage::kStartDealerPlayerIdFieldNumber; -const int GameStartReentryMessage::kHandNumFieldNumber; -const int GameStartReentryMessage::kReentryPlayerDataFieldNumber; -#endif // !_MSC_VER - -GameStartReentryMessage::GameStartReentryMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void GameStartReentryMessage::InitAsDefaultInstance() { -} - -GameStartReentryMessage::GameStartReentryMessage(const GameStartReentryMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void GameStartReentryMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - startdealerplayerid_ = 0u; - handnum_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameStartReentryMessage::~GameStartReentryMessage() { - SharedDtor(); -} - -void GameStartReentryMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameStartReentryMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameStartReentryMessage& GameStartReentryMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameStartReentryMessage* GameStartReentryMessage::default_instance_ = NULL; - -GameStartReentryMessage* GameStartReentryMessage::New() const { - return new GameStartReentryMessage; -} - -void GameStartReentryMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - startdealerplayerid_ = 0u; - handnum_ = 0u; - } - reentryplayerdata_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool GameStartReentryMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_startDealerPlayerId; - break; - } - - // required uint32 startDealerPlayerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_startDealerPlayerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &startdealerplayerid_))); - set_has_startdealerplayerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_handNum; - break; - } - - // required uint32 handNum = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_handNum: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &handnum_))); - set_has_handnum(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_reentryPlayerData; - break; - } - - // repeated .GameStartReentryMessage.ReentryPlayerData reentryPlayerData = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_reentryPlayerData: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_reentryplayerdata())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_reentryPlayerData; - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void GameStartReentryMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 startDealerPlayerId = 2; - if (has_startdealerplayerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->startdealerplayerid(), output); - } - - // required uint32 handNum = 3; - if (has_handnum()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->handnum(), output); - } - - // repeated .GameStartReentryMessage.ReentryPlayerData reentryPlayerData = 4; - for (int i = 0; i < this->reentryplayerdata_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 4, this->reentryplayerdata(i), output); - } - -} - -int GameStartReentryMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 startDealerPlayerId = 2; - if (has_startdealerplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->startdealerplayerid()); - } - - // required uint32 handNum = 3; - if (has_handnum()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->handnum()); - } - - } - // repeated .GameStartReentryMessage.ReentryPlayerData reentryPlayerData = 4; - total_size += 1 * this->reentryplayerdata_size(); - for (int i = 0; i < this->reentryplayerdata_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->reentryplayerdata(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void GameStartReentryMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void GameStartReentryMessage::MergeFrom(const GameStartReentryMessage& from) { - GOOGLE_CHECK_NE(&from, this); - reentryplayerdata_.MergeFrom(from.reentryplayerdata_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_startdealerplayerid()) { - set_startdealerplayerid(from.startdealerplayerid()); - } - if (from.has_handnum()) { - set_handnum(from.handnum()); - } - } -} - -void GameStartReentryMessage::CopyFrom(const GameStartReentryMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GameStartReentryMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - - for (int i = 0; i < reentryplayerdata_size(); i++) { - if (!this->reentryplayerdata(i).IsInitialized()) return false; - } - return true; -} - -void GameStartReentryMessage::Swap(GameStartReentryMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(startdealerplayerid_, other->startdealerplayerid_); - std::swap(handnum_, other->handnum_); - reentryplayerdata_.Swap(&other->reentryplayerdata_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string GameStartReentryMessage::GetTypeName() const { - return "GameStartReentryMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int HandStartMessage_PlainCards::kPlainCard1FieldNumber; -const int HandStartMessage_PlainCards::kPlainCard2FieldNumber; -#endif // !_MSC_VER - -HandStartMessage_PlainCards::HandStartMessage_PlainCards() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void HandStartMessage_PlainCards::InitAsDefaultInstance() { -} - -HandStartMessage_PlainCards::HandStartMessage_PlainCards(const HandStartMessage_PlainCards& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void HandStartMessage_PlainCards::SharedCtor() { - _cached_size_ = 0; - plaincard1_ = 0u; - plaincard2_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -HandStartMessage_PlainCards::~HandStartMessage_PlainCards() { - SharedDtor(); -} - -void HandStartMessage_PlainCards::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void HandStartMessage_PlainCards::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const HandStartMessage_PlainCards& HandStartMessage_PlainCards::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -HandStartMessage_PlainCards* HandStartMessage_PlainCards::default_instance_ = NULL; - -HandStartMessage_PlainCards* HandStartMessage_PlainCards::New() const { - return new HandStartMessage_PlainCards; -} - -void HandStartMessage_PlainCards::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - plaincard1_ = 0u; - plaincard2_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool HandStartMessage_PlainCards::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 plainCard1 = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &plaincard1_))); - set_has_plaincard1(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_plainCard2; - break; - } - - // required uint32 plainCard2 = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_plainCard2: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &plaincard2_))); - set_has_plaincard2(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void HandStartMessage_PlainCards::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 plainCard1 = 1; - if (has_plaincard1()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->plaincard1(), output); - } - - // required uint32 plainCard2 = 2; - if (has_plaincard2()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->plaincard2(), output); - } - -} - -int HandStartMessage_PlainCards::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 plainCard1 = 1; - if (has_plaincard1()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->plaincard1()); - } - - // required uint32 plainCard2 = 2; - if (has_plaincard2()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->plaincard2()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void HandStartMessage_PlainCards::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void HandStartMessage_PlainCards::MergeFrom(const HandStartMessage_PlainCards& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_plaincard1()) { - set_plaincard1(from.plaincard1()); - } - if (from.has_plaincard2()) { - set_plaincard2(from.plaincard2()); - } - } -} - -void HandStartMessage_PlainCards::CopyFrom(const HandStartMessage_PlainCards& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool HandStartMessage_PlainCards::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void HandStartMessage_PlainCards::Swap(HandStartMessage_PlainCards* other) { - if (other != this) { - std::swap(plaincard1_, other->plaincard1_); - std::swap(plaincard2_, other->plaincard2_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string HandStartMessage_PlainCards::GetTypeName() const { - return "HandStartMessage.PlainCards"; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int HandStartMessage::kGameIdFieldNumber; -const int HandStartMessage::kPlainCardsFieldNumber; -const int HandStartMessage::kEncryptedCardsFieldNumber; -const int HandStartMessage::kSmallBlindFieldNumber; -const int HandStartMessage::kSeatStatesFieldNumber; -const int HandStartMessage::kDealerPlayerIdFieldNumber; -#endif // !_MSC_VER - -HandStartMessage::HandStartMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void HandStartMessage::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - plaincards_ = const_cast< ::HandStartMessage_PlainCards*>( - ::HandStartMessage_PlainCards::internal_default_instance()); -#else - plaincards_ = const_cast< ::HandStartMessage_PlainCards*>(&::HandStartMessage_PlainCards::default_instance()); -#endif -} - -HandStartMessage::HandStartMessage(const HandStartMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void HandStartMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - plaincards_ = NULL; - encryptedcards_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - smallblind_ = 0u; - dealerplayerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -HandStartMessage::~HandStartMessage() { - SharedDtor(); -} - -void HandStartMessage::SharedDtor() { - if (encryptedcards_ != &::google::protobuf::internal::kEmptyString) { - delete encryptedcards_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete plaincards_; - } -} - -void HandStartMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const HandStartMessage& HandStartMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -HandStartMessage* HandStartMessage::default_instance_ = NULL; - -HandStartMessage* HandStartMessage::New() const { - return new HandStartMessage; -} - -void HandStartMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - if (has_plaincards()) { - if (plaincards_ != NULL) plaincards_->::HandStartMessage_PlainCards::Clear(); - } - if (has_encryptedcards()) { - if (encryptedcards_ != &::google::protobuf::internal::kEmptyString) { - encryptedcards_->clear(); - } - } - smallblind_ = 0u; - dealerplayerid_ = 0u; - } - seatstates_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool HandStartMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_plainCards; - break; - } - - // optional .HandStartMessage.PlainCards plainCards = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_plainCards: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_plaincards())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_encryptedCards; - break; - } - - // optional bytes encryptedCards = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_encryptedCards: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_encryptedcards())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_smallBlind; - break; - } - - // required uint32 smallBlind = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_smallBlind: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &smallblind_))); - set_has_smallblind(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_seatStates; - break; - } - - // repeated .NetPlayerState seatStates = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_seatStates: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::NetPlayerState_IsValid(value)) { - add_seatstates(static_cast< ::NetPlayerState >(value)); - } - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline( - input, - &::NetPlayerState_IsValid, - this->mutable_seatstates()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_seatStates; - if (input->ExpectTag(48)) goto parse_dealerPlayerId; - break; - } - - // optional uint32 dealerPlayerId = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_dealerPlayerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &dealerplayerid_))); - set_has_dealerplayerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void HandStartMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // optional .HandStartMessage.PlainCards plainCards = 2; - if (has_plaincards()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, this->plaincards(), output); - } - - // optional bytes encryptedCards = 3; - if (has_encryptedcards()) { - ::google::protobuf::internal::WireFormatLite::WriteBytes( - 3, this->encryptedcards(), output); - } - - // required uint32 smallBlind = 4; - if (has_smallblind()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->smallblind(), output); - } - - // repeated .NetPlayerState seatStates = 5; - for (int i = 0; i < this->seatstates_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 5, this->seatstates(i), output); - } - - // optional uint32 dealerPlayerId = 6; - if (has_dealerplayerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->dealerplayerid(), output); - } - -} - -int HandStartMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // optional .HandStartMessage.PlainCards plainCards = 2; - if (has_plaincards()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->plaincards()); - } - - // optional bytes encryptedCards = 3; - if (has_encryptedcards()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->encryptedcards()); - } - - // required uint32 smallBlind = 4; - if (has_smallblind()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->smallblind()); - } - - // optional uint32 dealerPlayerId = 6; - if (has_dealerplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->dealerplayerid()); - } - - } - // repeated .NetPlayerState seatStates = 5; - { - int data_size = 0; - for (int i = 0; i < this->seatstates_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite::EnumSize( - this->seatstates(i)); - } - total_size += 1 * this->seatstates_size() + data_size; - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void HandStartMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void HandStartMessage::MergeFrom(const HandStartMessage& from) { - GOOGLE_CHECK_NE(&from, this); - seatstates_.MergeFrom(from.seatstates_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_plaincards()) { - mutable_plaincards()->::HandStartMessage_PlainCards::MergeFrom(from.plaincards()); - } - if (from.has_encryptedcards()) { - set_encryptedcards(from.encryptedcards()); - } - if (from.has_smallblind()) { - set_smallblind(from.smallblind()); - } - if (from.has_dealerplayerid()) { - set_dealerplayerid(from.dealerplayerid()); - } - } -} - -void HandStartMessage::CopyFrom(const HandStartMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool HandStartMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000009) != 0x00000009) return false; - - if (has_plaincards()) { - if (!this->plaincards().IsInitialized()) return false; - } - return true; -} - -void HandStartMessage::Swap(HandStartMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(plaincards_, other->plaincards_); - std::swap(encryptedcards_, other->encryptedcards_); - std::swap(smallblind_, other->smallblind_); - seatstates_.Swap(&other->seatstates_); - std::swap(dealerplayerid_, other->dealerplayerid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string HandStartMessage::GetTypeName() const { - return "HandStartMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int PlayersTurnMessage::kGameIdFieldNumber; -const int PlayersTurnMessage::kPlayerIdFieldNumber; -const int PlayersTurnMessage::kGameStateFieldNumber; -#endif // !_MSC_VER - -PlayersTurnMessage::PlayersTurnMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void PlayersTurnMessage::InitAsDefaultInstance() { -} - -PlayersTurnMessage::PlayersTurnMessage(const PlayersTurnMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void PlayersTurnMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - gamestate_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PlayersTurnMessage::~PlayersTurnMessage() { - SharedDtor(); -} - -void PlayersTurnMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void PlayersTurnMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const PlayersTurnMessage& PlayersTurnMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -PlayersTurnMessage* PlayersTurnMessage::default_instance_ = NULL; - -PlayersTurnMessage* PlayersTurnMessage::New() const { - return new PlayersTurnMessage; -} - -void PlayersTurnMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - playerid_ = 0u; - gamestate_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool PlayersTurnMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_gameState; - break; - } - - // required .NetGameState gameState = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_gameState: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::NetGameState_IsValid(value)) { - set_gamestate(static_cast< ::NetGameState >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void PlayersTurnMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - // required .NetGameState gameState = 3; - if (has_gamestate()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->gamestate(), output); - } - -} - -int PlayersTurnMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - // required .NetGameState gameState = 3; - if (has_gamestate()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamestate()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PlayersTurnMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void PlayersTurnMessage::MergeFrom(const PlayersTurnMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - if (from.has_gamestate()) { - set_gamestate(from.gamestate()); - } - } -} - -void PlayersTurnMessage::CopyFrom(const PlayersTurnMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PlayersTurnMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - - return true; -} - -void PlayersTurnMessage::Swap(PlayersTurnMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(gamestate_, other->gamestate_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string PlayersTurnMessage::GetTypeName() const { - return "PlayersTurnMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int MyActionRequestMessage::kGameIdFieldNumber; -const int MyActionRequestMessage::kHandNumFieldNumber; -const int MyActionRequestMessage::kGameStateFieldNumber; -const int MyActionRequestMessage::kMyActionFieldNumber; -const int MyActionRequestMessage::kMyRelativeBetFieldNumber; -#endif // !_MSC_VER - -MyActionRequestMessage::MyActionRequestMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void MyActionRequestMessage::InitAsDefaultInstance() { -} - -MyActionRequestMessage::MyActionRequestMessage(const MyActionRequestMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void MyActionRequestMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - handnum_ = 0u; - gamestate_ = 0; - myaction_ = 0; - myrelativebet_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -MyActionRequestMessage::~MyActionRequestMessage() { - SharedDtor(); -} - -void MyActionRequestMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void MyActionRequestMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const MyActionRequestMessage& MyActionRequestMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -MyActionRequestMessage* MyActionRequestMessage::default_instance_ = NULL; - -MyActionRequestMessage* MyActionRequestMessage::New() const { - return new MyActionRequestMessage; -} - -void MyActionRequestMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - handnum_ = 0u; - gamestate_ = 0; - myaction_ = 0; - myrelativebet_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool MyActionRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_handNum; - break; - } - - // required uint32 handNum = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_handNum: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &handnum_))); - set_has_handnum(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_gameState; - break; - } - - // required .NetGameState gameState = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_gameState: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::NetGameState_IsValid(value)) { - set_gamestate(static_cast< ::NetGameState >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_myAction; - break; - } - - // required .NetPlayerAction myAction = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_myAction: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::NetPlayerAction_IsValid(value)) { - set_myaction(static_cast< ::NetPlayerAction >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_myRelativeBet; - break; - } - - // required uint32 myRelativeBet = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_myRelativeBet: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &myrelativebet_))); - set_has_myrelativebet(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void MyActionRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 handNum = 2; - if (has_handnum()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->handnum(), output); - } - - // required .NetGameState gameState = 3; - if (has_gamestate()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->gamestate(), output); - } - - // required .NetPlayerAction myAction = 4; - if (has_myaction()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->myaction(), output); - } - - // required uint32 myRelativeBet = 5; - if (has_myrelativebet()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->myrelativebet(), output); - } - -} - -int MyActionRequestMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 handNum = 2; - if (has_handnum()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->handnum()); - } - - // required .NetGameState gameState = 3; - if (has_gamestate()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamestate()); - } - - // required .NetPlayerAction myAction = 4; - if (has_myaction()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->myaction()); - } - - // required uint32 myRelativeBet = 5; - if (has_myrelativebet()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->myrelativebet()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void MyActionRequestMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void MyActionRequestMessage::MergeFrom(const MyActionRequestMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_handnum()) { - set_handnum(from.handnum()); - } - if (from.has_gamestate()) { - set_gamestate(from.gamestate()); - } - if (from.has_myaction()) { - set_myaction(from.myaction()); - } - if (from.has_myrelativebet()) { - set_myrelativebet(from.myrelativebet()); - } - } -} - -void MyActionRequestMessage::CopyFrom(const MyActionRequestMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MyActionRequestMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; - - return true; -} - -void MyActionRequestMessage::Swap(MyActionRequestMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(handnum_, other->handnum_); - std::swap(gamestate_, other->gamestate_); - std::swap(myaction_, other->myaction_); - std::swap(myrelativebet_, other->myrelativebet_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string MyActionRequestMessage::GetTypeName() const { - return "MyActionRequestMessage"; -} - - -// =================================================================== - +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed StartEventMessage_StartEventType_strings[2] = {}; + +static const char StartEventMessage_StartEventType_names[] = + "rejoinEvent" + "startEvent"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry StartEventMessage_StartEventType_entries[] = { + { {StartEventMessage_StartEventType_names + 0, 11}, 1 }, + { {StartEventMessage_StartEventType_names + 11, 10}, 0 }, +}; + +static const int StartEventMessage_StartEventType_entries_by_number[] = { + 1, // 0 -> startEvent + 0, // 1 -> rejoinEvent +}; + +const std::string& StartEventMessage_StartEventType_Name( + StartEventMessage_StartEventType value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + StartEventMessage_StartEventType_entries, + StartEventMessage_StartEventType_entries_by_number, + 2, StartEventMessage_StartEventType_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + StartEventMessage_StartEventType_entries, + StartEventMessage_StartEventType_entries_by_number, + 2, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + StartEventMessage_StartEventType_strings[idx].get(); +} +bool StartEventMessage_StartEventType_Parse( + const std::string& name, StartEventMessage_StartEventType* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + StartEventMessage_StartEventType_entries, 2, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr StartEventMessage_StartEventType StartEventMessage::startEvent; +constexpr StartEventMessage_StartEventType StartEventMessage::rejoinEvent; +constexpr StartEventMessage_StartEventType StartEventMessage::StartEventType_MIN; +constexpr StartEventMessage_StartEventType StartEventMessage::StartEventType_MAX; +constexpr int StartEventMessage::StartEventType_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool YourActionRejectedMessage_RejectionReason_IsValid(int value) { - switch(value) { + switch (value) { case 1: case 2: case 3: @@ -14192,3258 +2645,60 @@ bool YourActionRejectedMessage_RejectionReason_IsValid(int value) { } } -#ifndef _MSC_VER -const YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::rejectedInvalidGameState; -const YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::rejectedNotYourTurn; -const YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::rejectedActionNotAllowed; -const YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::RejectionReason_MIN; -const YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::RejectionReason_MAX; -const int YourActionRejectedMessage::RejectionReason_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int YourActionRejectedMessage::kGameIdFieldNumber; -const int YourActionRejectedMessage::kGameStateFieldNumber; -const int YourActionRejectedMessage::kYourActionFieldNumber; -const int YourActionRejectedMessage::kYourRelativeBetFieldNumber; -const int YourActionRejectedMessage::kRejectionReasonFieldNumber; -#endif // !_MSC_VER - -YourActionRejectedMessage::YourActionRejectedMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void YourActionRejectedMessage::InitAsDefaultInstance() { -} - -YourActionRejectedMessage::YourActionRejectedMessage(const YourActionRejectedMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void YourActionRejectedMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - gamestate_ = 0; - youraction_ = 0; - yourrelativebet_ = 0u; - rejectionreason_ = 1; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -YourActionRejectedMessage::~YourActionRejectedMessage() { - SharedDtor(); -} - -void YourActionRejectedMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void YourActionRejectedMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const YourActionRejectedMessage& YourActionRejectedMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -YourActionRejectedMessage* YourActionRejectedMessage::default_instance_ = NULL; - -YourActionRejectedMessage* YourActionRejectedMessage::New() const { - return new YourActionRejectedMessage; -} - -void YourActionRejectedMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - gamestate_ = 0; - youraction_ = 0; - yourrelativebet_ = 0u; - rejectionreason_ = 1; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool YourActionRejectedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_gameState; - break; - } - - // required .NetGameState gameState = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_gameState: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::NetGameState_IsValid(value)) { - set_gamestate(static_cast< ::NetGameState >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_yourAction; - break; - } - - // required .NetPlayerAction yourAction = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_yourAction: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::NetPlayerAction_IsValid(value)) { - set_youraction(static_cast< ::NetPlayerAction >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_yourRelativeBet; - break; - } - - // required uint32 yourRelativeBet = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_yourRelativeBet: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &yourrelativebet_))); - set_has_yourrelativebet(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_rejectionReason; - break; - } - - // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_rejectionReason: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::YourActionRejectedMessage_RejectionReason_IsValid(value)) { - set_rejectionreason(static_cast< ::YourActionRejectedMessage_RejectionReason >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void YourActionRejectedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required .NetGameState gameState = 2; - if (has_gamestate()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->gamestate(), output); - } - - // required .NetPlayerAction yourAction = 3; - if (has_youraction()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->youraction(), output); - } - - // required uint32 yourRelativeBet = 4; - if (has_yourrelativebet()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->yourrelativebet(), output); - } - - // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - if (has_rejectionreason()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 5, this->rejectionreason(), output); - } - -} - -int YourActionRejectedMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required .NetGameState gameState = 2; - if (has_gamestate()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamestate()); - } - - // required .NetPlayerAction yourAction = 3; - if (has_youraction()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->youraction()); - } - - // required uint32 yourRelativeBet = 4; - if (has_yourrelativebet()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->yourrelativebet()); - } - - // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - if (has_rejectionreason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->rejectionreason()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void YourActionRejectedMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void YourActionRejectedMessage::MergeFrom(const YourActionRejectedMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_gamestate()) { - set_gamestate(from.gamestate()); - } - if (from.has_youraction()) { - set_youraction(from.youraction()); - } - if (from.has_yourrelativebet()) { - set_yourrelativebet(from.yourrelativebet()); - } - if (from.has_rejectionreason()) { - set_rejectionreason(from.rejectionreason()); - } - } -} - -void YourActionRejectedMessage::CopyFrom(const YourActionRejectedMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool YourActionRejectedMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; - - return true; -} - -void YourActionRejectedMessage::Swap(YourActionRejectedMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(gamestate_, other->gamestate_); - std::swap(youraction_, other->youraction_); - std::swap(yourrelativebet_, other->yourrelativebet_); - std::swap(rejectionreason_, other->rejectionreason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string YourActionRejectedMessage::GetTypeName() const { - return "YourActionRejectedMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int PlayersActionDoneMessage::kGameIdFieldNumber; -const int PlayersActionDoneMessage::kPlayerIdFieldNumber; -const int PlayersActionDoneMessage::kGameStateFieldNumber; -const int PlayersActionDoneMessage::kPlayerActionFieldNumber; -const int PlayersActionDoneMessage::kTotalPlayerBetFieldNumber; -const int PlayersActionDoneMessage::kPlayerMoneyFieldNumber; -const int PlayersActionDoneMessage::kHighestSetFieldNumber; -const int PlayersActionDoneMessage::kMinimumRaiseFieldNumber; -#endif // !_MSC_VER - -PlayersActionDoneMessage::PlayersActionDoneMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void PlayersActionDoneMessage::InitAsDefaultInstance() { -} - -PlayersActionDoneMessage::PlayersActionDoneMessage(const PlayersActionDoneMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void PlayersActionDoneMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - gamestate_ = 0; - playeraction_ = 0; - totalplayerbet_ = 0u; - playermoney_ = 0u; - highestset_ = 0u; - minimumraise_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PlayersActionDoneMessage::~PlayersActionDoneMessage() { - SharedDtor(); -} - -void PlayersActionDoneMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void PlayersActionDoneMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const PlayersActionDoneMessage& PlayersActionDoneMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -PlayersActionDoneMessage* PlayersActionDoneMessage::default_instance_ = NULL; - -PlayersActionDoneMessage* PlayersActionDoneMessage::New() const { - return new PlayersActionDoneMessage; -} - -void PlayersActionDoneMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - playerid_ = 0u; - gamestate_ = 0; - playeraction_ = 0; - totalplayerbet_ = 0u; - playermoney_ = 0u; - highestset_ = 0u; - minimumraise_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool PlayersActionDoneMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_gameState; - break; - } - - // required .NetGameState gameState = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_gameState: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::NetGameState_IsValid(value)) { - set_gamestate(static_cast< ::NetGameState >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_playerAction; - break; - } - - // required .NetPlayerAction playerAction = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerAction: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::NetPlayerAction_IsValid(value)) { - set_playeraction(static_cast< ::NetPlayerAction >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_totalPlayerBet; - break; - } - - // required uint32 totalPlayerBet = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_totalPlayerBet: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &totalplayerbet_))); - set_has_totalplayerbet(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(48)) goto parse_playerMoney; - break; - } - - // required uint32 playerMoney = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerMoney: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playermoney_))); - set_has_playermoney(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(56)) goto parse_highestSet; - break; - } - - // required uint32 highestSet = 7; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_highestSet: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &highestset_))); - set_has_highestset(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(64)) goto parse_minimumRaise; - break; - } - - // required uint32 minimumRaise = 8; - case 8: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_minimumRaise: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &minimumraise_))); - set_has_minimumraise(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void PlayersActionDoneMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - // required .NetGameState gameState = 3; - if (has_gamestate()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->gamestate(), output); - } - - // required .NetPlayerAction playerAction = 4; - if (has_playeraction()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->playeraction(), output); - } - - // required uint32 totalPlayerBet = 5; - if (has_totalplayerbet()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->totalplayerbet(), output); - } - - // required uint32 playerMoney = 6; - if (has_playermoney()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->playermoney(), output); - } - - // required uint32 highestSet = 7; - if (has_highestset()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->highestset(), output); - } - - // required uint32 minimumRaise = 8; - if (has_minimumraise()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->minimumraise(), output); - } - -} - -int PlayersActionDoneMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - // required .NetGameState gameState = 3; - if (has_gamestate()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamestate()); - } - - // required .NetPlayerAction playerAction = 4; - if (has_playeraction()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->playeraction()); - } - - // required uint32 totalPlayerBet = 5; - if (has_totalplayerbet()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->totalplayerbet()); - } - - // required uint32 playerMoney = 6; - if (has_playermoney()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playermoney()); - } - - // required uint32 highestSet = 7; - if (has_highestset()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->highestset()); - } - - // required uint32 minimumRaise = 8; - if (has_minimumraise()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->minimumraise()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PlayersActionDoneMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void PlayersActionDoneMessage::MergeFrom(const PlayersActionDoneMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - if (from.has_gamestate()) { - set_gamestate(from.gamestate()); - } - if (from.has_playeraction()) { - set_playeraction(from.playeraction()); - } - if (from.has_totalplayerbet()) { - set_totalplayerbet(from.totalplayerbet()); - } - if (from.has_playermoney()) { - set_playermoney(from.playermoney()); - } - if (from.has_highestset()) { - set_highestset(from.highestset()); - } - if (from.has_minimumraise()) { - set_minimumraise(from.minimumraise()); - } - } -} - -void PlayersActionDoneMessage::CopyFrom(const PlayersActionDoneMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PlayersActionDoneMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x000000ff) != 0x000000ff) return false; - - return true; -} - -void PlayersActionDoneMessage::Swap(PlayersActionDoneMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(gamestate_, other->gamestate_); - std::swap(playeraction_, other->playeraction_); - std::swap(totalplayerbet_, other->totalplayerbet_); - std::swap(playermoney_, other->playermoney_); - std::swap(highestset_, other->highestset_); - std::swap(minimumraise_, other->minimumraise_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string PlayersActionDoneMessage::GetTypeName() const { - return "PlayersActionDoneMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int DealFlopCardsMessage::kGameIdFieldNumber; -const int DealFlopCardsMessage::kFlopCard1FieldNumber; -const int DealFlopCardsMessage::kFlopCard2FieldNumber; -const int DealFlopCardsMessage::kFlopCard3FieldNumber; -#endif // !_MSC_VER - -DealFlopCardsMessage::DealFlopCardsMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void DealFlopCardsMessage::InitAsDefaultInstance() { -} - -DealFlopCardsMessage::DealFlopCardsMessage(const DealFlopCardsMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void DealFlopCardsMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - flopcard1_ = 0u; - flopcard2_ = 0u; - flopcard3_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -DealFlopCardsMessage::~DealFlopCardsMessage() { - SharedDtor(); -} - -void DealFlopCardsMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void DealFlopCardsMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const DealFlopCardsMessage& DealFlopCardsMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -DealFlopCardsMessage* DealFlopCardsMessage::default_instance_ = NULL; - -DealFlopCardsMessage* DealFlopCardsMessage::New() const { - return new DealFlopCardsMessage; -} - -void DealFlopCardsMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - flopcard1_ = 0u; - flopcard2_ = 0u; - flopcard3_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool DealFlopCardsMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_flopCard1; - break; - } - - // required uint32 flopCard1 = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_flopCard1: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &flopcard1_))); - set_has_flopcard1(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_flopCard2; - break; - } - - // required uint32 flopCard2 = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_flopCard2: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &flopcard2_))); - set_has_flopcard2(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_flopCard3; - break; - } - - // required uint32 flopCard3 = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_flopCard3: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &flopcard3_))); - set_has_flopcard3(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void DealFlopCardsMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 flopCard1 = 2; - if (has_flopcard1()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->flopcard1(), output); - } - - // required uint32 flopCard2 = 3; - if (has_flopcard2()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->flopcard2(), output); - } - - // required uint32 flopCard3 = 4; - if (has_flopcard3()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->flopcard3(), output); - } - -} - -int DealFlopCardsMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 flopCard1 = 2; - if (has_flopcard1()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->flopcard1()); - } - - // required uint32 flopCard2 = 3; - if (has_flopcard2()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->flopcard2()); - } - - // required uint32 flopCard3 = 4; - if (has_flopcard3()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->flopcard3()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void DealFlopCardsMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void DealFlopCardsMessage::MergeFrom(const DealFlopCardsMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_flopcard1()) { - set_flopcard1(from.flopcard1()); - } - if (from.has_flopcard2()) { - set_flopcard2(from.flopcard2()); - } - if (from.has_flopcard3()) { - set_flopcard3(from.flopcard3()); - } - } -} - -void DealFlopCardsMessage::CopyFrom(const DealFlopCardsMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DealFlopCardsMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; - - return true; -} - -void DealFlopCardsMessage::Swap(DealFlopCardsMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(flopcard1_, other->flopcard1_); - std::swap(flopcard2_, other->flopcard2_); - std::swap(flopcard3_, other->flopcard3_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string DealFlopCardsMessage::GetTypeName() const { - return "DealFlopCardsMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int DealTurnCardMessage::kGameIdFieldNumber; -const int DealTurnCardMessage::kTurnCardFieldNumber; -#endif // !_MSC_VER - -DealTurnCardMessage::DealTurnCardMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void DealTurnCardMessage::InitAsDefaultInstance() { -} - -DealTurnCardMessage::DealTurnCardMessage(const DealTurnCardMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void DealTurnCardMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - turncard_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -DealTurnCardMessage::~DealTurnCardMessage() { - SharedDtor(); -} - -void DealTurnCardMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void DealTurnCardMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const DealTurnCardMessage& DealTurnCardMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -DealTurnCardMessage* DealTurnCardMessage::default_instance_ = NULL; - -DealTurnCardMessage* DealTurnCardMessage::New() const { - return new DealTurnCardMessage; -} - -void DealTurnCardMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - turncard_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool DealTurnCardMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_turnCard; - break; - } - - // required uint32 turnCard = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_turnCard: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &turncard_))); - set_has_turncard(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void DealTurnCardMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 turnCard = 2; - if (has_turncard()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->turncard(), output); - } - -} - -int DealTurnCardMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 turnCard = 2; - if (has_turncard()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->turncard()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void DealTurnCardMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void DealTurnCardMessage::MergeFrom(const DealTurnCardMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_turncard()) { - set_turncard(from.turncard()); - } - } -} - -void DealTurnCardMessage::CopyFrom(const DealTurnCardMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DealTurnCardMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void DealTurnCardMessage::Swap(DealTurnCardMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(turncard_, other->turncard_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string DealTurnCardMessage::GetTypeName() const { - return "DealTurnCardMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int DealRiverCardMessage::kGameIdFieldNumber; -const int DealRiverCardMessage::kRiverCardFieldNumber; -#endif // !_MSC_VER - -DealRiverCardMessage::DealRiverCardMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void DealRiverCardMessage::InitAsDefaultInstance() { -} - -DealRiverCardMessage::DealRiverCardMessage(const DealRiverCardMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void DealRiverCardMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - rivercard_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -DealRiverCardMessage::~DealRiverCardMessage() { - SharedDtor(); -} - -void DealRiverCardMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void DealRiverCardMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const DealRiverCardMessage& DealRiverCardMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -DealRiverCardMessage* DealRiverCardMessage::default_instance_ = NULL; - -DealRiverCardMessage* DealRiverCardMessage::New() const { - return new DealRiverCardMessage; -} - -void DealRiverCardMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - rivercard_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool DealRiverCardMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_riverCard; - break; - } - - // required uint32 riverCard = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_riverCard: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &rivercard_))); - set_has_rivercard(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void DealRiverCardMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 riverCard = 2; - if (has_rivercard()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->rivercard(), output); - } - -} - -int DealRiverCardMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 riverCard = 2; - if (has_rivercard()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->rivercard()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void DealRiverCardMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void DealRiverCardMessage::MergeFrom(const DealRiverCardMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_rivercard()) { - set_rivercard(from.rivercard()); - } - } -} - -void DealRiverCardMessage::CopyFrom(const DealRiverCardMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DealRiverCardMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void DealRiverCardMessage::Swap(DealRiverCardMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(rivercard_, other->rivercard_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string DealRiverCardMessage::GetTypeName() const { - return "DealRiverCardMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int AllInShowCardsMessage_PlayerAllIn::kPlayerIdFieldNumber; -const int AllInShowCardsMessage_PlayerAllIn::kAllInCard1FieldNumber; -const int AllInShowCardsMessage_PlayerAllIn::kAllInCard2FieldNumber; -#endif // !_MSC_VER - -AllInShowCardsMessage_PlayerAllIn::AllInShowCardsMessage_PlayerAllIn() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void AllInShowCardsMessage_PlayerAllIn::InitAsDefaultInstance() { -} - -AllInShowCardsMessage_PlayerAllIn::AllInShowCardsMessage_PlayerAllIn(const AllInShowCardsMessage_PlayerAllIn& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void AllInShowCardsMessage_PlayerAllIn::SharedCtor() { - _cached_size_ = 0; - playerid_ = 0u; - allincard1_ = 0u; - allincard2_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AllInShowCardsMessage_PlayerAllIn::~AllInShowCardsMessage_PlayerAllIn() { - SharedDtor(); -} - -void AllInShowCardsMessage_PlayerAllIn::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AllInShowCardsMessage_PlayerAllIn::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AllInShowCardsMessage_PlayerAllIn& AllInShowCardsMessage_PlayerAllIn::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AllInShowCardsMessage_PlayerAllIn* AllInShowCardsMessage_PlayerAllIn::default_instance_ = NULL; - -AllInShowCardsMessage_PlayerAllIn* AllInShowCardsMessage_PlayerAllIn::New() const { - return new AllInShowCardsMessage_PlayerAllIn; -} - -void AllInShowCardsMessage_PlayerAllIn::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - playerid_ = 0u; - allincard1_ = 0u; - allincard2_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool AllInShowCardsMessage_PlayerAllIn::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 playerId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_allInCard1; - break; - } - - // required uint32 allInCard1 = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_allInCard1: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &allincard1_))); - set_has_allincard1(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_allInCard2; - break; - } - - // required uint32 allInCard2 = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_allInCard2: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &allincard2_))); - set_has_allincard2(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void AllInShowCardsMessage_PlayerAllIn::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 playerId = 1; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->playerid(), output); - } - - // required uint32 allInCard1 = 2; - if (has_allincard1()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->allincard1(), output); - } - - // required uint32 allInCard2 = 3; - if (has_allincard2()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->allincard2(), output); - } - -} - -int AllInShowCardsMessage_PlayerAllIn::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 playerId = 1; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - // required uint32 allInCard1 = 2; - if (has_allincard1()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->allincard1()); - } - - // required uint32 allInCard2 = 3; - if (has_allincard2()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->allincard2()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AllInShowCardsMessage_PlayerAllIn::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void AllInShowCardsMessage_PlayerAllIn::MergeFrom(const AllInShowCardsMessage_PlayerAllIn& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - if (from.has_allincard1()) { - set_allincard1(from.allincard1()); - } - if (from.has_allincard2()) { - set_allincard2(from.allincard2()); - } - } -} - -void AllInShowCardsMessage_PlayerAllIn::CopyFrom(const AllInShowCardsMessage_PlayerAllIn& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AllInShowCardsMessage_PlayerAllIn::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - - return true; -} - -void AllInShowCardsMessage_PlayerAllIn::Swap(AllInShowCardsMessage_PlayerAllIn* other) { - if (other != this) { - std::swap(playerid_, other->playerid_); - std::swap(allincard1_, other->allincard1_); - std::swap(allincard2_, other->allincard2_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AllInShowCardsMessage_PlayerAllIn::GetTypeName() const { - return "AllInShowCardsMessage.PlayerAllIn"; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int AllInShowCardsMessage::kGameIdFieldNumber; -const int AllInShowCardsMessage::kPlayersAllInFieldNumber; -#endif // !_MSC_VER - -AllInShowCardsMessage::AllInShowCardsMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void AllInShowCardsMessage::InitAsDefaultInstance() { -} - -AllInShowCardsMessage::AllInShowCardsMessage(const AllInShowCardsMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void AllInShowCardsMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AllInShowCardsMessage::~AllInShowCardsMessage() { - SharedDtor(); -} - -void AllInShowCardsMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AllInShowCardsMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AllInShowCardsMessage& AllInShowCardsMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AllInShowCardsMessage* AllInShowCardsMessage::default_instance_ = NULL; - -AllInShowCardsMessage* AllInShowCardsMessage::New() const { - return new AllInShowCardsMessage; -} - -void AllInShowCardsMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - } - playersallin_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool AllInShowCardsMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_playersAllIn; - break; - } - - // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_playersAllIn: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_playersallin())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_playersAllIn; - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void AllInShowCardsMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - for (int i = 0; i < this->playersallin_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, this->playersallin(i), output); - } - -} - -int AllInShowCardsMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - } - // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - total_size += 1 * this->playersallin_size(); - for (int i = 0; i < this->playersallin_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->playersallin(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AllInShowCardsMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void AllInShowCardsMessage::MergeFrom(const AllInShowCardsMessage& from) { - GOOGLE_CHECK_NE(&from, this); - playersallin_.MergeFrom(from.playersallin_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - } -} - -void AllInShowCardsMessage::CopyFrom(const AllInShowCardsMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AllInShowCardsMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - for (int i = 0; i < playersallin_size(); i++) { - if (!this->playersallin(i).IsInitialized()) return false; - } - return true; -} - -void AllInShowCardsMessage::Swap(AllInShowCardsMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - playersallin_.Swap(&other->playersallin_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AllInShowCardsMessage::GetTypeName() const { - return "AllInShowCardsMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int EndOfHandShowCardsMessage::kGameIdFieldNumber; -const int EndOfHandShowCardsMessage::kPlayerResultsFieldNumber; -#endif // !_MSC_VER - -EndOfHandShowCardsMessage::EndOfHandShowCardsMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void EndOfHandShowCardsMessage::InitAsDefaultInstance() { -} - -EndOfHandShowCardsMessage::EndOfHandShowCardsMessage(const EndOfHandShowCardsMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void EndOfHandShowCardsMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -EndOfHandShowCardsMessage::~EndOfHandShowCardsMessage() { - SharedDtor(); -} - -void EndOfHandShowCardsMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void EndOfHandShowCardsMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const EndOfHandShowCardsMessage& EndOfHandShowCardsMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -EndOfHandShowCardsMessage* EndOfHandShowCardsMessage::default_instance_ = NULL; - -EndOfHandShowCardsMessage* EndOfHandShowCardsMessage::New() const { - return new EndOfHandShowCardsMessage; -} - -void EndOfHandShowCardsMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - } - playerresults_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool EndOfHandShowCardsMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_playerResults; - break; - } - - // repeated .PlayerResult playerResults = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_playerResults: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_playerresults())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_playerResults; - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void EndOfHandShowCardsMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // repeated .PlayerResult playerResults = 2; - for (int i = 0; i < this->playerresults_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, this->playerresults(i), output); - } - -} - -int EndOfHandShowCardsMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - } - // repeated .PlayerResult playerResults = 2; - total_size += 1 * this->playerresults_size(); - for (int i = 0; i < this->playerresults_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->playerresults(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void EndOfHandShowCardsMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void EndOfHandShowCardsMessage::MergeFrom(const EndOfHandShowCardsMessage& from) { - GOOGLE_CHECK_NE(&from, this); - playerresults_.MergeFrom(from.playerresults_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - } -} - -void EndOfHandShowCardsMessage::CopyFrom(const EndOfHandShowCardsMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EndOfHandShowCardsMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - for (int i = 0; i < playerresults_size(); i++) { - if (!this->playerresults(i).IsInitialized()) return false; - } - return true; -} - -void EndOfHandShowCardsMessage::Swap(EndOfHandShowCardsMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - playerresults_.Swap(&other->playerresults_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string EndOfHandShowCardsMessage::GetTypeName() const { - return "EndOfHandShowCardsMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int EndOfHandHideCardsMessage::kGameIdFieldNumber; -const int EndOfHandHideCardsMessage::kPlayerIdFieldNumber; -const int EndOfHandHideCardsMessage::kMoneyWonFieldNumber; -const int EndOfHandHideCardsMessage::kPlayerMoneyFieldNumber; -#endif // !_MSC_VER - -EndOfHandHideCardsMessage::EndOfHandHideCardsMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void EndOfHandHideCardsMessage::InitAsDefaultInstance() { -} - -EndOfHandHideCardsMessage::EndOfHandHideCardsMessage(const EndOfHandHideCardsMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void EndOfHandHideCardsMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - moneywon_ = 0u; - playermoney_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -EndOfHandHideCardsMessage::~EndOfHandHideCardsMessage() { - SharedDtor(); -} - -void EndOfHandHideCardsMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void EndOfHandHideCardsMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const EndOfHandHideCardsMessage& EndOfHandHideCardsMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -EndOfHandHideCardsMessage* EndOfHandHideCardsMessage::default_instance_ = NULL; - -EndOfHandHideCardsMessage* EndOfHandHideCardsMessage::New() const { - return new EndOfHandHideCardsMessage; -} - -void EndOfHandHideCardsMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - playerid_ = 0u; - moneywon_ = 0u; - playermoney_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool EndOfHandHideCardsMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_moneyWon; - break; - } - - // required uint32 moneyWon = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_moneyWon: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &moneywon_))); - set_has_moneywon(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_playerMoney; - break; - } - - // required uint32 playerMoney = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerMoney: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playermoney_))); - set_has_playermoney(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void EndOfHandHideCardsMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - // required uint32 moneyWon = 3; - if (has_moneywon()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->moneywon(), output); - } - - // required uint32 playerMoney = 4; - if (has_playermoney()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->playermoney(), output); - } - -} - -int EndOfHandHideCardsMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - // required uint32 moneyWon = 3; - if (has_moneywon()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->moneywon()); - } - - // required uint32 playerMoney = 4; - if (has_playermoney()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playermoney()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void EndOfHandHideCardsMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void EndOfHandHideCardsMessage::MergeFrom(const EndOfHandHideCardsMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - if (from.has_moneywon()) { - set_moneywon(from.moneywon()); - } - if (from.has_playermoney()) { - set_playermoney(from.playermoney()); - } - } -} - -void EndOfHandHideCardsMessage::CopyFrom(const EndOfHandHideCardsMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EndOfHandHideCardsMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; - - return true; -} - -void EndOfHandHideCardsMessage::Swap(EndOfHandHideCardsMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(moneywon_, other->moneywon_); - std::swap(playermoney_, other->playermoney_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string EndOfHandHideCardsMessage::GetTypeName() const { - return "EndOfHandHideCardsMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -#endif // !_MSC_VER - -ShowMyCardsRequestMessage::ShowMyCardsRequestMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void ShowMyCardsRequestMessage::InitAsDefaultInstance() { -} - -ShowMyCardsRequestMessage::ShowMyCardsRequestMessage(const ShowMyCardsRequestMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void ShowMyCardsRequestMessage::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ShowMyCardsRequestMessage::~ShowMyCardsRequestMessage() { - SharedDtor(); -} - -void ShowMyCardsRequestMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void ShowMyCardsRequestMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ShowMyCardsRequestMessage& ShowMyCardsRequestMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -ShowMyCardsRequestMessage* ShowMyCardsRequestMessage::default_instance_ = NULL; - -ShowMyCardsRequestMessage* ShowMyCardsRequestMessage::New() const { - return new ShowMyCardsRequestMessage; -} - -void ShowMyCardsRequestMessage::Clear() { - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool ShowMyCardsRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - } - return true; -#undef DO_ -} - -void ShowMyCardsRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { -} - -int ShowMyCardsRequestMessage::ByteSize() const { - int total_size = 0; - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ShowMyCardsRequestMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void ShowMyCardsRequestMessage::MergeFrom(const ShowMyCardsRequestMessage& from) { - GOOGLE_CHECK_NE(&from, this); -} - -void ShowMyCardsRequestMessage::CopyFrom(const ShowMyCardsRequestMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ShowMyCardsRequestMessage::IsInitialized() const { - - return true; -} - -void ShowMyCardsRequestMessage::Swap(ShowMyCardsRequestMessage* other) { - if (other != this) { - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string ShowMyCardsRequestMessage::GetTypeName() const { - return "ShowMyCardsRequestMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int AfterHandShowCardsMessage::kPlayerResultFieldNumber; -#endif // !_MSC_VER - -AfterHandShowCardsMessage::AfterHandShowCardsMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void AfterHandShowCardsMessage::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - playerresult_ = const_cast< ::PlayerResult*>( - ::PlayerResult::internal_default_instance()); -#else - playerresult_ = const_cast< ::PlayerResult*>(&::PlayerResult::default_instance()); -#endif -} - -AfterHandShowCardsMessage::AfterHandShowCardsMessage(const AfterHandShowCardsMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void AfterHandShowCardsMessage::SharedCtor() { - _cached_size_ = 0; - playerresult_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AfterHandShowCardsMessage::~AfterHandShowCardsMessage() { - SharedDtor(); -} - -void AfterHandShowCardsMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete playerresult_; - } -} - -void AfterHandShowCardsMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AfterHandShowCardsMessage& AfterHandShowCardsMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AfterHandShowCardsMessage* AfterHandShowCardsMessage::default_instance_ = NULL; - -AfterHandShowCardsMessage* AfterHandShowCardsMessage::New() const { - return new AfterHandShowCardsMessage; -} - -void AfterHandShowCardsMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_playerresult()) { - if (playerresult_ != NULL) playerresult_->::PlayerResult::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool AfterHandShowCardsMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .PlayerResult playerResult = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_playerresult())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void AfterHandShowCardsMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .PlayerResult playerResult = 1; - if (has_playerresult()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 1, this->playerresult(), output); - } - -} - -int AfterHandShowCardsMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .PlayerResult playerResult = 1; - if (has_playerresult()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->playerresult()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AfterHandShowCardsMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void AfterHandShowCardsMessage::MergeFrom(const AfterHandShowCardsMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_playerresult()) { - mutable_playerresult()->::PlayerResult::MergeFrom(from.playerresult()); - } - } -} - -void AfterHandShowCardsMessage::CopyFrom(const AfterHandShowCardsMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AfterHandShowCardsMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - if (has_playerresult()) { - if (!this->playerresult().IsInitialized()) return false; - } - return true; -} - -void AfterHandShowCardsMessage::Swap(AfterHandShowCardsMessage* other) { - if (other != this) { - std::swap(playerresult_, other->playerresult_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AfterHandShowCardsMessage::GetTypeName() const { - return "AfterHandShowCardsMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int EndOfGameMessage::kGameIdFieldNumber; -const int EndOfGameMessage::kWinnerPlayerIdFieldNumber; -#endif // !_MSC_VER - -EndOfGameMessage::EndOfGameMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void EndOfGameMessage::InitAsDefaultInstance() { -} - -EndOfGameMessage::EndOfGameMessage(const EndOfGameMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void EndOfGameMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - winnerplayerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -EndOfGameMessage::~EndOfGameMessage() { - SharedDtor(); -} - -void EndOfGameMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void EndOfGameMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const EndOfGameMessage& EndOfGameMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -EndOfGameMessage* EndOfGameMessage::default_instance_ = NULL; - -EndOfGameMessage* EndOfGameMessage::New() const { - return new EndOfGameMessage; -} - -void EndOfGameMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - winnerplayerid_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool EndOfGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_winnerPlayerId; - break; - } - - // required uint32 winnerPlayerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_winnerPlayerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &winnerplayerid_))); - set_has_winnerplayerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void EndOfGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 winnerPlayerId = 2; - if (has_winnerplayerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->winnerplayerid(), output); - } - -} - -int EndOfGameMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 winnerPlayerId = 2; - if (has_winnerplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->winnerplayerid()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void EndOfGameMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void EndOfGameMessage::MergeFrom(const EndOfGameMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_winnerplayerid()) { - set_winnerplayerid(from.winnerplayerid()); - } - } -} - -void EndOfGameMessage::CopyFrom(const EndOfGameMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EndOfGameMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void EndOfGameMessage::Swap(EndOfGameMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(winnerplayerid_, other->winnerplayerid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string EndOfGameMessage::GetTypeName() const { - return "EndOfGameMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int PlayerIdChangedMessage::kOldPlayerIdFieldNumber; -const int PlayerIdChangedMessage::kNewPlayerIdFieldNumber; -#endif // !_MSC_VER - -PlayerIdChangedMessage::PlayerIdChangedMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void PlayerIdChangedMessage::InitAsDefaultInstance() { -} - -PlayerIdChangedMessage::PlayerIdChangedMessage(const PlayerIdChangedMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void PlayerIdChangedMessage::SharedCtor() { - _cached_size_ = 0; - oldplayerid_ = 0u; - newplayerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PlayerIdChangedMessage::~PlayerIdChangedMessage() { - SharedDtor(); -} - -void PlayerIdChangedMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void PlayerIdChangedMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const PlayerIdChangedMessage& PlayerIdChangedMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -PlayerIdChangedMessage* PlayerIdChangedMessage::default_instance_ = NULL; - -PlayerIdChangedMessage* PlayerIdChangedMessage::New() const { - return new PlayerIdChangedMessage; -} - -void PlayerIdChangedMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - oldplayerid_ = 0u; - newplayerid_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool PlayerIdChangedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 oldPlayerId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &oldplayerid_))); - set_has_oldplayerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_newPlayerId; - break; - } - - // required uint32 newPlayerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_newPlayerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &newplayerid_))); - set_has_newplayerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void PlayerIdChangedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 oldPlayerId = 1; - if (has_oldplayerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->oldplayerid(), output); - } - - // required uint32 newPlayerId = 2; - if (has_newplayerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->newplayerid(), output); - } - -} - -int PlayerIdChangedMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 oldPlayerId = 1; - if (has_oldplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->oldplayerid()); - } - - // required uint32 newPlayerId = 2; - if (has_newplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->newplayerid()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PlayerIdChangedMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void PlayerIdChangedMessage::MergeFrom(const PlayerIdChangedMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_oldplayerid()) { - set_oldplayerid(from.oldplayerid()); - } - if (from.has_newplayerid()) { - set_newplayerid(from.newplayerid()); - } - } -} - -void PlayerIdChangedMessage::CopyFrom(const PlayerIdChangedMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PlayerIdChangedMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void PlayerIdChangedMessage::Swap(PlayerIdChangedMessage* other) { - if (other != this) { - std::swap(oldplayerid_, other->oldplayerid_); - std::swap(newplayerid_, other->newplayerid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string PlayerIdChangedMessage::GetTypeName() const { - return "PlayerIdChangedMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int AskKickPlayerMessage::kGameIdFieldNumber; -const int AskKickPlayerMessage::kPlayerIdFieldNumber; -#endif // !_MSC_VER - -AskKickPlayerMessage::AskKickPlayerMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void AskKickPlayerMessage::InitAsDefaultInstance() { -} - -AskKickPlayerMessage::AskKickPlayerMessage(const AskKickPlayerMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void AskKickPlayerMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AskKickPlayerMessage::~AskKickPlayerMessage() { - SharedDtor(); -} - -void AskKickPlayerMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AskKickPlayerMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AskKickPlayerMessage& AskKickPlayerMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AskKickPlayerMessage* AskKickPlayerMessage::default_instance_ = NULL; - -AskKickPlayerMessage* AskKickPlayerMessage::New() const { - return new AskKickPlayerMessage; -} - -void AskKickPlayerMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - playerid_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool AskKickPlayerMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void AskKickPlayerMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - -} - -int AskKickPlayerMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AskKickPlayerMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void AskKickPlayerMessage::MergeFrom(const AskKickPlayerMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - } -} - -void AskKickPlayerMessage::CopyFrom(const AskKickPlayerMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AskKickPlayerMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void AskKickPlayerMessage::Swap(AskKickPlayerMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AskKickPlayerMessage::GetTypeName() const { - return "AskKickPlayerMessage"; -} - - -// =================================================================== - +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed YourActionRejectedMessage_RejectionReason_strings[3] = {}; + +static const char YourActionRejectedMessage_RejectionReason_names[] = + "rejectedActionNotAllowed" + "rejectedInvalidGameState" + "rejectedNotYourTurn"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry YourActionRejectedMessage_RejectionReason_entries[] = { + { {YourActionRejectedMessage_RejectionReason_names + 0, 24}, 3 }, + { {YourActionRejectedMessage_RejectionReason_names + 24, 24}, 1 }, + { {YourActionRejectedMessage_RejectionReason_names + 48, 19}, 2 }, +}; + +static const int YourActionRejectedMessage_RejectionReason_entries_by_number[] = { + 1, // 1 -> rejectedInvalidGameState + 2, // 2 -> rejectedNotYourTurn + 0, // 3 -> rejectedActionNotAllowed +}; + +const std::string& YourActionRejectedMessage_RejectionReason_Name( + YourActionRejectedMessage_RejectionReason value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + YourActionRejectedMessage_RejectionReason_entries, + YourActionRejectedMessage_RejectionReason_entries_by_number, + 3, YourActionRejectedMessage_RejectionReason_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + YourActionRejectedMessage_RejectionReason_entries, + YourActionRejectedMessage_RejectionReason_entries_by_number, + 3, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + YourActionRejectedMessage_RejectionReason_strings[idx].get(); +} +bool YourActionRejectedMessage_RejectionReason_Parse( + const std::string& name, YourActionRejectedMessage_RejectionReason* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + YourActionRejectedMessage_RejectionReason_entries, 3, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::rejectedInvalidGameState; +constexpr YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::rejectedNotYourTurn; +constexpr YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::rejectedActionNotAllowed; +constexpr YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::RejectionReason_MIN; +constexpr YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::RejectionReason_MAX; +constexpr int YourActionRejectedMessage::RejectionReason_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool AskKickDeniedMessage_KickDeniedReason_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -17455,838 +2710,68 @@ bool AskKickDeniedMessage_KickDeniedReason_IsValid(int value) { } } -#ifndef _MSC_VER -const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedInvalidGameState; -const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedNotPossible; -const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedTryAgainLater; -const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedAlreadyInProgress; -const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedInvalidPlayerId; -const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::KickDeniedReason_MIN; -const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::KickDeniedReason_MAX; -const int AskKickDeniedMessage::KickDeniedReason_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int AskKickDeniedMessage::kGameIdFieldNumber; -const int AskKickDeniedMessage::kPlayerIdFieldNumber; -const int AskKickDeniedMessage::kKickDeniedReasonFieldNumber; -#endif // !_MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed AskKickDeniedMessage_KickDeniedReason_strings[5] = {}; -AskKickDeniedMessage::AskKickDeniedMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); +static const char AskKickDeniedMessage_KickDeniedReason_names[] = + "kickDeniedAlreadyInProgress" + "kickDeniedInvalidGameState" + "kickDeniedInvalidPlayerId" + "kickDeniedNotPossible" + "kickDeniedTryAgainLater"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry AskKickDeniedMessage_KickDeniedReason_entries[] = { + { {AskKickDeniedMessage_KickDeniedReason_names + 0, 27}, 3 }, + { {AskKickDeniedMessage_KickDeniedReason_names + 27, 26}, 0 }, + { {AskKickDeniedMessage_KickDeniedReason_names + 53, 25}, 4 }, + { {AskKickDeniedMessage_KickDeniedReason_names + 78, 21}, 1 }, + { {AskKickDeniedMessage_KickDeniedReason_names + 99, 23}, 2 }, +}; + +static const int AskKickDeniedMessage_KickDeniedReason_entries_by_number[] = { + 1, // 0 -> kickDeniedInvalidGameState + 3, // 1 -> kickDeniedNotPossible + 4, // 2 -> kickDeniedTryAgainLater + 0, // 3 -> kickDeniedAlreadyInProgress + 2, // 4 -> kickDeniedInvalidPlayerId +}; + +const std::string& AskKickDeniedMessage_KickDeniedReason_Name( + AskKickDeniedMessage_KickDeniedReason value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + AskKickDeniedMessage_KickDeniedReason_entries, + AskKickDeniedMessage_KickDeniedReason_entries_by_number, + 5, AskKickDeniedMessage_KickDeniedReason_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + AskKickDeniedMessage_KickDeniedReason_entries, + AskKickDeniedMessage_KickDeniedReason_entries_by_number, + 5, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + AskKickDeniedMessage_KickDeniedReason_strings[idx].get(); } - -void AskKickDeniedMessage::InitAsDefaultInstance() { -} - -AskKickDeniedMessage::AskKickDeniedMessage(const AskKickDeniedMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void AskKickDeniedMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - kickdeniedreason_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AskKickDeniedMessage::~AskKickDeniedMessage() { - SharedDtor(); -} - -void AskKickDeniedMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif +bool AskKickDeniedMessage_KickDeniedReason_Parse( + const std::string& name, AskKickDeniedMessage_KickDeniedReason* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + AskKickDeniedMessage_KickDeniedReason_entries, 5, name, &int_value); + if (success) { + *value = static_cast(int_value); } + return success; } - -void AskKickDeniedMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AskKickDeniedMessage& AskKickDeniedMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AskKickDeniedMessage* AskKickDeniedMessage::default_instance_ = NULL; - -AskKickDeniedMessage* AskKickDeniedMessage::New() const { - return new AskKickDeniedMessage; -} - -void AskKickDeniedMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - playerid_ = 0u; - kickdeniedreason_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool AskKickDeniedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_kickDeniedReason; - break; - } - - // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_kickDeniedReason: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::AskKickDeniedMessage_KickDeniedReason_IsValid(value)) { - set_kickdeniedreason(static_cast< ::AskKickDeniedMessage_KickDeniedReason >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void AskKickDeniedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - if (has_kickdeniedreason()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->kickdeniedreason(), output); - } - -} - -int AskKickDeniedMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 playerId = 2; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - if (has_kickdeniedreason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->kickdeniedreason()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AskKickDeniedMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void AskKickDeniedMessage::MergeFrom(const AskKickDeniedMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - if (from.has_kickdeniedreason()) { - set_kickdeniedreason(from.kickdeniedreason()); - } - } -} - -void AskKickDeniedMessage::CopyFrom(const AskKickDeniedMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AskKickDeniedMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - - return true; -} - -void AskKickDeniedMessage::Swap(AskKickDeniedMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(kickdeniedreason_, other->kickdeniedreason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AskKickDeniedMessage::GetTypeName() const { - return "AskKickDeniedMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int StartKickPetitionMessage::kGameIdFieldNumber; -const int StartKickPetitionMessage::kPetitionIdFieldNumber; -const int StartKickPetitionMessage::kProposingPlayerIdFieldNumber; -const int StartKickPetitionMessage::kKickPlayerIdFieldNumber; -const int StartKickPetitionMessage::kKickTimeoutSecFieldNumber; -const int StartKickPetitionMessage::kNumVotesNeededToKickFieldNumber; -#endif // !_MSC_VER - -StartKickPetitionMessage::StartKickPetitionMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void StartKickPetitionMessage::InitAsDefaultInstance() { -} - -StartKickPetitionMessage::StartKickPetitionMessage(const StartKickPetitionMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void StartKickPetitionMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - petitionid_ = 0u; - proposingplayerid_ = 0u; - kickplayerid_ = 0u; - kicktimeoutsec_ = 0u; - numvotesneededtokick_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -StartKickPetitionMessage::~StartKickPetitionMessage() { - SharedDtor(); -} - -void StartKickPetitionMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void StartKickPetitionMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const StartKickPetitionMessage& StartKickPetitionMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -StartKickPetitionMessage* StartKickPetitionMessage::default_instance_ = NULL; - -StartKickPetitionMessage* StartKickPetitionMessage::New() const { - return new StartKickPetitionMessage; -} - -void StartKickPetitionMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - petitionid_ = 0u; - proposingplayerid_ = 0u; - kickplayerid_ = 0u; - kicktimeoutsec_ = 0u; - numvotesneededtokick_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool StartKickPetitionMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_petitionId; - break; - } - - // required uint32 petitionId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_petitionId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &petitionid_))); - set_has_petitionid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_proposingPlayerId; - break; - } - - // required uint32 proposingPlayerId = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_proposingPlayerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &proposingplayerid_))); - set_has_proposingplayerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_kickPlayerId; - break; - } - - // required uint32 kickPlayerId = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_kickPlayerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &kickplayerid_))); - set_has_kickplayerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_kickTimeoutSec; - break; - } - - // required uint32 kickTimeoutSec = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_kickTimeoutSec: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &kicktimeoutsec_))); - set_has_kicktimeoutsec(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(48)) goto parse_numVotesNeededToKick; - break; - } - - // required uint32 numVotesNeededToKick = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_numVotesNeededToKick: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &numvotesneededtokick_))); - set_has_numvotesneededtokick(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void StartKickPetitionMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 petitionId = 2; - if (has_petitionid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->petitionid(), output); - } - - // required uint32 proposingPlayerId = 3; - if (has_proposingplayerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->proposingplayerid(), output); - } - - // required uint32 kickPlayerId = 4; - if (has_kickplayerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->kickplayerid(), output); - } - - // required uint32 kickTimeoutSec = 5; - if (has_kicktimeoutsec()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->kicktimeoutsec(), output); - } - - // required uint32 numVotesNeededToKick = 6; - if (has_numvotesneededtokick()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->numvotesneededtokick(), output); - } - -} - -int StartKickPetitionMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 petitionId = 2; - if (has_petitionid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->petitionid()); - } - - // required uint32 proposingPlayerId = 3; - if (has_proposingplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->proposingplayerid()); - } - - // required uint32 kickPlayerId = 4; - if (has_kickplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->kickplayerid()); - } - - // required uint32 kickTimeoutSec = 5; - if (has_kicktimeoutsec()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->kicktimeoutsec()); - } - - // required uint32 numVotesNeededToKick = 6; - if (has_numvotesneededtokick()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numvotesneededtokick()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void StartKickPetitionMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void StartKickPetitionMessage::MergeFrom(const StartKickPetitionMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_petitionid()) { - set_petitionid(from.petitionid()); - } - if (from.has_proposingplayerid()) { - set_proposingplayerid(from.proposingplayerid()); - } - if (from.has_kickplayerid()) { - set_kickplayerid(from.kickplayerid()); - } - if (from.has_kicktimeoutsec()) { - set_kicktimeoutsec(from.kicktimeoutsec()); - } - if (from.has_numvotesneededtokick()) { - set_numvotesneededtokick(from.numvotesneededtokick()); - } - } -} - -void StartKickPetitionMessage::CopyFrom(const StartKickPetitionMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StartKickPetitionMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false; - - return true; -} - -void StartKickPetitionMessage::Swap(StartKickPetitionMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(petitionid_, other->petitionid_); - std::swap(proposingplayerid_, other->proposingplayerid_); - std::swap(kickplayerid_, other->kickplayerid_); - std::swap(kicktimeoutsec_, other->kicktimeoutsec_); - std::swap(numvotesneededtokick_, other->numvotesneededtokick_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string StartKickPetitionMessage::GetTypeName() const { - return "StartKickPetitionMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int VoteKickRequestMessage::kGameIdFieldNumber; -const int VoteKickRequestMessage::kPetitionIdFieldNumber; -const int VoteKickRequestMessage::kVoteKickFieldNumber; -#endif // !_MSC_VER - -VoteKickRequestMessage::VoteKickRequestMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void VoteKickRequestMessage::InitAsDefaultInstance() { -} - -VoteKickRequestMessage::VoteKickRequestMessage(const VoteKickRequestMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void VoteKickRequestMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - petitionid_ = 0u; - votekick_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -VoteKickRequestMessage::~VoteKickRequestMessage() { - SharedDtor(); -} - -void VoteKickRequestMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void VoteKickRequestMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const VoteKickRequestMessage& VoteKickRequestMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -VoteKickRequestMessage* VoteKickRequestMessage::default_instance_ = NULL; - -VoteKickRequestMessage* VoteKickRequestMessage::New() const { - return new VoteKickRequestMessage; -} - -void VoteKickRequestMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - petitionid_ = 0u; - votekick_ = false; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool VoteKickRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_petitionId; - break; - } - - // required uint32 petitionId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_petitionId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &petitionid_))); - set_has_petitionid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_voteKick; - break; - } - - // required bool voteKick = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_voteKick: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &votekick_))); - set_has_votekick(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void VoteKickRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 petitionId = 2; - if (has_petitionid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->petitionid(), output); - } - - // required bool voteKick = 3; - if (has_votekick()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->votekick(), output); - } - -} - -int VoteKickRequestMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 petitionId = 2; - if (has_petitionid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->petitionid()); - } - - // required bool voteKick = 3; - if (has_votekick()) { - total_size += 1 + 1; - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void VoteKickRequestMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void VoteKickRequestMessage::MergeFrom(const VoteKickRequestMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_petitionid()) { - set_petitionid(from.petitionid()); - } - if (from.has_votekick()) { - set_votekick(from.votekick()); - } - } -} - -void VoteKickRequestMessage::CopyFrom(const VoteKickRequestMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VoteKickRequestMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - - return true; -} - -void VoteKickRequestMessage::Swap(VoteKickRequestMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(petitionid_, other->petitionid_); - std::swap(votekick_, other->votekick_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string VoteKickRequestMessage::GetTypeName() const { - return "VoteKickRequestMessage"; -} - - -// =================================================================== - +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedInvalidGameState; +constexpr AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedNotPossible; +constexpr AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedTryAgainLater; +constexpr AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedAlreadyInProgress; +constexpr AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedInvalidPlayerId; +constexpr AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::KickDeniedReason_MIN; +constexpr AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::KickDeniedReason_MAX; +constexpr int AskKickDeniedMessage::KickDeniedReason_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool VoteKickReplyMessage_VoteKickReplyType_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -18296,565 +2781,60 @@ bool VoteKickReplyMessage_VoteKickReplyType_IsValid(int value) { } } -#ifndef _MSC_VER -const VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::voteKickAck; -const VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::voteKickDeniedInvalid; -const VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::voteKickDeniedAlreadyVoted; -const VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::VoteKickReplyType_MIN; -const VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::VoteKickReplyType_MAX; -const int VoteKickReplyMessage::VoteKickReplyType_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int VoteKickReplyMessage::kGameIdFieldNumber; -const int VoteKickReplyMessage::kPetitionIdFieldNumber; -const int VoteKickReplyMessage::kVoteKickReplyTypeFieldNumber; -#endif // !_MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed VoteKickReplyMessage_VoteKickReplyType_strings[3] = {}; -VoteKickReplyMessage::VoteKickReplyMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); +static const char VoteKickReplyMessage_VoteKickReplyType_names[] = + "voteKickAck" + "voteKickDeniedAlreadyVoted" + "voteKickDeniedInvalid"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry VoteKickReplyMessage_VoteKickReplyType_entries[] = { + { {VoteKickReplyMessage_VoteKickReplyType_names + 0, 11}, 0 }, + { {VoteKickReplyMessage_VoteKickReplyType_names + 11, 26}, 2 }, + { {VoteKickReplyMessage_VoteKickReplyType_names + 37, 21}, 1 }, +}; + +static const int VoteKickReplyMessage_VoteKickReplyType_entries_by_number[] = { + 0, // 0 -> voteKickAck + 2, // 1 -> voteKickDeniedInvalid + 1, // 2 -> voteKickDeniedAlreadyVoted +}; + +const std::string& VoteKickReplyMessage_VoteKickReplyType_Name( + VoteKickReplyMessage_VoteKickReplyType value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + VoteKickReplyMessage_VoteKickReplyType_entries, + VoteKickReplyMessage_VoteKickReplyType_entries_by_number, + 3, VoteKickReplyMessage_VoteKickReplyType_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + VoteKickReplyMessage_VoteKickReplyType_entries, + VoteKickReplyMessage_VoteKickReplyType_entries_by_number, + 3, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + VoteKickReplyMessage_VoteKickReplyType_strings[idx].get(); } - -void VoteKickReplyMessage::InitAsDefaultInstance() { -} - -VoteKickReplyMessage::VoteKickReplyMessage(const VoteKickReplyMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void VoteKickReplyMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - petitionid_ = 0u; - votekickreplytype_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -VoteKickReplyMessage::~VoteKickReplyMessage() { - SharedDtor(); -} - -void VoteKickReplyMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif +bool VoteKickReplyMessage_VoteKickReplyType_Parse( + const std::string& name, VoteKickReplyMessage_VoteKickReplyType* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + VoteKickReplyMessage_VoteKickReplyType_entries, 3, name, &int_value); + if (success) { + *value = static_cast(int_value); } + return success; } - -void VoteKickReplyMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const VoteKickReplyMessage& VoteKickReplyMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -VoteKickReplyMessage* VoteKickReplyMessage::default_instance_ = NULL; - -VoteKickReplyMessage* VoteKickReplyMessage::New() const { - return new VoteKickReplyMessage; -} - -void VoteKickReplyMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - petitionid_ = 0u; - votekickreplytype_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool VoteKickReplyMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_petitionId; - break; - } - - // required uint32 petitionId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_petitionId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &petitionid_))); - set_has_petitionid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_voteKickReplyType; - break; - } - - // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_voteKickReplyType: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::VoteKickReplyMessage_VoteKickReplyType_IsValid(value)) { - set_votekickreplytype(static_cast< ::VoteKickReplyMessage_VoteKickReplyType >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void VoteKickReplyMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 petitionId = 2; - if (has_petitionid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->petitionid(), output); - } - - // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - if (has_votekickreplytype()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->votekickreplytype(), output); - } - -} - -int VoteKickReplyMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 petitionId = 2; - if (has_petitionid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->petitionid()); - } - - // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - if (has_votekickreplytype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->votekickreplytype()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void VoteKickReplyMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void VoteKickReplyMessage::MergeFrom(const VoteKickReplyMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_petitionid()) { - set_petitionid(from.petitionid()); - } - if (from.has_votekickreplytype()) { - set_votekickreplytype(from.votekickreplytype()); - } - } -} - -void VoteKickReplyMessage::CopyFrom(const VoteKickReplyMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VoteKickReplyMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - - return true; -} - -void VoteKickReplyMessage::Swap(VoteKickReplyMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(petitionid_, other->petitionid_); - std::swap(votekickreplytype_, other->votekickreplytype_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string VoteKickReplyMessage::GetTypeName() const { - return "VoteKickReplyMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int KickPetitionUpdateMessage::kGameIdFieldNumber; -const int KickPetitionUpdateMessage::kPetitionIdFieldNumber; -const int KickPetitionUpdateMessage::kNumVotesAgainstKickingFieldNumber; -const int KickPetitionUpdateMessage::kNumVotesInFavourOfKickingFieldNumber; -const int KickPetitionUpdateMessage::kNumVotesNeededToKickFieldNumber; -#endif // !_MSC_VER - -KickPetitionUpdateMessage::KickPetitionUpdateMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void KickPetitionUpdateMessage::InitAsDefaultInstance() { -} - -KickPetitionUpdateMessage::KickPetitionUpdateMessage(const KickPetitionUpdateMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void KickPetitionUpdateMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - petitionid_ = 0u; - numvotesagainstkicking_ = 0u; - numvotesinfavourofkicking_ = 0u; - numvotesneededtokick_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -KickPetitionUpdateMessage::~KickPetitionUpdateMessage() { - SharedDtor(); -} - -void KickPetitionUpdateMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void KickPetitionUpdateMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const KickPetitionUpdateMessage& KickPetitionUpdateMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -KickPetitionUpdateMessage* KickPetitionUpdateMessage::default_instance_ = NULL; - -KickPetitionUpdateMessage* KickPetitionUpdateMessage::New() const { - return new KickPetitionUpdateMessage; -} - -void KickPetitionUpdateMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - petitionid_ = 0u; - numvotesagainstkicking_ = 0u; - numvotesinfavourofkicking_ = 0u; - numvotesneededtokick_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool KickPetitionUpdateMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_petitionId; - break; - } - - // required uint32 petitionId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_petitionId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &petitionid_))); - set_has_petitionid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_numVotesAgainstKicking; - break; - } - - // required uint32 numVotesAgainstKicking = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_numVotesAgainstKicking: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &numvotesagainstkicking_))); - set_has_numvotesagainstkicking(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_numVotesInFavourOfKicking; - break; - } - - // required uint32 numVotesInFavourOfKicking = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_numVotesInFavourOfKicking: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &numvotesinfavourofkicking_))); - set_has_numvotesinfavourofkicking(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_numVotesNeededToKick; - break; - } - - // required uint32 numVotesNeededToKick = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_numVotesNeededToKick: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &numvotesneededtokick_))); - set_has_numvotesneededtokick(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void KickPetitionUpdateMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 petitionId = 2; - if (has_petitionid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->petitionid(), output); - } - - // required uint32 numVotesAgainstKicking = 3; - if (has_numvotesagainstkicking()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->numvotesagainstkicking(), output); - } - - // required uint32 numVotesInFavourOfKicking = 4; - if (has_numvotesinfavourofkicking()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->numvotesinfavourofkicking(), output); - } - - // required uint32 numVotesNeededToKick = 5; - if (has_numvotesneededtokick()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->numvotesneededtokick(), output); - } - -} - -int KickPetitionUpdateMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 petitionId = 2; - if (has_petitionid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->petitionid()); - } - - // required uint32 numVotesAgainstKicking = 3; - if (has_numvotesagainstkicking()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numvotesagainstkicking()); - } - - // required uint32 numVotesInFavourOfKicking = 4; - if (has_numvotesinfavourofkicking()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numvotesinfavourofkicking()); - } - - // required uint32 numVotesNeededToKick = 5; - if (has_numvotesneededtokick()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numvotesneededtokick()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void KickPetitionUpdateMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void KickPetitionUpdateMessage::MergeFrom(const KickPetitionUpdateMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_petitionid()) { - set_petitionid(from.petitionid()); - } - if (from.has_numvotesagainstkicking()) { - set_numvotesagainstkicking(from.numvotesagainstkicking()); - } - if (from.has_numvotesinfavourofkicking()) { - set_numvotesinfavourofkicking(from.numvotesinfavourofkicking()); - } - if (from.has_numvotesneededtokick()) { - set_numvotesneededtokick(from.numvotesneededtokick()); - } - } -} - -void KickPetitionUpdateMessage::CopyFrom(const KickPetitionUpdateMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool KickPetitionUpdateMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; - - return true; -} - -void KickPetitionUpdateMessage::Swap(KickPetitionUpdateMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(petitionid_, other->petitionid_); - std::swap(numvotesagainstkicking_, other->numvotesagainstkicking_); - std::swap(numvotesinfavourofkicking_, other->numvotesinfavourofkicking_); - std::swap(numvotesneededtokick_, other->numvotesneededtokick_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string KickPetitionUpdateMessage::GetTypeName() const { - return "KickPetitionUpdateMessage"; -} - - -// =================================================================== - +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::voteKickAck; +constexpr VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::voteKickDeniedInvalid; +constexpr VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::voteKickDeniedAlreadyVoted; +constexpr VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::VoteKickReplyType_MIN; +constexpr VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::VoteKickReplyType_MAX; +constexpr int VoteKickReplyMessage::VoteKickReplyType_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool EndKickPetitionMessage_PetitionEndReason_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -18865,363 +2845,64 @@ bool EndKickPetitionMessage_PetitionEndReason_IsValid(int value) { } } -#ifndef _MSC_VER -const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionEndEnoughVotes; -const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionEndTooFewPlayers; -const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionEndPlayerLeft; -const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionEndTimeout; -const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::PetitionEndReason_MIN; -const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::PetitionEndReason_MAX; -const int EndKickPetitionMessage::PetitionEndReason_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int EndKickPetitionMessage::kGameIdFieldNumber; -const int EndKickPetitionMessage::kPetitionIdFieldNumber; -const int EndKickPetitionMessage::kNumVotesAgainstKickingFieldNumber; -const int EndKickPetitionMessage::kNumVotesInFavourOfKickingFieldNumber; -const int EndKickPetitionMessage::kResultPlayerKickedFieldNumber; -const int EndKickPetitionMessage::kPetitionEndReasonFieldNumber; -#endif // !_MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed EndKickPetitionMessage_PetitionEndReason_strings[4] = {}; -EndKickPetitionMessage::EndKickPetitionMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); +static const char EndKickPetitionMessage_PetitionEndReason_names[] = + "petitionEndEnoughVotes" + "petitionEndPlayerLeft" + "petitionEndTimeout" + "petitionEndTooFewPlayers"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry EndKickPetitionMessage_PetitionEndReason_entries[] = { + { {EndKickPetitionMessage_PetitionEndReason_names + 0, 22}, 0 }, + { {EndKickPetitionMessage_PetitionEndReason_names + 22, 21}, 2 }, + { {EndKickPetitionMessage_PetitionEndReason_names + 43, 18}, 3 }, + { {EndKickPetitionMessage_PetitionEndReason_names + 61, 24}, 1 }, +}; + +static const int EndKickPetitionMessage_PetitionEndReason_entries_by_number[] = { + 0, // 0 -> petitionEndEnoughVotes + 3, // 1 -> petitionEndTooFewPlayers + 1, // 2 -> petitionEndPlayerLeft + 2, // 3 -> petitionEndTimeout +}; + +const std::string& EndKickPetitionMessage_PetitionEndReason_Name( + EndKickPetitionMessage_PetitionEndReason value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + EndKickPetitionMessage_PetitionEndReason_entries, + EndKickPetitionMessage_PetitionEndReason_entries_by_number, + 4, EndKickPetitionMessage_PetitionEndReason_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + EndKickPetitionMessage_PetitionEndReason_entries, + EndKickPetitionMessage_PetitionEndReason_entries_by_number, + 4, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + EndKickPetitionMessage_PetitionEndReason_strings[idx].get(); } - -void EndKickPetitionMessage::InitAsDefaultInstance() { -} - -EndKickPetitionMessage::EndKickPetitionMessage(const EndKickPetitionMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void EndKickPetitionMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - petitionid_ = 0u; - numvotesagainstkicking_ = 0u; - numvotesinfavourofkicking_ = 0u; - resultplayerkicked_ = 0u; - petitionendreason_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -EndKickPetitionMessage::~EndKickPetitionMessage() { - SharedDtor(); -} - -void EndKickPetitionMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif +bool EndKickPetitionMessage_PetitionEndReason_Parse( + const std::string& name, EndKickPetitionMessage_PetitionEndReason* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + EndKickPetitionMessage_PetitionEndReason_entries, 4, name, &int_value); + if (success) { + *value = static_cast(int_value); } + return success; } - -void EndKickPetitionMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const EndKickPetitionMessage& EndKickPetitionMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -EndKickPetitionMessage* EndKickPetitionMessage::default_instance_ = NULL; - -EndKickPetitionMessage* EndKickPetitionMessage::New() const { - return new EndKickPetitionMessage; -} - -void EndKickPetitionMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - petitionid_ = 0u; - numvotesagainstkicking_ = 0u; - numvotesinfavourofkicking_ = 0u; - resultplayerkicked_ = 0u; - petitionendreason_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool EndKickPetitionMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_petitionId; - break; - } - - // required uint32 petitionId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_petitionId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &petitionid_))); - set_has_petitionid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_numVotesAgainstKicking; - break; - } - - // required uint32 numVotesAgainstKicking = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_numVotesAgainstKicking: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &numvotesagainstkicking_))); - set_has_numvotesagainstkicking(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_numVotesInFavourOfKicking; - break; - } - - // required uint32 numVotesInFavourOfKicking = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_numVotesInFavourOfKicking: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &numvotesinfavourofkicking_))); - set_has_numvotesinfavourofkicking(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_resultPlayerKicked; - break; - } - - // required uint32 resultPlayerKicked = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_resultPlayerKicked: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &resultplayerkicked_))); - set_has_resultplayerkicked(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(48)) goto parse_petitionEndReason; - break; - } - - // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_petitionEndReason: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::EndKickPetitionMessage_PetitionEndReason_IsValid(value)) { - set_petitionendreason(static_cast< ::EndKickPetitionMessage_PetitionEndReason >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void EndKickPetitionMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 petitionId = 2; - if (has_petitionid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->petitionid(), output); - } - - // required uint32 numVotesAgainstKicking = 3; - if (has_numvotesagainstkicking()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->numvotesagainstkicking(), output); - } - - // required uint32 numVotesInFavourOfKicking = 4; - if (has_numvotesinfavourofkicking()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->numvotesinfavourofkicking(), output); - } - - // required uint32 resultPlayerKicked = 5; - if (has_resultplayerkicked()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->resultplayerkicked(), output); - } - - // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - if (has_petitionendreason()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 6, this->petitionendreason(), output); - } - -} - -int EndKickPetitionMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 petitionId = 2; - if (has_petitionid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->petitionid()); - } - - // required uint32 numVotesAgainstKicking = 3; - if (has_numvotesagainstkicking()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numvotesagainstkicking()); - } - - // required uint32 numVotesInFavourOfKicking = 4; - if (has_numvotesinfavourofkicking()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numvotesinfavourofkicking()); - } - - // required uint32 resultPlayerKicked = 5; - if (has_resultplayerkicked()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->resultplayerkicked()); - } - - // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - if (has_petitionendreason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->petitionendreason()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void EndKickPetitionMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void EndKickPetitionMessage::MergeFrom(const EndKickPetitionMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_petitionid()) { - set_petitionid(from.petitionid()); - } - if (from.has_numvotesagainstkicking()) { - set_numvotesagainstkicking(from.numvotesagainstkicking()); - } - if (from.has_numvotesinfavourofkicking()) { - set_numvotesinfavourofkicking(from.numvotesinfavourofkicking()); - } - if (from.has_resultplayerkicked()) { - set_resultplayerkicked(from.resultplayerkicked()); - } - if (from.has_petitionendreason()) { - set_petitionendreason(from.petitionendreason()); - } - } -} - -void EndKickPetitionMessage::CopyFrom(const EndKickPetitionMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EndKickPetitionMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false; - - return true; -} - -void EndKickPetitionMessage::Swap(EndKickPetitionMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(petitionid_, other->petitionid_); - std::swap(numvotesagainstkicking_, other->numvotesagainstkicking_); - std::swap(numvotesinfavourofkicking_, other->numvotesinfavourofkicking_); - std::swap(resultplayerkicked_, other->resultplayerkicked_); - std::swap(petitionendreason_, other->petitionendreason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string EndKickPetitionMessage::GetTypeName() const { - return "EndKickPetitionMessage"; -} - - -// =================================================================== - +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionEndEnoughVotes; +constexpr EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionEndTooFewPlayers; +constexpr EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionEndPlayerLeft; +constexpr EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionEndTimeout; +constexpr EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::PetitionEndReason_MIN; +constexpr EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::PetitionEndReason_MAX; +constexpr int EndKickPetitionMessage::PetitionEndReason_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool StatisticsMessage_StatisticsData_StatisticsType_IsValid(int value) { - switch(value) { + switch (value) { case 1: return true; default: @@ -19229,627 +2910,52 @@ bool StatisticsMessage_StatisticsData_StatisticsType_IsValid(int value) { } } -#ifndef _MSC_VER -const StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData::statNumberOfPlayers; -const StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData::StatisticsType_MIN; -const StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData::StatisticsType_MAX; -const int StatisticsMessage_StatisticsData::StatisticsType_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int StatisticsMessage_StatisticsData::kStatisticsTypeFieldNumber; -const int StatisticsMessage_StatisticsData::kStatisticsValueFieldNumber; -#endif // !_MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed StatisticsMessage_StatisticsData_StatisticsType_strings[1] = {}; -StatisticsMessage_StatisticsData::StatisticsMessage_StatisticsData() - : ::google::protobuf::MessageLite() { - SharedCtor(); +static const char StatisticsMessage_StatisticsData_StatisticsType_names[] = + "statNumberOfPlayers"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry StatisticsMessage_StatisticsData_StatisticsType_entries[] = { + { {StatisticsMessage_StatisticsData_StatisticsType_names + 0, 19}, 1 }, +}; + +static const int StatisticsMessage_StatisticsData_StatisticsType_entries_by_number[] = { + 0, // 1 -> statNumberOfPlayers +}; + +const std::string& StatisticsMessage_StatisticsData_StatisticsType_Name( + StatisticsMessage_StatisticsData_StatisticsType value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + StatisticsMessage_StatisticsData_StatisticsType_entries, + StatisticsMessage_StatisticsData_StatisticsType_entries_by_number, + 1, StatisticsMessage_StatisticsData_StatisticsType_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + StatisticsMessage_StatisticsData_StatisticsType_entries, + StatisticsMessage_StatisticsData_StatisticsType_entries_by_number, + 1, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + StatisticsMessage_StatisticsData_StatisticsType_strings[idx].get(); } - -void StatisticsMessage_StatisticsData::InitAsDefaultInstance() { -} - -StatisticsMessage_StatisticsData::StatisticsMessage_StatisticsData(const StatisticsMessage_StatisticsData& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void StatisticsMessage_StatisticsData::SharedCtor() { - _cached_size_ = 0; - statisticstype_ = 1; - statisticsvalue_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -StatisticsMessage_StatisticsData::~StatisticsMessage_StatisticsData() { - SharedDtor(); -} - -void StatisticsMessage_StatisticsData::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif +bool StatisticsMessage_StatisticsData_StatisticsType_Parse( + const std::string& name, StatisticsMessage_StatisticsData_StatisticsType* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + StatisticsMessage_StatisticsData_StatisticsType_entries, 1, name, &int_value); + if (success) { + *value = static_cast(int_value); } + return success; } - -void StatisticsMessage_StatisticsData::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const StatisticsMessage_StatisticsData& StatisticsMessage_StatisticsData::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -StatisticsMessage_StatisticsData* StatisticsMessage_StatisticsData::default_instance_ = NULL; - -StatisticsMessage_StatisticsData* StatisticsMessage_StatisticsData::New() const { - return new StatisticsMessage_StatisticsData; -} - -void StatisticsMessage_StatisticsData::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - statisticstype_ = 1; - statisticsvalue_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool StatisticsMessage_StatisticsData::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::StatisticsMessage_StatisticsData_StatisticsType_IsValid(value)) { - set_statisticstype(static_cast< ::StatisticsMessage_StatisticsData_StatisticsType >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_statisticsValue; - break; - } - - // required uint32 statisticsValue = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_statisticsValue: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &statisticsvalue_))); - set_has_statisticsvalue(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void StatisticsMessage_StatisticsData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; - if (has_statisticstype()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->statisticstype(), output); - } - - // required uint32 statisticsValue = 2; - if (has_statisticsvalue()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->statisticsvalue(), output); - } - -} - -int StatisticsMessage_StatisticsData::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; - if (has_statisticstype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->statisticstype()); - } - - // required uint32 statisticsValue = 2; - if (has_statisticsvalue()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->statisticsvalue()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void StatisticsMessage_StatisticsData::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void StatisticsMessage_StatisticsData::MergeFrom(const StatisticsMessage_StatisticsData& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_statisticstype()) { - set_statisticstype(from.statisticstype()); - } - if (from.has_statisticsvalue()) { - set_statisticsvalue(from.statisticsvalue()); - } - } -} - -void StatisticsMessage_StatisticsData::CopyFrom(const StatisticsMessage_StatisticsData& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StatisticsMessage_StatisticsData::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void StatisticsMessage_StatisticsData::Swap(StatisticsMessage_StatisticsData* other) { - if (other != this) { - std::swap(statisticstype_, other->statisticstype_); - std::swap(statisticsvalue_, other->statisticsvalue_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string StatisticsMessage_StatisticsData::GetTypeName() const { - return "StatisticsMessage.StatisticsData"; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int StatisticsMessage::kStatisticsDataFieldNumber; -#endif // !_MSC_VER - -StatisticsMessage::StatisticsMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void StatisticsMessage::InitAsDefaultInstance() { -} - -StatisticsMessage::StatisticsMessage(const StatisticsMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void StatisticsMessage::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -StatisticsMessage::~StatisticsMessage() { - SharedDtor(); -} - -void StatisticsMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void StatisticsMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const StatisticsMessage& StatisticsMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -StatisticsMessage* StatisticsMessage::default_instance_ = NULL; - -StatisticsMessage* StatisticsMessage::New() const { - return new StatisticsMessage; -} - -void StatisticsMessage::Clear() { - statisticsdata_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool StatisticsMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .StatisticsMessage.StatisticsData statisticsData = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_statisticsData: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_statisticsdata())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(10)) goto parse_statisticsData; - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void StatisticsMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // repeated .StatisticsMessage.StatisticsData statisticsData = 1; - for (int i = 0; i < this->statisticsdata_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 1, this->statisticsdata(i), output); - } - -} - -int StatisticsMessage::ByteSize() const { - int total_size = 0; - - // repeated .StatisticsMessage.StatisticsData statisticsData = 1; - total_size += 1 * this->statisticsdata_size(); - for (int i = 0; i < this->statisticsdata_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->statisticsdata(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void StatisticsMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void StatisticsMessage::MergeFrom(const StatisticsMessage& from) { - GOOGLE_CHECK_NE(&from, this); - statisticsdata_.MergeFrom(from.statisticsdata_); -} - -void StatisticsMessage::CopyFrom(const StatisticsMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StatisticsMessage::IsInitialized() const { - - for (int i = 0; i < statisticsdata_size(); i++) { - if (!this->statisticsdata(i).IsInitialized()) return false; - } - return true; -} - -void StatisticsMessage::Swap(StatisticsMessage* other) { - if (other != this) { - statisticsdata_.Swap(&other->statisticsdata_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string StatisticsMessage::GetTypeName() const { - return "StatisticsMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int ChatRequestMessage::kTargetGameIdFieldNumber; -const int ChatRequestMessage::kTargetPlayerIdFieldNumber; -const int ChatRequestMessage::kChatTextFieldNumber; -#endif // !_MSC_VER - -ChatRequestMessage::ChatRequestMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void ChatRequestMessage::InitAsDefaultInstance() { -} - -ChatRequestMessage::ChatRequestMessage(const ChatRequestMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void ChatRequestMessage::SharedCtor() { - _cached_size_ = 0; - targetgameid_ = 0u; - targetplayerid_ = 0u; - chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ChatRequestMessage::~ChatRequestMessage() { - SharedDtor(); -} - -void ChatRequestMessage::SharedDtor() { - if (chattext_ != &::google::protobuf::internal::kEmptyString) { - delete chattext_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void ChatRequestMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ChatRequestMessage& ChatRequestMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -ChatRequestMessage* ChatRequestMessage::default_instance_ = NULL; - -ChatRequestMessage* ChatRequestMessage::New() const { - return new ChatRequestMessage; -} - -void ChatRequestMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - targetgameid_ = 0u; - targetplayerid_ = 0u; - if (has_chattext()) { - if (chattext_ != &::google::protobuf::internal::kEmptyString) { - chattext_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool ChatRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 targetGameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &targetgameid_))); - set_has_targetgameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_targetPlayerId; - break; - } - - // optional uint32 targetPlayerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_targetPlayerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &targetplayerid_))); - set_has_targetplayerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_chatText; - break; - } - - // required string chatText = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_chatText: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_chattext())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void ChatRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional uint32 targetGameId = 1; - if (has_targetgameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->targetgameid(), output); - } - - // optional uint32 targetPlayerId = 2; - if (has_targetplayerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->targetplayerid(), output); - } - - // required string chatText = 3; - if (has_chattext()) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 3, this->chattext(), output); - } - -} - -int ChatRequestMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint32 targetGameId = 1; - if (has_targetgameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->targetgameid()); - } - - // optional uint32 targetPlayerId = 2; - if (has_targetplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->targetplayerid()); - } - - // required string chatText = 3; - if (has_chattext()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->chattext()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ChatRequestMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void ChatRequestMessage::MergeFrom(const ChatRequestMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_targetgameid()) { - set_targetgameid(from.targetgameid()); - } - if (from.has_targetplayerid()) { - set_targetplayerid(from.targetplayerid()); - } - if (from.has_chattext()) { - set_chattext(from.chattext()); - } - } -} - -void ChatRequestMessage::CopyFrom(const ChatRequestMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ChatRequestMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000004) != 0x00000004) return false; - - return true; -} - -void ChatRequestMessage::Swap(ChatRequestMessage* other) { - if (other != this) { - std::swap(targetgameid_, other->targetgameid_); - std::swap(targetplayerid_, other->targetplayerid_); - std::swap(chattext_, other->chattext_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string ChatRequestMessage::GetTypeName() const { - return "ChatRequestMessage"; -} - - -// =================================================================== - +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData::statNumberOfPlayers; +constexpr StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData::StatisticsType_MIN; +constexpr StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData::StatisticsType_MAX; +constexpr int StatisticsMessage_StatisticsData::StatisticsType_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool ChatMessage_ChatType_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -19861,648 +2967,68 @@ bool ChatMessage_ChatType_IsValid(int value) { } } -#ifndef _MSC_VER -const ChatMessage_ChatType ChatMessage::chatTypeLobby; -const ChatMessage_ChatType ChatMessage::chatTypeGame; -const ChatMessage_ChatType ChatMessage::chatTypeBot; -const ChatMessage_ChatType ChatMessage::chatTypeBroadcast; -const ChatMessage_ChatType ChatMessage::chatTypePrivate; -const ChatMessage_ChatType ChatMessage::ChatType_MIN; -const ChatMessage_ChatType ChatMessage::ChatType_MAX; -const int ChatMessage::ChatType_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int ChatMessage::kGameIdFieldNumber; -const int ChatMessage::kPlayerIdFieldNumber; -const int ChatMessage::kChatTypeFieldNumber; -const int ChatMessage::kChatTextFieldNumber; -#endif // !_MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ChatMessage_ChatType_strings[5] = {}; -ChatMessage::ChatMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); +static const char ChatMessage_ChatType_names[] = + "chatTypeBot" + "chatTypeBroadcast" + "chatTypeGame" + "chatTypeLobby" + "chatTypePrivate"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ChatMessage_ChatType_entries[] = { + { {ChatMessage_ChatType_names + 0, 11}, 2 }, + { {ChatMessage_ChatType_names + 11, 17}, 3 }, + { {ChatMessage_ChatType_names + 28, 12}, 1 }, + { {ChatMessage_ChatType_names + 40, 13}, 0 }, + { {ChatMessage_ChatType_names + 53, 15}, 4 }, +}; + +static const int ChatMessage_ChatType_entries_by_number[] = { + 3, // 0 -> chatTypeLobby + 2, // 1 -> chatTypeGame + 0, // 2 -> chatTypeBot + 1, // 3 -> chatTypeBroadcast + 4, // 4 -> chatTypePrivate +}; + +const std::string& ChatMessage_ChatType_Name( + ChatMessage_ChatType value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + ChatMessage_ChatType_entries, + ChatMessage_ChatType_entries_by_number, + 5, ChatMessage_ChatType_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + ChatMessage_ChatType_entries, + ChatMessage_ChatType_entries_by_number, + 5, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + ChatMessage_ChatType_strings[idx].get(); } - -void ChatMessage::InitAsDefaultInstance() { -} - -ChatMessage::ChatMessage(const ChatMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void ChatMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - chattype_ = 0; - chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ChatMessage::~ChatMessage() { - SharedDtor(); -} - -void ChatMessage::SharedDtor() { - if (chattext_ != &::google::protobuf::internal::kEmptyString) { - delete chattext_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif +bool ChatMessage_ChatType_Parse( + const std::string& name, ChatMessage_ChatType* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + ChatMessage_ChatType_entries, 5, name, &int_value); + if (success) { + *value = static_cast(int_value); } + return success; } - -void ChatMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ChatMessage& ChatMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -ChatMessage* ChatMessage::default_instance_ = NULL; - -ChatMessage* ChatMessage::New() const { - return new ChatMessage; -} - -void ChatMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - gameid_ = 0u; - playerid_ = 0u; - chattype_ = 0; - if (has_chattext()) { - if (chattext_ != &::google::protobuf::internal::kEmptyString) { - chattext_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool ChatMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 gameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // optional uint32 playerId = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_playerId: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_chatType; - break; - } - - // required .ChatMessage.ChatType chatType = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_chatType: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::ChatMessage_ChatType_IsValid(value)) { - set_chattype(static_cast< ::ChatMessage_ChatType >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_chatText; - break; - } - - // required string chatText = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_chatText: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_chattext())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void ChatMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // optional uint32 playerId = 2; - if (has_playerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - // required .ChatMessage.ChatType chatType = 3; - if (has_chattype()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->chattype(), output); - } - - // required string chatText = 4; - if (has_chattext()) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 4, this->chattext(), output); - } - -} - -int ChatMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // optional uint32 playerId = 2; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - // required .ChatMessage.ChatType chatType = 3; - if (has_chattype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->chattype()); - } - - // required string chatText = 4; - if (has_chattext()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->chattext()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ChatMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void ChatMessage::MergeFrom(const ChatMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_gameid()) { - set_gameid(from.gameid()); - } - if (from.has_playerid()) { - set_playerid(from.playerid()); - } - if (from.has_chattype()) { - set_chattype(from.chattype()); - } - if (from.has_chattext()) { - set_chattext(from.chattext()); - } - } -} - -void ChatMessage::CopyFrom(const ChatMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ChatMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x0000000c) != 0x0000000c) return false; - - return true; -} - -void ChatMessage::Swap(ChatMessage* other) { - if (other != this) { - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(chattype_, other->chattype_); - std::swap(chattext_, other->chattext_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string ChatMessage::GetTypeName() const { - return "ChatMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int ChatRejectMessage::kChatTextFieldNumber; -#endif // !_MSC_VER - -ChatRejectMessage::ChatRejectMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void ChatRejectMessage::InitAsDefaultInstance() { -} - -ChatRejectMessage::ChatRejectMessage(const ChatRejectMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void ChatRejectMessage::SharedCtor() { - _cached_size_ = 0; - chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ChatRejectMessage::~ChatRejectMessage() { - SharedDtor(); -} - -void ChatRejectMessage::SharedDtor() { - if (chattext_ != &::google::protobuf::internal::kEmptyString) { - delete chattext_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void ChatRejectMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ChatRejectMessage& ChatRejectMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -ChatRejectMessage* ChatRejectMessage::default_instance_ = NULL; - -ChatRejectMessage* ChatRejectMessage::New() const { - return new ChatRejectMessage; -} - -void ChatRejectMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_chattext()) { - if (chattext_ != &::google::protobuf::internal::kEmptyString) { - chattext_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool ChatRejectMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required string chatText = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_chattext())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void ChatRejectMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required string chatText = 1; - if (has_chattext()) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->chattext(), output); - } - -} - -int ChatRejectMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required string chatText = 1; - if (has_chattext()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->chattext()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ChatRejectMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void ChatRejectMessage::MergeFrom(const ChatRejectMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_chattext()) { - set_chattext(from.chattext()); - } - } -} - -void ChatRejectMessage::CopyFrom(const ChatRejectMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ChatRejectMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void ChatRejectMessage::Swap(ChatRejectMessage* other) { - if (other != this) { - std::swap(chattext_, other->chattext_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string ChatRejectMessage::GetTypeName() const { - return "ChatRejectMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int DialogMessage::kNotificationTextFieldNumber; -#endif // !_MSC_VER - -DialogMessage::DialogMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void DialogMessage::InitAsDefaultInstance() { -} - -DialogMessage::DialogMessage(const DialogMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void DialogMessage::SharedCtor() { - _cached_size_ = 0; - notificationtext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -DialogMessage::~DialogMessage() { - SharedDtor(); -} - -void DialogMessage::SharedDtor() { - if (notificationtext_ != &::google::protobuf::internal::kEmptyString) { - delete notificationtext_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void DialogMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const DialogMessage& DialogMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -DialogMessage* DialogMessage::default_instance_ = NULL; - -DialogMessage* DialogMessage::New() const { - return new DialogMessage; -} - -void DialogMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_notificationtext()) { - if (notificationtext_ != &::google::protobuf::internal::kEmptyString) { - notificationtext_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool DialogMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required string notificationText = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_notificationtext())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void DialogMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required string notificationText = 1; - if (has_notificationtext()) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->notificationtext(), output); - } - -} - -int DialogMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required string notificationText = 1; - if (has_notificationtext()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->notificationtext()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void DialogMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void DialogMessage::MergeFrom(const DialogMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_notificationtext()) { - set_notificationtext(from.notificationtext()); - } - } -} - -void DialogMessage::CopyFrom(const DialogMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DialogMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void DialogMessage::Swap(DialogMessage* other) { - if (other != this) { - std::swap(notificationtext_, other->notificationtext_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string DialogMessage::GetTypeName() const { - return "DialogMessage"; -} - - -// =================================================================== - +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr ChatMessage_ChatType ChatMessage::chatTypeLobby; +constexpr ChatMessage_ChatType ChatMessage::chatTypeGame; +constexpr ChatMessage_ChatType ChatMessage::chatTypeBot; +constexpr ChatMessage_ChatType ChatMessage::chatTypeBroadcast; +constexpr ChatMessage_ChatType ChatMessage::chatTypePrivate; +constexpr ChatMessage_ChatType ChatMessage::ChatType_MIN; +constexpr ChatMessage_ChatType ChatMessage::ChatType_MAX; +constexpr int ChatMessage::ChatType_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool TimeoutWarningMessage_TimeoutReason_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -20512,551 +3038,60 @@ bool TimeoutWarningMessage_TimeoutReason_IsValid(int value) { } } -#ifndef _MSC_VER -const TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::timeoutNoDataReceived; -const TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::timeoutInactiveGame; -const TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::timeoutKickAfterAutofold; -const TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::TimeoutReason_MIN; -const TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::TimeoutReason_MAX; -const int TimeoutWarningMessage::TimeoutReason_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int TimeoutWarningMessage::kTimeoutReasonFieldNumber; -const int TimeoutWarningMessage::kRemainingSecondsFieldNumber; -#endif // !_MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed TimeoutWarningMessage_TimeoutReason_strings[3] = {}; -TimeoutWarningMessage::TimeoutWarningMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); +static const char TimeoutWarningMessage_TimeoutReason_names[] = + "timeoutInactiveGame" + "timeoutKickAfterAutofold" + "timeoutNoDataReceived"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry TimeoutWarningMessage_TimeoutReason_entries[] = { + { {TimeoutWarningMessage_TimeoutReason_names + 0, 19}, 1 }, + { {TimeoutWarningMessage_TimeoutReason_names + 19, 24}, 2 }, + { {TimeoutWarningMessage_TimeoutReason_names + 43, 21}, 0 }, +}; + +static const int TimeoutWarningMessage_TimeoutReason_entries_by_number[] = { + 2, // 0 -> timeoutNoDataReceived + 0, // 1 -> timeoutInactiveGame + 1, // 2 -> timeoutKickAfterAutofold +}; + +const std::string& TimeoutWarningMessage_TimeoutReason_Name( + TimeoutWarningMessage_TimeoutReason value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + TimeoutWarningMessage_TimeoutReason_entries, + TimeoutWarningMessage_TimeoutReason_entries_by_number, + 3, TimeoutWarningMessage_TimeoutReason_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + TimeoutWarningMessage_TimeoutReason_entries, + TimeoutWarningMessage_TimeoutReason_entries_by_number, + 3, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + TimeoutWarningMessage_TimeoutReason_strings[idx].get(); } - -void TimeoutWarningMessage::InitAsDefaultInstance() { -} - -TimeoutWarningMessage::TimeoutWarningMessage(const TimeoutWarningMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void TimeoutWarningMessage::SharedCtor() { - _cached_size_ = 0; - timeoutreason_ = 0; - remainingseconds_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -TimeoutWarningMessage::~TimeoutWarningMessage() { - SharedDtor(); -} - -void TimeoutWarningMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif +bool TimeoutWarningMessage_TimeoutReason_Parse( + const std::string& name, TimeoutWarningMessage_TimeoutReason* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + TimeoutWarningMessage_TimeoutReason_entries, 3, name, &int_value); + if (success) { + *value = static_cast(int_value); } + return success; } - -void TimeoutWarningMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const TimeoutWarningMessage& TimeoutWarningMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -TimeoutWarningMessage* TimeoutWarningMessage::default_instance_ = NULL; - -TimeoutWarningMessage* TimeoutWarningMessage::New() const { - return new TimeoutWarningMessage; -} - -void TimeoutWarningMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - timeoutreason_ = 0; - remainingseconds_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool TimeoutWarningMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::TimeoutWarningMessage_TimeoutReason_IsValid(value)) { - set_timeoutreason(static_cast< ::TimeoutWarningMessage_TimeoutReason >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_remainingSeconds; - break; - } - - // required uint32 remainingSeconds = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_remainingSeconds: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &remainingseconds_))); - set_has_remainingseconds(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void TimeoutWarningMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - if (has_timeoutreason()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->timeoutreason(), output); - } - - // required uint32 remainingSeconds = 2; - if (has_remainingseconds()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->remainingseconds(), output); - } - -} - -int TimeoutWarningMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - if (has_timeoutreason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->timeoutreason()); - } - - // required uint32 remainingSeconds = 2; - if (has_remainingseconds()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->remainingseconds()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void TimeoutWarningMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void TimeoutWarningMessage::MergeFrom(const TimeoutWarningMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_timeoutreason()) { - set_timeoutreason(from.timeoutreason()); - } - if (from.has_remainingseconds()) { - set_remainingseconds(from.remainingseconds()); - } - } -} - -void TimeoutWarningMessage::CopyFrom(const TimeoutWarningMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TimeoutWarningMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void TimeoutWarningMessage::Swap(TimeoutWarningMessage* other) { - if (other != this) { - std::swap(timeoutreason_, other->timeoutreason_); - std::swap(remainingseconds_, other->remainingseconds_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string TimeoutWarningMessage::GetTypeName() const { - return "TimeoutWarningMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -#endif // !_MSC_VER - -ResetTimeoutMessage::ResetTimeoutMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void ResetTimeoutMessage::InitAsDefaultInstance() { -} - -ResetTimeoutMessage::ResetTimeoutMessage(const ResetTimeoutMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void ResetTimeoutMessage::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ResetTimeoutMessage::~ResetTimeoutMessage() { - SharedDtor(); -} - -void ResetTimeoutMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void ResetTimeoutMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ResetTimeoutMessage& ResetTimeoutMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -ResetTimeoutMessage* ResetTimeoutMessage::default_instance_ = NULL; - -ResetTimeoutMessage* ResetTimeoutMessage::New() const { - return new ResetTimeoutMessage; -} - -void ResetTimeoutMessage::Clear() { - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool ResetTimeoutMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - } - return true; -#undef DO_ -} - -void ResetTimeoutMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { -} - -int ResetTimeoutMessage::ByteSize() const { - int total_size = 0; - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ResetTimeoutMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void ResetTimeoutMessage::MergeFrom(const ResetTimeoutMessage& from) { - GOOGLE_CHECK_NE(&from, this); -} - -void ResetTimeoutMessage::CopyFrom(const ResetTimeoutMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ResetTimeoutMessage::IsInitialized() const { - - return true; -} - -void ResetTimeoutMessage::Swap(ResetTimeoutMessage* other) { - if (other != this) { - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string ResetTimeoutMessage::GetTypeName() const { - return "ResetTimeoutMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int ReportAvatarMessage::kReportedPlayerIdFieldNumber; -const int ReportAvatarMessage::kReportedAvatarHashFieldNumber; -#endif // !_MSC_VER - -ReportAvatarMessage::ReportAvatarMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void ReportAvatarMessage::InitAsDefaultInstance() { -} - -ReportAvatarMessage::ReportAvatarMessage(const ReportAvatarMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void ReportAvatarMessage::SharedCtor() { - _cached_size_ = 0; - reportedplayerid_ = 0u; - reportedavatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ReportAvatarMessage::~ReportAvatarMessage() { - SharedDtor(); -} - -void ReportAvatarMessage::SharedDtor() { - if (reportedavatarhash_ != &::google::protobuf::internal::kEmptyString) { - delete reportedavatarhash_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void ReportAvatarMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ReportAvatarMessage& ReportAvatarMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -ReportAvatarMessage* ReportAvatarMessage::default_instance_ = NULL; - -ReportAvatarMessage* ReportAvatarMessage::New() const { - return new ReportAvatarMessage; -} - -void ReportAvatarMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - reportedplayerid_ = 0u; - if (has_reportedavatarhash()) { - if (reportedavatarhash_ != &::google::protobuf::internal::kEmptyString) { - reportedavatarhash_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool ReportAvatarMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 reportedPlayerId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &reportedplayerid_))); - set_has_reportedplayerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_reportedAvatarHash; - break; - } - - // required bytes reportedAvatarHash = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_reportedAvatarHash: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_reportedavatarhash())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void ReportAvatarMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 reportedPlayerId = 1; - if (has_reportedplayerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->reportedplayerid(), output); - } - - // required bytes reportedAvatarHash = 2; - if (has_reportedavatarhash()) { - ::google::protobuf::internal::WireFormatLite::WriteBytes( - 2, this->reportedavatarhash(), output); - } - -} - -int ReportAvatarMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 reportedPlayerId = 1; - if (has_reportedplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->reportedplayerid()); - } - - // required bytes reportedAvatarHash = 2; - if (has_reportedavatarhash()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->reportedavatarhash()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ReportAvatarMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void ReportAvatarMessage::MergeFrom(const ReportAvatarMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_reportedplayerid()) { - set_reportedplayerid(from.reportedplayerid()); - } - if (from.has_reportedavatarhash()) { - set_reportedavatarhash(from.reportedavatarhash()); - } - } -} - -void ReportAvatarMessage::CopyFrom(const ReportAvatarMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ReportAvatarMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void ReportAvatarMessage::Swap(ReportAvatarMessage* other) { - if (other != this) { - std::swap(reportedplayerid_, other->reportedplayerid_); - std::swap(reportedavatarhash_, other->reportedavatarhash_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string ReportAvatarMessage::GetTypeName() const { - return "ReportAvatarMessage"; -} - - -// =================================================================== - +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::timeoutNoDataReceived; +constexpr TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::timeoutInactiveGame; +constexpr TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::timeoutKickAfterAutofold; +constexpr TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::TimeoutReason_MIN; +constexpr TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::TimeoutReason_MAX; +constexpr int TimeoutWarningMessage::TimeoutReason_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool ReportAvatarAckMessage_ReportAvatarResult_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -21066,390 +3101,60 @@ bool ReportAvatarAckMessage_ReportAvatarResult_IsValid(int value) { } } -#ifndef _MSC_VER -const ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::avatarReportAccepted; -const ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::avatarReportDuplicate; -const ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::avatarReportInvalid; -const ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::ReportAvatarResult_MIN; -const ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::ReportAvatarResult_MAX; -const int ReportAvatarAckMessage::ReportAvatarResult_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int ReportAvatarAckMessage::kReportedPlayerIdFieldNumber; -const int ReportAvatarAckMessage::kReportAvatarResultFieldNumber; -#endif // !_MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ReportAvatarAckMessage_ReportAvatarResult_strings[3] = {}; -ReportAvatarAckMessage::ReportAvatarAckMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); +static const char ReportAvatarAckMessage_ReportAvatarResult_names[] = + "avatarReportAccepted" + "avatarReportDuplicate" + "avatarReportInvalid"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ReportAvatarAckMessage_ReportAvatarResult_entries[] = { + { {ReportAvatarAckMessage_ReportAvatarResult_names + 0, 20}, 0 }, + { {ReportAvatarAckMessage_ReportAvatarResult_names + 20, 21}, 1 }, + { {ReportAvatarAckMessage_ReportAvatarResult_names + 41, 19}, 2 }, +}; + +static const int ReportAvatarAckMessage_ReportAvatarResult_entries_by_number[] = { + 0, // 0 -> avatarReportAccepted + 1, // 1 -> avatarReportDuplicate + 2, // 2 -> avatarReportInvalid +}; + +const std::string& ReportAvatarAckMessage_ReportAvatarResult_Name( + ReportAvatarAckMessage_ReportAvatarResult value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + ReportAvatarAckMessage_ReportAvatarResult_entries, + ReportAvatarAckMessage_ReportAvatarResult_entries_by_number, + 3, ReportAvatarAckMessage_ReportAvatarResult_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + ReportAvatarAckMessage_ReportAvatarResult_entries, + ReportAvatarAckMessage_ReportAvatarResult_entries_by_number, + 3, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + ReportAvatarAckMessage_ReportAvatarResult_strings[idx].get(); } - -void ReportAvatarAckMessage::InitAsDefaultInstance() { -} - -ReportAvatarAckMessage::ReportAvatarAckMessage(const ReportAvatarAckMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void ReportAvatarAckMessage::SharedCtor() { - _cached_size_ = 0; - reportedplayerid_ = 0u; - reportavatarresult_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ReportAvatarAckMessage::~ReportAvatarAckMessage() { - SharedDtor(); -} - -void ReportAvatarAckMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif +bool ReportAvatarAckMessage_ReportAvatarResult_Parse( + const std::string& name, ReportAvatarAckMessage_ReportAvatarResult* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + ReportAvatarAckMessage_ReportAvatarResult_entries, 3, name, &int_value); + if (success) { + *value = static_cast(int_value); } + return success; } - -void ReportAvatarAckMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ReportAvatarAckMessage& ReportAvatarAckMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -ReportAvatarAckMessage* ReportAvatarAckMessage::default_instance_ = NULL; - -ReportAvatarAckMessage* ReportAvatarAckMessage::New() const { - return new ReportAvatarAckMessage; -} - -void ReportAvatarAckMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - reportedplayerid_ = 0u; - reportavatarresult_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool ReportAvatarAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 reportedPlayerId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &reportedplayerid_))); - set_has_reportedplayerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_reportAvatarResult; - break; - } - - // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_reportAvatarResult: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::ReportAvatarAckMessage_ReportAvatarResult_IsValid(value)) { - set_reportavatarresult(static_cast< ::ReportAvatarAckMessage_ReportAvatarResult >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void ReportAvatarAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 reportedPlayerId = 1; - if (has_reportedplayerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->reportedplayerid(), output); - } - - // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - if (has_reportavatarresult()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->reportavatarresult(), output); - } - -} - -int ReportAvatarAckMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 reportedPlayerId = 1; - if (has_reportedplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->reportedplayerid()); - } - - // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - if (has_reportavatarresult()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->reportavatarresult()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ReportAvatarAckMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void ReportAvatarAckMessage::MergeFrom(const ReportAvatarAckMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_reportedplayerid()) { - set_reportedplayerid(from.reportedplayerid()); - } - if (from.has_reportavatarresult()) { - set_reportavatarresult(from.reportavatarresult()); - } - } -} - -void ReportAvatarAckMessage::CopyFrom(const ReportAvatarAckMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ReportAvatarAckMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void ReportAvatarAckMessage::Swap(ReportAvatarAckMessage* other) { - if (other != this) { - std::swap(reportedplayerid_, other->reportedplayerid_); - std::swap(reportavatarresult_, other->reportavatarresult_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string ReportAvatarAckMessage::GetTypeName() const { - return "ReportAvatarAckMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int ReportGameMessage::kReportedGameIdFieldNumber; -#endif // !_MSC_VER - -ReportGameMessage::ReportGameMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void ReportGameMessage::InitAsDefaultInstance() { -} - -ReportGameMessage::ReportGameMessage(const ReportGameMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void ReportGameMessage::SharedCtor() { - _cached_size_ = 0; - reportedgameid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ReportGameMessage::~ReportGameMessage() { - SharedDtor(); -} - -void ReportGameMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void ReportGameMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ReportGameMessage& ReportGameMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -ReportGameMessage* ReportGameMessage::default_instance_ = NULL; - -ReportGameMessage* ReportGameMessage::New() const { - return new ReportGameMessage; -} - -void ReportGameMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - reportedgameid_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool ReportGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 reportedGameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &reportedgameid_))); - set_has_reportedgameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void ReportGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 reportedGameId = 1; - if (has_reportedgameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->reportedgameid(), output); - } - -} - -int ReportGameMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 reportedGameId = 1; - if (has_reportedgameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->reportedgameid()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ReportGameMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void ReportGameMessage::MergeFrom(const ReportGameMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_reportedgameid()) { - set_reportedgameid(from.reportedgameid()); - } - } -} - -void ReportGameMessage::CopyFrom(const ReportGameMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ReportGameMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void ReportGameMessage::Swap(ReportGameMessage* other) { - if (other != this) { - std::swap(reportedgameid_, other->reportedgameid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string ReportGameMessage::GetTypeName() const { - return "ReportGameMessage"; -} - - -// =================================================================== - +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::avatarReportAccepted; +constexpr ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::avatarReportDuplicate; +constexpr ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::avatarReportInvalid; +constexpr ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::ReportAvatarResult_MIN; +constexpr ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::ReportAvatarResult_MAX; +constexpr int ReportAvatarAckMessage::ReportAvatarResult_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool ReportGameAckMessage_ReportGameResult_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -21459,222 +3164,60 @@ bool ReportGameAckMessage_ReportGameResult_IsValid(int value) { } } -#ifndef _MSC_VER -const ReportGameAckMessage_ReportGameResult ReportGameAckMessage::gameReportAccepted; -const ReportGameAckMessage_ReportGameResult ReportGameAckMessage::gameReportDuplicate; -const ReportGameAckMessage_ReportGameResult ReportGameAckMessage::gameReportInvalid; -const ReportGameAckMessage_ReportGameResult ReportGameAckMessage::ReportGameResult_MIN; -const ReportGameAckMessage_ReportGameResult ReportGameAckMessage::ReportGameResult_MAX; -const int ReportGameAckMessage::ReportGameResult_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int ReportGameAckMessage::kReportedGameIdFieldNumber; -const int ReportGameAckMessage::kReportGameResultFieldNumber; -#endif // !_MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ReportGameAckMessage_ReportGameResult_strings[3] = {}; -ReportGameAckMessage::ReportGameAckMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); +static const char ReportGameAckMessage_ReportGameResult_names[] = + "gameReportAccepted" + "gameReportDuplicate" + "gameReportInvalid"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ReportGameAckMessage_ReportGameResult_entries[] = { + { {ReportGameAckMessage_ReportGameResult_names + 0, 18}, 0 }, + { {ReportGameAckMessage_ReportGameResult_names + 18, 19}, 1 }, + { {ReportGameAckMessage_ReportGameResult_names + 37, 17}, 2 }, +}; + +static const int ReportGameAckMessage_ReportGameResult_entries_by_number[] = { + 0, // 0 -> gameReportAccepted + 1, // 1 -> gameReportDuplicate + 2, // 2 -> gameReportInvalid +}; + +const std::string& ReportGameAckMessage_ReportGameResult_Name( + ReportGameAckMessage_ReportGameResult value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + ReportGameAckMessage_ReportGameResult_entries, + ReportGameAckMessage_ReportGameResult_entries_by_number, + 3, ReportGameAckMessage_ReportGameResult_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + ReportGameAckMessage_ReportGameResult_entries, + ReportGameAckMessage_ReportGameResult_entries_by_number, + 3, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + ReportGameAckMessage_ReportGameResult_strings[idx].get(); } - -void ReportGameAckMessage::InitAsDefaultInstance() { -} - -ReportGameAckMessage::ReportGameAckMessage(const ReportGameAckMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void ReportGameAckMessage::SharedCtor() { - _cached_size_ = 0; - reportedgameid_ = 0u; - reportgameresult_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ReportGameAckMessage::~ReportGameAckMessage() { - SharedDtor(); -} - -void ReportGameAckMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif +bool ReportGameAckMessage_ReportGameResult_Parse( + const std::string& name, ReportGameAckMessage_ReportGameResult* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + ReportGameAckMessage_ReportGameResult_entries, 3, name, &int_value); + if (success) { + *value = static_cast(int_value); } + return success; } - -void ReportGameAckMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ReportGameAckMessage& ReportGameAckMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -ReportGameAckMessage* ReportGameAckMessage::default_instance_ = NULL; - -ReportGameAckMessage* ReportGameAckMessage::New() const { - return new ReportGameAckMessage; -} - -void ReportGameAckMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - reportedgameid_ = 0u; - reportgameresult_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool ReportGameAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 reportedGameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &reportedgameid_))); - set_has_reportedgameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_reportGameResult; - break; - } - - // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_reportGameResult: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::ReportGameAckMessage_ReportGameResult_IsValid(value)) { - set_reportgameresult(static_cast< ::ReportGameAckMessage_ReportGameResult >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void ReportGameAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 reportedGameId = 1; - if (has_reportedgameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->reportedgameid(), output); - } - - // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - if (has_reportgameresult()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->reportgameresult(), output); - } - -} - -int ReportGameAckMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 reportedGameId = 1; - if (has_reportedgameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->reportedgameid()); - } - - // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - if (has_reportgameresult()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->reportgameresult()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ReportGameAckMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void ReportGameAckMessage::MergeFrom(const ReportGameAckMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_reportedgameid()) { - set_reportedgameid(from.reportedgameid()); - } - if (from.has_reportgameresult()) { - set_reportgameresult(from.reportgameresult()); - } - } -} - -void ReportGameAckMessage::CopyFrom(const ReportGameAckMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ReportGameAckMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void ReportGameAckMessage::Swap(ReportGameAckMessage* other) { - if (other != this) { - std::swap(reportedgameid_, other->reportedgameid_); - std::swap(reportgameresult_, other->reportgameresult_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string ReportGameAckMessage::GetTypeName() const { - return "ReportGameAckMessage"; -} - - -// =================================================================== - +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr ReportGameAckMessage_ReportGameResult ReportGameAckMessage::gameReportAccepted; +constexpr ReportGameAckMessage_ReportGameResult ReportGameAckMessage::gameReportDuplicate; +constexpr ReportGameAckMessage_ReportGameResult ReportGameAckMessage::gameReportInvalid; +constexpr ReportGameAckMessage_ReportGameResult ReportGameAckMessage::ReportGameResult_MIN; +constexpr ReportGameAckMessage_ReportGameResult ReportGameAckMessage::ReportGameResult_MAX; +constexpr int ReportGameAckMessage::ReportGameResult_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool ErrorMessage_ErrorReason_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -21696,367 +3239,108 @@ bool ErrorMessage_ErrorReason_IsValid(int value) { } } -#ifndef _MSC_VER -const ErrorMessage_ErrorReason ErrorMessage::custReserved; -const ErrorMessage_ErrorReason ErrorMessage::initVersionNotSupported; -const ErrorMessage_ErrorReason ErrorMessage::initServerFull; -const ErrorMessage_ErrorReason ErrorMessage::initAuthFailure; -const ErrorMessage_ErrorReason ErrorMessage::initPlayerNameInUse; -const ErrorMessage_ErrorReason ErrorMessage::initInvalidPlayerName; -const ErrorMessage_ErrorReason ErrorMessage::initServerMaintenance; -const ErrorMessage_ErrorReason ErrorMessage::initBlocked; -const ErrorMessage_ErrorReason ErrorMessage::avatarTooLarge; -const ErrorMessage_ErrorReason ErrorMessage::invalidPacket; -const ErrorMessage_ErrorReason ErrorMessage::invalidState; -const ErrorMessage_ErrorReason ErrorMessage::kickedFromServer; -const ErrorMessage_ErrorReason ErrorMessage::bannedFromServer; -const ErrorMessage_ErrorReason ErrorMessage::blockedByServer; -const ErrorMessage_ErrorReason ErrorMessage::sessionTimeout; -const ErrorMessage_ErrorReason ErrorMessage::ErrorReason_MIN; -const ErrorMessage_ErrorReason ErrorMessage::ErrorReason_MAX; -const int ErrorMessage::ErrorReason_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int ErrorMessage::kErrorReasonFieldNumber; -#endif // !_MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ErrorMessage_ErrorReason_strings[15] = {}; -ErrorMessage::ErrorMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); +static const char ErrorMessage_ErrorReason_names[] = + "avatarTooLarge" + "bannedFromServer" + "blockedByServer" + "custReserved" + "initAuthFailure" + "initBlocked" + "initInvalidPlayerName" + "initPlayerNameInUse" + "initServerFull" + "initServerMaintenance" + "initVersionNotSupported" + "invalidPacket" + "invalidState" + "kickedFromServer" + "sessionTimeout"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ErrorMessage_ErrorReason_entries[] = { + { {ErrorMessage_ErrorReason_names + 0, 14}, 8 }, + { {ErrorMessage_ErrorReason_names + 14, 16}, 12 }, + { {ErrorMessage_ErrorReason_names + 30, 15}, 13 }, + { {ErrorMessage_ErrorReason_names + 45, 12}, 0 }, + { {ErrorMessage_ErrorReason_names + 57, 15}, 3 }, + { {ErrorMessage_ErrorReason_names + 72, 11}, 7 }, + { {ErrorMessage_ErrorReason_names + 83, 21}, 5 }, + { {ErrorMessage_ErrorReason_names + 104, 19}, 4 }, + { {ErrorMessage_ErrorReason_names + 123, 14}, 2 }, + { {ErrorMessage_ErrorReason_names + 137, 21}, 6 }, + { {ErrorMessage_ErrorReason_names + 158, 23}, 1 }, + { {ErrorMessage_ErrorReason_names + 181, 13}, 9 }, + { {ErrorMessage_ErrorReason_names + 194, 12}, 10 }, + { {ErrorMessage_ErrorReason_names + 206, 16}, 11 }, + { {ErrorMessage_ErrorReason_names + 222, 14}, 14 }, +}; + +static const int ErrorMessage_ErrorReason_entries_by_number[] = { + 3, // 0 -> custReserved + 10, // 1 -> initVersionNotSupported + 8, // 2 -> initServerFull + 4, // 3 -> initAuthFailure + 7, // 4 -> initPlayerNameInUse + 6, // 5 -> initInvalidPlayerName + 9, // 6 -> initServerMaintenance + 5, // 7 -> initBlocked + 0, // 8 -> avatarTooLarge + 11, // 9 -> invalidPacket + 12, // 10 -> invalidState + 13, // 11 -> kickedFromServer + 1, // 12 -> bannedFromServer + 2, // 13 -> blockedByServer + 14, // 14 -> sessionTimeout +}; + +const std::string& ErrorMessage_ErrorReason_Name( + ErrorMessage_ErrorReason value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + ErrorMessage_ErrorReason_entries, + ErrorMessage_ErrorReason_entries_by_number, + 15, ErrorMessage_ErrorReason_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + ErrorMessage_ErrorReason_entries, + ErrorMessage_ErrorReason_entries_by_number, + 15, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + ErrorMessage_ErrorReason_strings[idx].get(); } - -void ErrorMessage::InitAsDefaultInstance() { -} - -ErrorMessage::ErrorMessage(const ErrorMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void ErrorMessage::SharedCtor() { - _cached_size_ = 0; - errorreason_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ErrorMessage::~ErrorMessage() { - SharedDtor(); -} - -void ErrorMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif +bool ErrorMessage_ErrorReason_Parse( + const std::string& name, ErrorMessage_ErrorReason* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + ErrorMessage_ErrorReason_entries, 15, name, &int_value); + if (success) { + *value = static_cast(int_value); } + return success; } - -void ErrorMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ErrorMessage& ErrorMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -ErrorMessage* ErrorMessage::default_instance_ = NULL; - -ErrorMessage* ErrorMessage::New() const { - return new ErrorMessage; -} - -void ErrorMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - errorreason_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool ErrorMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .ErrorMessage.ErrorReason errorReason = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::ErrorMessage_ErrorReason_IsValid(value)) { - set_errorreason(static_cast< ::ErrorMessage_ErrorReason >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void ErrorMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .ErrorMessage.ErrorReason errorReason = 1; - if (has_errorreason()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->errorreason(), output); - } - -} - -int ErrorMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .ErrorMessage.ErrorReason errorReason = 1; - if (has_errorreason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->errorreason()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ErrorMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void ErrorMessage::MergeFrom(const ErrorMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_errorreason()) { - set_errorreason(from.errorreason()); - } - } -} - -void ErrorMessage::CopyFrom(const ErrorMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ErrorMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void ErrorMessage::Swap(ErrorMessage* other) { - if (other != this) { - std::swap(errorreason_, other->errorreason_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string ErrorMessage::GetTypeName() const { - return "ErrorMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int AdminRemoveGameMessage::kRemoveGameIdFieldNumber; -#endif // !_MSC_VER - -AdminRemoveGameMessage::AdminRemoveGameMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void AdminRemoveGameMessage::InitAsDefaultInstance() { -} - -AdminRemoveGameMessage::AdminRemoveGameMessage(const AdminRemoveGameMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void AdminRemoveGameMessage::SharedCtor() { - _cached_size_ = 0; - removegameid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AdminRemoveGameMessage::~AdminRemoveGameMessage() { - SharedDtor(); -} - -void AdminRemoveGameMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AdminRemoveGameMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AdminRemoveGameMessage& AdminRemoveGameMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AdminRemoveGameMessage* AdminRemoveGameMessage::default_instance_ = NULL; - -AdminRemoveGameMessage* AdminRemoveGameMessage::New() const { - return new AdminRemoveGameMessage; -} - -void AdminRemoveGameMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - removegameid_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool AdminRemoveGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 removeGameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &removegameid_))); - set_has_removegameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void AdminRemoveGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 removeGameId = 1; - if (has_removegameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->removegameid(), output); - } - -} - -int AdminRemoveGameMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 removeGameId = 1; - if (has_removegameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->removegameid()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AdminRemoveGameMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void AdminRemoveGameMessage::MergeFrom(const AdminRemoveGameMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_removegameid()) { - set_removegameid(from.removegameid()); - } - } -} - -void AdminRemoveGameMessage::CopyFrom(const AdminRemoveGameMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AdminRemoveGameMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void AdminRemoveGameMessage::Swap(AdminRemoveGameMessage* other) { - if (other != this) { - std::swap(removegameid_, other->removegameid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AdminRemoveGameMessage::GetTypeName() const { - return "AdminRemoveGameMessage"; -} - - -// =================================================================== - +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr ErrorMessage_ErrorReason ErrorMessage::custReserved; +constexpr ErrorMessage_ErrorReason ErrorMessage::initVersionNotSupported; +constexpr ErrorMessage_ErrorReason ErrorMessage::initServerFull; +constexpr ErrorMessage_ErrorReason ErrorMessage::initAuthFailure; +constexpr ErrorMessage_ErrorReason ErrorMessage::initPlayerNameInUse; +constexpr ErrorMessage_ErrorReason ErrorMessage::initInvalidPlayerName; +constexpr ErrorMessage_ErrorReason ErrorMessage::initServerMaintenance; +constexpr ErrorMessage_ErrorReason ErrorMessage::initBlocked; +constexpr ErrorMessage_ErrorReason ErrorMessage::avatarTooLarge; +constexpr ErrorMessage_ErrorReason ErrorMessage::invalidPacket; +constexpr ErrorMessage_ErrorReason ErrorMessage::invalidState; +constexpr ErrorMessage_ErrorReason ErrorMessage::kickedFromServer; +constexpr ErrorMessage_ErrorReason ErrorMessage::bannedFromServer; +constexpr ErrorMessage_ErrorReason ErrorMessage::blockedByServer; +constexpr ErrorMessage_ErrorReason ErrorMessage::sessionTimeout; +constexpr ErrorMessage_ErrorReason ErrorMessage::ErrorReason_MIN; +constexpr ErrorMessage_ErrorReason ErrorMessage::ErrorReason_MAX; +constexpr int ErrorMessage::ErrorReason_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool AdminRemoveGameAckMessage_AdminRemoveGameResult_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: return true; @@ -22065,389 +3349,56 @@ bool AdminRemoveGameAckMessage_AdminRemoveGameResult_IsValid(int value) { } } -#ifndef _MSC_VER -const AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage::gameRemoveAccepted; -const AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage::gameRemoveInvalid; -const AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage::AdminRemoveGameResult_MIN; -const AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage::AdminRemoveGameResult_MAX; -const int AdminRemoveGameAckMessage::AdminRemoveGameResult_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int AdminRemoveGameAckMessage::kRemoveGameIdFieldNumber; -const int AdminRemoveGameAckMessage::kRemoveGameResultFieldNumber; -#endif // !_MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed AdminRemoveGameAckMessage_AdminRemoveGameResult_strings[2] = {}; -AdminRemoveGameAckMessage::AdminRemoveGameAckMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); +static const char AdminRemoveGameAckMessage_AdminRemoveGameResult_names[] = + "gameRemoveAccepted" + "gameRemoveInvalid"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry AdminRemoveGameAckMessage_AdminRemoveGameResult_entries[] = { + { {AdminRemoveGameAckMessage_AdminRemoveGameResult_names + 0, 18}, 0 }, + { {AdminRemoveGameAckMessage_AdminRemoveGameResult_names + 18, 17}, 1 }, +}; + +static const int AdminRemoveGameAckMessage_AdminRemoveGameResult_entries_by_number[] = { + 0, // 0 -> gameRemoveAccepted + 1, // 1 -> gameRemoveInvalid +}; + +const std::string& AdminRemoveGameAckMessage_AdminRemoveGameResult_Name( + AdminRemoveGameAckMessage_AdminRemoveGameResult value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + AdminRemoveGameAckMessage_AdminRemoveGameResult_entries, + AdminRemoveGameAckMessage_AdminRemoveGameResult_entries_by_number, + 2, AdminRemoveGameAckMessage_AdminRemoveGameResult_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + AdminRemoveGameAckMessage_AdminRemoveGameResult_entries, + AdminRemoveGameAckMessage_AdminRemoveGameResult_entries_by_number, + 2, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + AdminRemoveGameAckMessage_AdminRemoveGameResult_strings[idx].get(); } - -void AdminRemoveGameAckMessage::InitAsDefaultInstance() { -} - -AdminRemoveGameAckMessage::AdminRemoveGameAckMessage(const AdminRemoveGameAckMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void AdminRemoveGameAckMessage::SharedCtor() { - _cached_size_ = 0; - removegameid_ = 0u; - removegameresult_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AdminRemoveGameAckMessage::~AdminRemoveGameAckMessage() { - SharedDtor(); -} - -void AdminRemoveGameAckMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif +bool AdminRemoveGameAckMessage_AdminRemoveGameResult_Parse( + const std::string& name, AdminRemoveGameAckMessage_AdminRemoveGameResult* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + AdminRemoveGameAckMessage_AdminRemoveGameResult_entries, 2, name, &int_value); + if (success) { + *value = static_cast(int_value); } + return success; } - -void AdminRemoveGameAckMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AdminRemoveGameAckMessage& AdminRemoveGameAckMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AdminRemoveGameAckMessage* AdminRemoveGameAckMessage::default_instance_ = NULL; - -AdminRemoveGameAckMessage* AdminRemoveGameAckMessage::New() const { - return new AdminRemoveGameAckMessage; -} - -void AdminRemoveGameAckMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - removegameid_ = 0u; - removegameresult_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool AdminRemoveGameAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 removeGameId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &removegameid_))); - set_has_removegameid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_removeGameResult; - break; - } - - // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_removeGameResult: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::AdminRemoveGameAckMessage_AdminRemoveGameResult_IsValid(value)) { - set_removegameresult(static_cast< ::AdminRemoveGameAckMessage_AdminRemoveGameResult >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void AdminRemoveGameAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 removeGameId = 1; - if (has_removegameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->removegameid(), output); - } - - // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - if (has_removegameresult()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->removegameresult(), output); - } - -} - -int AdminRemoveGameAckMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 removeGameId = 1; - if (has_removegameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->removegameid()); - } - - // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - if (has_removegameresult()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->removegameresult()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AdminRemoveGameAckMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void AdminRemoveGameAckMessage::MergeFrom(const AdminRemoveGameAckMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_removegameid()) { - set_removegameid(from.removegameid()); - } - if (from.has_removegameresult()) { - set_removegameresult(from.removegameresult()); - } - } -} - -void AdminRemoveGameAckMessage::CopyFrom(const AdminRemoveGameAckMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AdminRemoveGameAckMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void AdminRemoveGameAckMessage::Swap(AdminRemoveGameAckMessage* other) { - if (other != this) { - std::swap(removegameid_, other->removegameid_); - std::swap(removegameresult_, other->removegameresult_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AdminRemoveGameAckMessage::GetTypeName() const { - return "AdminRemoveGameAckMessage"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int AdminBanPlayerMessage::kBanPlayerIdFieldNumber; -#endif // !_MSC_VER - -AdminBanPlayerMessage::AdminBanPlayerMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void AdminBanPlayerMessage::InitAsDefaultInstance() { -} - -AdminBanPlayerMessage::AdminBanPlayerMessage(const AdminBanPlayerMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void AdminBanPlayerMessage::SharedCtor() { - _cached_size_ = 0; - banplayerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AdminBanPlayerMessage::~AdminBanPlayerMessage() { - SharedDtor(); -} - -void AdminBanPlayerMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AdminBanPlayerMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AdminBanPlayerMessage& AdminBanPlayerMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AdminBanPlayerMessage* AdminBanPlayerMessage::default_instance_ = NULL; - -AdminBanPlayerMessage* AdminBanPlayerMessage::New() const { - return new AdminBanPlayerMessage; -} - -void AdminBanPlayerMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - banplayerid_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool AdminBanPlayerMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 banPlayerId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &banplayerid_))); - set_has_banplayerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void AdminBanPlayerMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 banPlayerId = 1; - if (has_banplayerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->banplayerid(), output); - } - -} - -int AdminBanPlayerMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 banPlayerId = 1; - if (has_banplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->banplayerid()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AdminBanPlayerMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void AdminBanPlayerMessage::MergeFrom(const AdminBanPlayerMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_banplayerid()) { - set_banplayerid(from.banplayerid()); - } - } -} - -void AdminBanPlayerMessage::CopyFrom(const AdminBanPlayerMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AdminBanPlayerMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void AdminBanPlayerMessage::Swap(AdminBanPlayerMessage* other) { - if (other != this) { - std::swap(banplayerid_, other->banplayerid_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AdminBanPlayerMessage::GetTypeName() const { - return "AdminBanPlayerMessage"; -} - - -// =================================================================== - +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage::gameRemoveAccepted; +constexpr AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage::gameRemoveInvalid; +constexpr AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage::AdminRemoveGameResult_MIN; +constexpr AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage::AdminRemoveGameResult_MAX; +constexpr int AdminRemoveGameAckMessage::AdminRemoveGameResult_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool AdminBanPlayerAckMessage_AdminBanPlayerResult_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -22459,224 +3410,68 @@ bool AdminBanPlayerAckMessage_AdminBanPlayerResult_IsValid(int value) { } } -#ifndef _MSC_VER -const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::banPlayerAccepted; -const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::banPlayerPending; -const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::banPlayerNoDB; -const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::banPlayerDBError; -const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::banPlayerInvalid; -const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::AdminBanPlayerResult_MIN; -const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::AdminBanPlayerResult_MAX; -const int AdminBanPlayerAckMessage::AdminBanPlayerResult_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int AdminBanPlayerAckMessage::kBanPlayerIdFieldNumber; -const int AdminBanPlayerAckMessage::kBanPlayerResultFieldNumber; -#endif // !_MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed AdminBanPlayerAckMessage_AdminBanPlayerResult_strings[5] = {}; -AdminBanPlayerAckMessage::AdminBanPlayerAckMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); +static const char AdminBanPlayerAckMessage_AdminBanPlayerResult_names[] = + "banPlayerAccepted" + "banPlayerDBError" + "banPlayerInvalid" + "banPlayerNoDB" + "banPlayerPending"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry AdminBanPlayerAckMessage_AdminBanPlayerResult_entries[] = { + { {AdminBanPlayerAckMessage_AdminBanPlayerResult_names + 0, 17}, 0 }, + { {AdminBanPlayerAckMessage_AdminBanPlayerResult_names + 17, 16}, 3 }, + { {AdminBanPlayerAckMessage_AdminBanPlayerResult_names + 33, 16}, 4 }, + { {AdminBanPlayerAckMessage_AdminBanPlayerResult_names + 49, 13}, 2 }, + { {AdminBanPlayerAckMessage_AdminBanPlayerResult_names + 62, 16}, 1 }, +}; + +static const int AdminBanPlayerAckMessage_AdminBanPlayerResult_entries_by_number[] = { + 0, // 0 -> banPlayerAccepted + 4, // 1 -> banPlayerPending + 3, // 2 -> banPlayerNoDB + 1, // 3 -> banPlayerDBError + 2, // 4 -> banPlayerInvalid +}; + +const std::string& AdminBanPlayerAckMessage_AdminBanPlayerResult_Name( + AdminBanPlayerAckMessage_AdminBanPlayerResult value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + AdminBanPlayerAckMessage_AdminBanPlayerResult_entries, + AdminBanPlayerAckMessage_AdminBanPlayerResult_entries_by_number, + 5, AdminBanPlayerAckMessage_AdminBanPlayerResult_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + AdminBanPlayerAckMessage_AdminBanPlayerResult_entries, + AdminBanPlayerAckMessage_AdminBanPlayerResult_entries_by_number, + 5, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + AdminBanPlayerAckMessage_AdminBanPlayerResult_strings[idx].get(); } - -void AdminBanPlayerAckMessage::InitAsDefaultInstance() { -} - -AdminBanPlayerAckMessage::AdminBanPlayerAckMessage(const AdminBanPlayerAckMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void AdminBanPlayerAckMessage::SharedCtor() { - _cached_size_ = 0; - banplayerid_ = 0u; - banplayerresult_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AdminBanPlayerAckMessage::~AdminBanPlayerAckMessage() { - SharedDtor(); -} - -void AdminBanPlayerAckMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif +bool AdminBanPlayerAckMessage_AdminBanPlayerResult_Parse( + const std::string& name, AdminBanPlayerAckMessage_AdminBanPlayerResult* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + AdminBanPlayerAckMessage_AdminBanPlayerResult_entries, 5, name, &int_value); + if (success) { + *value = static_cast(int_value); } + return success; } - -void AdminBanPlayerAckMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AdminBanPlayerAckMessage& AdminBanPlayerAckMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AdminBanPlayerAckMessage* AdminBanPlayerAckMessage::default_instance_ = NULL; - -AdminBanPlayerAckMessage* AdminBanPlayerAckMessage::New() const { - return new AdminBanPlayerAckMessage; -} - -void AdminBanPlayerAckMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - banplayerid_ = 0u; - banplayerresult_ = 0; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool AdminBanPlayerAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 banPlayerId = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &banplayerid_))); - set_has_banplayerid(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_banPlayerResult; - break; - } - - // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_banPlayerResult: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::AdminBanPlayerAckMessage_AdminBanPlayerResult_IsValid(value)) { - set_banplayerresult(static_cast< ::AdminBanPlayerAckMessage_AdminBanPlayerResult >(value)); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void AdminBanPlayerAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 banPlayerId = 1; - if (has_banplayerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->banplayerid(), output); - } - - // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - if (has_banplayerresult()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->banplayerresult(), output); - } - -} - -int AdminBanPlayerAckMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 banPlayerId = 1; - if (has_banplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->banplayerid()); - } - - // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - if (has_banplayerresult()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->banplayerresult()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AdminBanPlayerAckMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void AdminBanPlayerAckMessage::MergeFrom(const AdminBanPlayerAckMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_banplayerid()) { - set_banplayerid(from.banplayerid()); - } - if (from.has_banplayerresult()) { - set_banplayerresult(from.banplayerresult()); - } - } -} - -void AdminBanPlayerAckMessage::CopyFrom(const AdminBanPlayerAckMessage& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AdminBanPlayerAckMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void AdminBanPlayerAckMessage::Swap(AdminBanPlayerAckMessage* other) { - if (other != this) { - std::swap(banplayerid_, other->banplayerid_); - std::swap(banplayerresult_, other->banplayerresult_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AdminBanPlayerAckMessage::GetTypeName() const { - return "AdminBanPlayerAckMessage"; -} - - -// =================================================================== - +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::banPlayerAccepted; +constexpr AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::banPlayerPending; +constexpr AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::banPlayerNoDB; +constexpr AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::banPlayerDBError; +constexpr AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::banPlayerInvalid; +constexpr AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::AdminBanPlayerResult_MIN; +constexpr AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::AdminBanPlayerResult_MAX; +constexpr int AdminBanPlayerAckMessage::AdminBanPlayerResult_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) bool PokerTHMessage_PokerTHMessageType_IsValid(int value) { - switch(value) { + switch (value) { case 1: case 2: case 3: @@ -22758,3990 +3553,30126 @@ bool PokerTHMessage_PokerTHMessageType_IsValid(int value) { case 79: case 80: case 81: - case 82: return true; default: return false; } } -#ifndef _MSC_VER -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AnnounceMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_InitMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AuthServerChallengeMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AuthClientResponseMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AuthServerVerificationMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_InitAckMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AvatarRequestMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AvatarHeaderMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AvatarDataMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AvatarEndMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_UnknownAvatarMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_PlayerListMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameListNewMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameListUpdateMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameListPlayerJoinedMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameListPlayerLeftMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameListAdminChangedMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_PlayerInfoRequestMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_PlayerInfoReplyMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_SubscriptionRequestMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_JoinExistingGameMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_JoinNewGameMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_RejoinExistingGameMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_JoinGameAckMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_JoinGameFailedMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GamePlayerJoinedMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GamePlayerLeftMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameAdminChangedMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_RemovedFromGameMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_KickPlayerRequestMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_LeaveGameRequestMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_InvitePlayerToGameMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_InviteNotifyMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_RejectGameInvitationMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_RejectInvNotifyMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_StartEventMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_StartEventAckMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameStartInitialMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameStartRejoinMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_HandStartMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_PlayersTurnMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_MyActionRequestMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_YourActionRejectedMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_PlayersActionDoneMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_DealFlopCardsMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_DealTurnCardMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_DealRiverCardMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AllInShowCardsMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_EndOfHandShowCardsMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_EndOfHandHideCardsMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ShowMyCardsRequestMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AfterHandShowCardsMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_EndOfGameMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_PlayerIdChangedMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AskKickPlayerMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AskKickDeniedMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_StartKickPetitionMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_VoteKickRequestMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_VoteKickReplyMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_KickPetitionUpdateMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_EndKickPetitionMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_StatisticsMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ChatRequestMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ChatMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ChatRejectMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_DialogMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_TimeoutWarningMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ResetTimeoutMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ReportAvatarMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ReportAvatarAckMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ReportGameMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ReportGameAckMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ErrorMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AdminRemoveGameMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AdminRemoveGameAckMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AdminBanPlayerMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AdminBanPlayerAckMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameListSpectatorJoinedMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameListSpectatorLeftMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameSpectatorJoinedMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameSpectatorLeftMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameStartReentryMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::PokerTHMessageType_MIN; -const PokerTHMessage_PokerTHMessageType PokerTHMessage::PokerTHMessageType_MAX; -const int PokerTHMessage::PokerTHMessageType_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int PokerTHMessage::kMessageTypeFieldNumber; -const int PokerTHMessage::kAnnounceMessageFieldNumber; -const int PokerTHMessage::kInitMessageFieldNumber; -const int PokerTHMessage::kAuthServerChallengeMessageFieldNumber; -const int PokerTHMessage::kAuthClientResponseMessageFieldNumber; -const int PokerTHMessage::kAuthServerVerificationMessageFieldNumber; -const int PokerTHMessage::kInitAckMessageFieldNumber; -const int PokerTHMessage::kAvatarRequestMessageFieldNumber; -const int PokerTHMessage::kAvatarHeaderMessageFieldNumber; -const int PokerTHMessage::kAvatarDataMessageFieldNumber; -const int PokerTHMessage::kAvatarEndMessageFieldNumber; -const int PokerTHMessage::kUnknownAvatarMessageFieldNumber; -const int PokerTHMessage::kPlayerListMessageFieldNumber; -const int PokerTHMessage::kGameListNewMessageFieldNumber; -const int PokerTHMessage::kGameListUpdateMessageFieldNumber; -const int PokerTHMessage::kGameListPlayerJoinedMessageFieldNumber; -const int PokerTHMessage::kGameListPlayerLeftMessageFieldNumber; -const int PokerTHMessage::kGameListAdminChangedMessageFieldNumber; -const int PokerTHMessage::kPlayerInfoRequestMessageFieldNumber; -const int PokerTHMessage::kPlayerInfoReplyMessageFieldNumber; -const int PokerTHMessage::kSubscriptionRequestMessageFieldNumber; -const int PokerTHMessage::kJoinExistingGameMessageFieldNumber; -const int PokerTHMessage::kJoinNewGameMessageFieldNumber; -const int PokerTHMessage::kRejoinExistingGameMessageFieldNumber; -const int PokerTHMessage::kJoinGameAckMessageFieldNumber; -const int PokerTHMessage::kJoinGameFailedMessageFieldNumber; -const int PokerTHMessage::kGamePlayerJoinedMessageFieldNumber; -const int PokerTHMessage::kGamePlayerLeftMessageFieldNumber; -const int PokerTHMessage::kGameAdminChangedMessageFieldNumber; -const int PokerTHMessage::kRemovedFromGameMessageFieldNumber; -const int PokerTHMessage::kKickPlayerRequestMessageFieldNumber; -const int PokerTHMessage::kLeaveGameRequestMessageFieldNumber; -const int PokerTHMessage::kInvitePlayerToGameMessageFieldNumber; -const int PokerTHMessage::kInviteNotifyMessageFieldNumber; -const int PokerTHMessage::kRejectGameInvitationMessageFieldNumber; -const int PokerTHMessage::kRejectInvNotifyMessageFieldNumber; -const int PokerTHMessage::kStartEventMessageFieldNumber; -const int PokerTHMessage::kStartEventAckMessageFieldNumber; -const int PokerTHMessage::kGameStartInitialMessageFieldNumber; -const int PokerTHMessage::kGameStartRejoinMessageFieldNumber; -const int PokerTHMessage::kHandStartMessageFieldNumber; -const int PokerTHMessage::kPlayersTurnMessageFieldNumber; -const int PokerTHMessage::kMyActionRequestMessageFieldNumber; -const int PokerTHMessage::kYourActionRejectedMessageFieldNumber; -const int PokerTHMessage::kPlayersActionDoneMessageFieldNumber; -const int PokerTHMessage::kDealFlopCardsMessageFieldNumber; -const int PokerTHMessage::kDealTurnCardMessageFieldNumber; -const int PokerTHMessage::kDealRiverCardMessageFieldNumber; -const int PokerTHMessage::kAllInShowCardsMessageFieldNumber; -const int PokerTHMessage::kEndOfHandShowCardsMessageFieldNumber; -const int PokerTHMessage::kEndOfHandHideCardsMessageFieldNumber; -const int PokerTHMessage::kShowMyCardsRequestMessageFieldNumber; -const int PokerTHMessage::kAfterHandShowCardsMessageFieldNumber; -const int PokerTHMessage::kEndOfGameMessageFieldNumber; -const int PokerTHMessage::kPlayerIdChangedMessageFieldNumber; -const int PokerTHMessage::kAskKickPlayerMessageFieldNumber; -const int PokerTHMessage::kAskKickDeniedMessageFieldNumber; -const int PokerTHMessage::kStartKickPetitionMessageFieldNumber; -const int PokerTHMessage::kVoteKickRequestMessageFieldNumber; -const int PokerTHMessage::kVoteKickReplyMessageFieldNumber; -const int PokerTHMessage::kKickPetitionUpdateMessageFieldNumber; -const int PokerTHMessage::kEndKickPetitionMessageFieldNumber; -const int PokerTHMessage::kStatisticsMessageFieldNumber; -const int PokerTHMessage::kChatRequestMessageFieldNumber; -const int PokerTHMessage::kChatMessageFieldNumber; -const int PokerTHMessage::kChatRejectMessageFieldNumber; -const int PokerTHMessage::kDialogMessageFieldNumber; -const int PokerTHMessage::kTimeoutWarningMessageFieldNumber; -const int PokerTHMessage::kResetTimeoutMessageFieldNumber; -const int PokerTHMessage::kReportAvatarMessageFieldNumber; -const int PokerTHMessage::kReportAvatarAckMessageFieldNumber; -const int PokerTHMessage::kReportGameMessageFieldNumber; -const int PokerTHMessage::kReportGameAckMessageFieldNumber; -const int PokerTHMessage::kErrorMessageFieldNumber; -const int PokerTHMessage::kAdminRemoveGameMessageFieldNumber; -const int PokerTHMessage::kAdminRemoveGameAckMessageFieldNumber; -const int PokerTHMessage::kAdminBanPlayerMessageFieldNumber; -const int PokerTHMessage::kAdminBanPlayerAckMessageFieldNumber; -const int PokerTHMessage::kGameListSpectatorJoinedMessageFieldNumber; -const int PokerTHMessage::kGameListSpectatorLeftMessageFieldNumber; -const int PokerTHMessage::kGameSpectatorJoinedMessageFieldNumber; -const int PokerTHMessage::kGameSpectatorLeftMessageFieldNumber; -const int PokerTHMessage::kGameStartReentryMessageFieldNumber; -#endif // !_MSC_VER +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PokerTHMessage_PokerTHMessageType_strings[81] = {}; -PokerTHMessage::PokerTHMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); +static const char PokerTHMessage_PokerTHMessageType_names[] = + "Type_AdminBanPlayerAckMessage" + "Type_AdminBanPlayerMessage" + "Type_AdminRemoveGameAckMessage" + "Type_AdminRemoveGameMessage" + "Type_AfterHandShowCardsMessage" + "Type_AllInShowCardsMessage" + "Type_AnnounceMessage" + "Type_AskKickDeniedMessage" + "Type_AskKickPlayerMessage" + "Type_AuthClientResponseMessage" + "Type_AuthServerChallengeMessage" + "Type_AuthServerVerificationMessage" + "Type_AvatarDataMessage" + "Type_AvatarEndMessage" + "Type_AvatarHeaderMessage" + "Type_AvatarRequestMessage" + "Type_ChatMessage" + "Type_ChatRejectMessage" + "Type_ChatRequestMessage" + "Type_DealFlopCardsMessage" + "Type_DealRiverCardMessage" + "Type_DealTurnCardMessage" + "Type_DialogMessage" + "Type_EndKickPetitionMessage" + "Type_EndOfGameMessage" + "Type_EndOfHandHideCardsMessage" + "Type_EndOfHandShowCardsMessage" + "Type_ErrorMessage" + "Type_GameAdminChangedMessage" + "Type_GameListAdminChangedMessage" + "Type_GameListNewMessage" + "Type_GameListPlayerJoinedMessage" + "Type_GameListPlayerLeftMessage" + "Type_GameListSpectatorJoinedMessage" + "Type_GameListSpectatorLeftMessage" + "Type_GameListUpdateMessage" + "Type_GamePlayerJoinedMessage" + "Type_GamePlayerLeftMessage" + "Type_GameSpectatorJoinedMessage" + "Type_GameSpectatorLeftMessage" + "Type_GameStartInitialMessage" + "Type_GameStartRejoinMessage" + "Type_HandStartMessage" + "Type_InitAckMessage" + "Type_InitMessage" + "Type_InviteNotifyMessage" + "Type_InvitePlayerToGameMessage" + "Type_JoinExistingGameMessage" + "Type_JoinGameAckMessage" + "Type_JoinGameFailedMessage" + "Type_JoinNewGameMessage" + "Type_KickPetitionUpdateMessage" + "Type_KickPlayerRequestMessage" + "Type_LeaveGameRequestMessage" + "Type_MyActionRequestMessage" + "Type_PlayerIdChangedMessage" + "Type_PlayerInfoReplyMessage" + "Type_PlayerInfoRequestMessage" + "Type_PlayerListMessage" + "Type_PlayersActionDoneMessage" + "Type_PlayersTurnMessage" + "Type_RejectGameInvitationMessage" + "Type_RejectInvNotifyMessage" + "Type_RejoinExistingGameMessage" + "Type_RemovedFromGameMessage" + "Type_ReportAvatarAckMessage" + "Type_ReportAvatarMessage" + "Type_ReportGameAckMessage" + "Type_ReportGameMessage" + "Type_ResetTimeoutMessage" + "Type_ShowMyCardsRequestMessage" + "Type_StartEventAckMessage" + "Type_StartEventMessage" + "Type_StartKickPetitionMessage" + "Type_StatisticsMessage" + "Type_SubscriptionRequestMessage" + "Type_TimeoutWarningMessage" + "Type_UnknownAvatarMessage" + "Type_VoteKickReplyMessage" + "Type_VoteKickRequestMessage" + "Type_YourActionRejectedMessage"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PokerTHMessage_PokerTHMessageType_entries[] = { + { {PokerTHMessage_PokerTHMessageType_names + 0, 29}, 77 }, + { {PokerTHMessage_PokerTHMessageType_names + 29, 26}, 76 }, + { {PokerTHMessage_PokerTHMessageType_names + 55, 30}, 75 }, + { {PokerTHMessage_PokerTHMessageType_names + 85, 27}, 74 }, + { {PokerTHMessage_PokerTHMessageType_names + 112, 30}, 52 }, + { {PokerTHMessage_PokerTHMessageType_names + 142, 26}, 48 }, + { {PokerTHMessage_PokerTHMessageType_names + 168, 20}, 1 }, + { {PokerTHMessage_PokerTHMessageType_names + 188, 25}, 56 }, + { {PokerTHMessage_PokerTHMessageType_names + 213, 25}, 55 }, + { {PokerTHMessage_PokerTHMessageType_names + 238, 30}, 4 }, + { {PokerTHMessage_PokerTHMessageType_names + 268, 31}, 3 }, + { {PokerTHMessage_PokerTHMessageType_names + 299, 34}, 5 }, + { {PokerTHMessage_PokerTHMessageType_names + 333, 22}, 9 }, + { {PokerTHMessage_PokerTHMessageType_names + 355, 21}, 10 }, + { {PokerTHMessage_PokerTHMessageType_names + 376, 24}, 8 }, + { {PokerTHMessage_PokerTHMessageType_names + 400, 25}, 7 }, + { {PokerTHMessage_PokerTHMessageType_names + 425, 16}, 64 }, + { {PokerTHMessage_PokerTHMessageType_names + 441, 22}, 65 }, + { {PokerTHMessage_PokerTHMessageType_names + 463, 23}, 63 }, + { {PokerTHMessage_PokerTHMessageType_names + 486, 25}, 45 }, + { {PokerTHMessage_PokerTHMessageType_names + 511, 25}, 47 }, + { {PokerTHMessage_PokerTHMessageType_names + 536, 24}, 46 }, + { {PokerTHMessage_PokerTHMessageType_names + 560, 18}, 66 }, + { {PokerTHMessage_PokerTHMessageType_names + 578, 27}, 61 }, + { {PokerTHMessage_PokerTHMessageType_names + 605, 21}, 53 }, + { {PokerTHMessage_PokerTHMessageType_names + 626, 30}, 50 }, + { {PokerTHMessage_PokerTHMessageType_names + 656, 30}, 49 }, + { {PokerTHMessage_PokerTHMessageType_names + 686, 17}, 73 }, + { {PokerTHMessage_PokerTHMessageType_names + 703, 28}, 28 }, + { {PokerTHMessage_PokerTHMessageType_names + 731, 32}, 17 }, + { {PokerTHMessage_PokerTHMessageType_names + 763, 23}, 13 }, + { {PokerTHMessage_PokerTHMessageType_names + 786, 32}, 15 }, + { {PokerTHMessage_PokerTHMessageType_names + 818, 30}, 16 }, + { {PokerTHMessage_PokerTHMessageType_names + 848, 35}, 78 }, + { {PokerTHMessage_PokerTHMessageType_names + 883, 33}, 79 }, + { {PokerTHMessage_PokerTHMessageType_names + 916, 26}, 14 }, + { {PokerTHMessage_PokerTHMessageType_names + 942, 28}, 26 }, + { {PokerTHMessage_PokerTHMessageType_names + 970, 26}, 27 }, + { {PokerTHMessage_PokerTHMessageType_names + 996, 31}, 80 }, + { {PokerTHMessage_PokerTHMessageType_names + 1027, 29}, 81 }, + { {PokerTHMessage_PokerTHMessageType_names + 1056, 28}, 38 }, + { {PokerTHMessage_PokerTHMessageType_names + 1084, 27}, 39 }, + { {PokerTHMessage_PokerTHMessageType_names + 1111, 21}, 40 }, + { {PokerTHMessage_PokerTHMessageType_names + 1132, 19}, 6 }, + { {PokerTHMessage_PokerTHMessageType_names + 1151, 16}, 2 }, + { {PokerTHMessage_PokerTHMessageType_names + 1167, 24}, 33 }, + { {PokerTHMessage_PokerTHMessageType_names + 1191, 30}, 32 }, + { {PokerTHMessage_PokerTHMessageType_names + 1221, 28}, 21 }, + { {PokerTHMessage_PokerTHMessageType_names + 1249, 23}, 24 }, + { {PokerTHMessage_PokerTHMessageType_names + 1272, 26}, 25 }, + { {PokerTHMessage_PokerTHMessageType_names + 1298, 23}, 22 }, + { {PokerTHMessage_PokerTHMessageType_names + 1321, 30}, 60 }, + { {PokerTHMessage_PokerTHMessageType_names + 1351, 29}, 30 }, + { {PokerTHMessage_PokerTHMessageType_names + 1380, 28}, 31 }, + { {PokerTHMessage_PokerTHMessageType_names + 1408, 27}, 42 }, + { {PokerTHMessage_PokerTHMessageType_names + 1435, 27}, 54 }, + { {PokerTHMessage_PokerTHMessageType_names + 1462, 27}, 19 }, + { {PokerTHMessage_PokerTHMessageType_names + 1489, 29}, 18 }, + { {PokerTHMessage_PokerTHMessageType_names + 1518, 22}, 12 }, + { {PokerTHMessage_PokerTHMessageType_names + 1540, 29}, 44 }, + { {PokerTHMessage_PokerTHMessageType_names + 1569, 23}, 41 }, + { {PokerTHMessage_PokerTHMessageType_names + 1592, 32}, 34 }, + { {PokerTHMessage_PokerTHMessageType_names + 1624, 27}, 35 }, + { {PokerTHMessage_PokerTHMessageType_names + 1651, 30}, 23 }, + { {PokerTHMessage_PokerTHMessageType_names + 1681, 27}, 29 }, + { {PokerTHMessage_PokerTHMessageType_names + 1708, 27}, 70 }, + { {PokerTHMessage_PokerTHMessageType_names + 1735, 24}, 69 }, + { {PokerTHMessage_PokerTHMessageType_names + 1759, 25}, 72 }, + { {PokerTHMessage_PokerTHMessageType_names + 1784, 22}, 71 }, + { {PokerTHMessage_PokerTHMessageType_names + 1806, 24}, 68 }, + { {PokerTHMessage_PokerTHMessageType_names + 1830, 30}, 51 }, + { {PokerTHMessage_PokerTHMessageType_names + 1860, 25}, 37 }, + { {PokerTHMessage_PokerTHMessageType_names + 1885, 22}, 36 }, + { {PokerTHMessage_PokerTHMessageType_names + 1907, 29}, 57 }, + { {PokerTHMessage_PokerTHMessageType_names + 1936, 22}, 62 }, + { {PokerTHMessage_PokerTHMessageType_names + 1958, 31}, 20 }, + { {PokerTHMessage_PokerTHMessageType_names + 1989, 26}, 67 }, + { {PokerTHMessage_PokerTHMessageType_names + 2015, 25}, 11 }, + { {PokerTHMessage_PokerTHMessageType_names + 2040, 25}, 59 }, + { {PokerTHMessage_PokerTHMessageType_names + 2065, 27}, 58 }, + { {PokerTHMessage_PokerTHMessageType_names + 2092, 30}, 43 }, +}; + +static const int PokerTHMessage_PokerTHMessageType_entries_by_number[] = { + 6, // 1 -> Type_AnnounceMessage + 44, // 2 -> Type_InitMessage + 10, // 3 -> Type_AuthServerChallengeMessage + 9, // 4 -> Type_AuthClientResponseMessage + 11, // 5 -> Type_AuthServerVerificationMessage + 43, // 6 -> Type_InitAckMessage + 15, // 7 -> Type_AvatarRequestMessage + 14, // 8 -> Type_AvatarHeaderMessage + 12, // 9 -> Type_AvatarDataMessage + 13, // 10 -> Type_AvatarEndMessage + 77, // 11 -> Type_UnknownAvatarMessage + 58, // 12 -> Type_PlayerListMessage + 30, // 13 -> Type_GameListNewMessage + 35, // 14 -> Type_GameListUpdateMessage + 31, // 15 -> Type_GameListPlayerJoinedMessage + 32, // 16 -> Type_GameListPlayerLeftMessage + 29, // 17 -> Type_GameListAdminChangedMessage + 57, // 18 -> Type_PlayerInfoRequestMessage + 56, // 19 -> Type_PlayerInfoReplyMessage + 75, // 20 -> Type_SubscriptionRequestMessage + 47, // 21 -> Type_JoinExistingGameMessage + 50, // 22 -> Type_JoinNewGameMessage + 63, // 23 -> Type_RejoinExistingGameMessage + 48, // 24 -> Type_JoinGameAckMessage + 49, // 25 -> Type_JoinGameFailedMessage + 36, // 26 -> Type_GamePlayerJoinedMessage + 37, // 27 -> Type_GamePlayerLeftMessage + 28, // 28 -> Type_GameAdminChangedMessage + 64, // 29 -> Type_RemovedFromGameMessage + 52, // 30 -> Type_KickPlayerRequestMessage + 53, // 31 -> Type_LeaveGameRequestMessage + 46, // 32 -> Type_InvitePlayerToGameMessage + 45, // 33 -> Type_InviteNotifyMessage + 61, // 34 -> Type_RejectGameInvitationMessage + 62, // 35 -> Type_RejectInvNotifyMessage + 72, // 36 -> Type_StartEventMessage + 71, // 37 -> Type_StartEventAckMessage + 40, // 38 -> Type_GameStartInitialMessage + 41, // 39 -> Type_GameStartRejoinMessage + 42, // 40 -> Type_HandStartMessage + 60, // 41 -> Type_PlayersTurnMessage + 54, // 42 -> Type_MyActionRequestMessage + 80, // 43 -> Type_YourActionRejectedMessage + 59, // 44 -> Type_PlayersActionDoneMessage + 19, // 45 -> Type_DealFlopCardsMessage + 21, // 46 -> Type_DealTurnCardMessage + 20, // 47 -> Type_DealRiverCardMessage + 5, // 48 -> Type_AllInShowCardsMessage + 26, // 49 -> Type_EndOfHandShowCardsMessage + 25, // 50 -> Type_EndOfHandHideCardsMessage + 70, // 51 -> Type_ShowMyCardsRequestMessage + 4, // 52 -> Type_AfterHandShowCardsMessage + 24, // 53 -> Type_EndOfGameMessage + 55, // 54 -> Type_PlayerIdChangedMessage + 8, // 55 -> Type_AskKickPlayerMessage + 7, // 56 -> Type_AskKickDeniedMessage + 73, // 57 -> Type_StartKickPetitionMessage + 79, // 58 -> Type_VoteKickRequestMessage + 78, // 59 -> Type_VoteKickReplyMessage + 51, // 60 -> Type_KickPetitionUpdateMessage + 23, // 61 -> Type_EndKickPetitionMessage + 74, // 62 -> Type_StatisticsMessage + 18, // 63 -> Type_ChatRequestMessage + 16, // 64 -> Type_ChatMessage + 17, // 65 -> Type_ChatRejectMessage + 22, // 66 -> Type_DialogMessage + 76, // 67 -> Type_TimeoutWarningMessage + 69, // 68 -> Type_ResetTimeoutMessage + 66, // 69 -> Type_ReportAvatarMessage + 65, // 70 -> Type_ReportAvatarAckMessage + 68, // 71 -> Type_ReportGameMessage + 67, // 72 -> Type_ReportGameAckMessage + 27, // 73 -> Type_ErrorMessage + 3, // 74 -> Type_AdminRemoveGameMessage + 2, // 75 -> Type_AdminRemoveGameAckMessage + 1, // 76 -> Type_AdminBanPlayerMessage + 0, // 77 -> Type_AdminBanPlayerAckMessage + 33, // 78 -> Type_GameListSpectatorJoinedMessage + 34, // 79 -> Type_GameListSpectatorLeftMessage + 38, // 80 -> Type_GameSpectatorJoinedMessage + 39, // 81 -> Type_GameSpectatorLeftMessage +}; + +const std::string& PokerTHMessage_PokerTHMessageType_Name( + PokerTHMessage_PokerTHMessageType value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + PokerTHMessage_PokerTHMessageType_entries, + PokerTHMessage_PokerTHMessageType_entries_by_number, + 81, PokerTHMessage_PokerTHMessageType_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + PokerTHMessage_PokerTHMessageType_entries, + PokerTHMessage_PokerTHMessageType_entries_by_number, + 81, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + PokerTHMessage_PokerTHMessageType_strings[idx].get(); +} +bool PokerTHMessage_PokerTHMessageType_Parse( + const std::string& name, PokerTHMessage_PokerTHMessageType* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + PokerTHMessage_PokerTHMessageType_entries, 81, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AnnounceMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_InitMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AuthServerChallengeMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AuthClientResponseMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AuthServerVerificationMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_InitAckMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AvatarRequestMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AvatarHeaderMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AvatarDataMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AvatarEndMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_UnknownAvatarMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_PlayerListMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameListNewMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameListUpdateMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameListPlayerJoinedMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameListPlayerLeftMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameListAdminChangedMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_PlayerInfoRequestMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_PlayerInfoReplyMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_SubscriptionRequestMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_JoinExistingGameMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_JoinNewGameMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_RejoinExistingGameMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_JoinGameAckMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_JoinGameFailedMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GamePlayerJoinedMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GamePlayerLeftMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameAdminChangedMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_RemovedFromGameMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_KickPlayerRequestMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_LeaveGameRequestMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_InvitePlayerToGameMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_InviteNotifyMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_RejectGameInvitationMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_RejectInvNotifyMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_StartEventMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_StartEventAckMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameStartInitialMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameStartRejoinMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_HandStartMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_PlayersTurnMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_MyActionRequestMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_YourActionRejectedMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_PlayersActionDoneMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_DealFlopCardsMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_DealTurnCardMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_DealRiverCardMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AllInShowCardsMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_EndOfHandShowCardsMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_EndOfHandHideCardsMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ShowMyCardsRequestMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AfterHandShowCardsMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_EndOfGameMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_PlayerIdChangedMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AskKickPlayerMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AskKickDeniedMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_StartKickPetitionMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_VoteKickRequestMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_VoteKickReplyMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_KickPetitionUpdateMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_EndKickPetitionMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_StatisticsMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ChatRequestMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ChatMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ChatRejectMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_DialogMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_TimeoutWarningMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ResetTimeoutMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ReportAvatarMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ReportAvatarAckMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ReportGameMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ReportGameAckMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ErrorMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AdminRemoveGameMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AdminRemoveGameAckMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AdminBanPlayerMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AdminBanPlayerAckMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameListSpectatorJoinedMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameListSpectatorLeftMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameSpectatorJoinedMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameSpectatorLeftMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::PokerTHMessageType_MIN; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage::PokerTHMessageType_MAX; +constexpr int PokerTHMessage::PokerTHMessageType_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +bool NetGameMode_IsValid(int value) { + switch (value) { + case 1: + case 2: + case 3: + return true; + default: + return false; + } } -void PokerTHMessage::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - announcemessage_ = const_cast< ::AnnounceMessage*>( - ::AnnounceMessage::internal_default_instance()); -#else - announcemessage_ = const_cast< ::AnnounceMessage*>(&::AnnounceMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - initmessage_ = const_cast< ::InitMessage*>( - ::InitMessage::internal_default_instance()); -#else - initmessage_ = const_cast< ::InitMessage*>(&::InitMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - authserverchallengemessage_ = const_cast< ::AuthServerChallengeMessage*>( - ::AuthServerChallengeMessage::internal_default_instance()); -#else - authserverchallengemessage_ = const_cast< ::AuthServerChallengeMessage*>(&::AuthServerChallengeMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - authclientresponsemessage_ = const_cast< ::AuthClientResponseMessage*>( - ::AuthClientResponseMessage::internal_default_instance()); -#else - authclientresponsemessage_ = const_cast< ::AuthClientResponseMessage*>(&::AuthClientResponseMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - authserververificationmessage_ = const_cast< ::AuthServerVerificationMessage*>( - ::AuthServerVerificationMessage::internal_default_instance()); -#else - authserververificationmessage_ = const_cast< ::AuthServerVerificationMessage*>(&::AuthServerVerificationMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - initackmessage_ = const_cast< ::InitAckMessage*>( - ::InitAckMessage::internal_default_instance()); -#else - initackmessage_ = const_cast< ::InitAckMessage*>(&::InitAckMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - avatarrequestmessage_ = const_cast< ::AvatarRequestMessage*>( - ::AvatarRequestMessage::internal_default_instance()); -#else - avatarrequestmessage_ = const_cast< ::AvatarRequestMessage*>(&::AvatarRequestMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - avatarheadermessage_ = const_cast< ::AvatarHeaderMessage*>( - ::AvatarHeaderMessage::internal_default_instance()); -#else - avatarheadermessage_ = const_cast< ::AvatarHeaderMessage*>(&::AvatarHeaderMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - avatardatamessage_ = const_cast< ::AvatarDataMessage*>( - ::AvatarDataMessage::internal_default_instance()); -#else - avatardatamessage_ = const_cast< ::AvatarDataMessage*>(&::AvatarDataMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - avatarendmessage_ = const_cast< ::AvatarEndMessage*>( - ::AvatarEndMessage::internal_default_instance()); -#else - avatarendmessage_ = const_cast< ::AvatarEndMessage*>(&::AvatarEndMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - unknownavatarmessage_ = const_cast< ::UnknownAvatarMessage*>( - ::UnknownAvatarMessage::internal_default_instance()); -#else - unknownavatarmessage_ = const_cast< ::UnknownAvatarMessage*>(&::UnknownAvatarMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - playerlistmessage_ = const_cast< ::PlayerListMessage*>( - ::PlayerListMessage::internal_default_instance()); -#else - playerlistmessage_ = const_cast< ::PlayerListMessage*>(&::PlayerListMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamelistnewmessage_ = const_cast< ::GameListNewMessage*>( - ::GameListNewMessage::internal_default_instance()); -#else - gamelistnewmessage_ = const_cast< ::GameListNewMessage*>(&::GameListNewMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamelistupdatemessage_ = const_cast< ::GameListUpdateMessage*>( - ::GameListUpdateMessage::internal_default_instance()); -#else - gamelistupdatemessage_ = const_cast< ::GameListUpdateMessage*>(&::GameListUpdateMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamelistplayerjoinedmessage_ = const_cast< ::GameListPlayerJoinedMessage*>( - ::GameListPlayerJoinedMessage::internal_default_instance()); -#else - gamelistplayerjoinedmessage_ = const_cast< ::GameListPlayerJoinedMessage*>(&::GameListPlayerJoinedMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamelistplayerleftmessage_ = const_cast< ::GameListPlayerLeftMessage*>( - ::GameListPlayerLeftMessage::internal_default_instance()); -#else - gamelistplayerleftmessage_ = const_cast< ::GameListPlayerLeftMessage*>(&::GameListPlayerLeftMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamelistadminchangedmessage_ = const_cast< ::GameListAdminChangedMessage*>( - ::GameListAdminChangedMessage::internal_default_instance()); -#else - gamelistadminchangedmessage_ = const_cast< ::GameListAdminChangedMessage*>(&::GameListAdminChangedMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - playerinforequestmessage_ = const_cast< ::PlayerInfoRequestMessage*>( - ::PlayerInfoRequestMessage::internal_default_instance()); -#else - playerinforequestmessage_ = const_cast< ::PlayerInfoRequestMessage*>(&::PlayerInfoRequestMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - playerinforeplymessage_ = const_cast< ::PlayerInfoReplyMessage*>( - ::PlayerInfoReplyMessage::internal_default_instance()); -#else - playerinforeplymessage_ = const_cast< ::PlayerInfoReplyMessage*>(&::PlayerInfoReplyMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - subscriptionrequestmessage_ = const_cast< ::SubscriptionRequestMessage*>( - ::SubscriptionRequestMessage::internal_default_instance()); -#else - subscriptionrequestmessage_ = const_cast< ::SubscriptionRequestMessage*>(&::SubscriptionRequestMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - joinexistinggamemessage_ = const_cast< ::JoinExistingGameMessage*>( - ::JoinExistingGameMessage::internal_default_instance()); -#else - joinexistinggamemessage_ = const_cast< ::JoinExistingGameMessage*>(&::JoinExistingGameMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - joinnewgamemessage_ = const_cast< ::JoinNewGameMessage*>( - ::JoinNewGameMessage::internal_default_instance()); -#else - joinnewgamemessage_ = const_cast< ::JoinNewGameMessage*>(&::JoinNewGameMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - rejoinexistinggamemessage_ = const_cast< ::RejoinExistingGameMessage*>( - ::RejoinExistingGameMessage::internal_default_instance()); -#else - rejoinexistinggamemessage_ = const_cast< ::RejoinExistingGameMessage*>(&::RejoinExistingGameMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - joingameackmessage_ = const_cast< ::JoinGameAckMessage*>( - ::JoinGameAckMessage::internal_default_instance()); -#else - joingameackmessage_ = const_cast< ::JoinGameAckMessage*>(&::JoinGameAckMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - joingamefailedmessage_ = const_cast< ::JoinGameFailedMessage*>( - ::JoinGameFailedMessage::internal_default_instance()); -#else - joingamefailedmessage_ = const_cast< ::JoinGameFailedMessage*>(&::JoinGameFailedMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gameplayerjoinedmessage_ = const_cast< ::GamePlayerJoinedMessage*>( - ::GamePlayerJoinedMessage::internal_default_instance()); -#else - gameplayerjoinedmessage_ = const_cast< ::GamePlayerJoinedMessage*>(&::GamePlayerJoinedMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gameplayerleftmessage_ = const_cast< ::GamePlayerLeftMessage*>( - ::GamePlayerLeftMessage::internal_default_instance()); -#else - gameplayerleftmessage_ = const_cast< ::GamePlayerLeftMessage*>(&::GamePlayerLeftMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gameadminchangedmessage_ = const_cast< ::GameAdminChangedMessage*>( - ::GameAdminChangedMessage::internal_default_instance()); -#else - gameadminchangedmessage_ = const_cast< ::GameAdminChangedMessage*>(&::GameAdminChangedMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - removedfromgamemessage_ = const_cast< ::RemovedFromGameMessage*>( - ::RemovedFromGameMessage::internal_default_instance()); -#else - removedfromgamemessage_ = const_cast< ::RemovedFromGameMessage*>(&::RemovedFromGameMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - kickplayerrequestmessage_ = const_cast< ::KickPlayerRequestMessage*>( - ::KickPlayerRequestMessage::internal_default_instance()); -#else - kickplayerrequestmessage_ = const_cast< ::KickPlayerRequestMessage*>(&::KickPlayerRequestMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - leavegamerequestmessage_ = const_cast< ::LeaveGameRequestMessage*>( - ::LeaveGameRequestMessage::internal_default_instance()); -#else - leavegamerequestmessage_ = const_cast< ::LeaveGameRequestMessage*>(&::LeaveGameRequestMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - inviteplayertogamemessage_ = const_cast< ::InvitePlayerToGameMessage*>( - ::InvitePlayerToGameMessage::internal_default_instance()); -#else - inviteplayertogamemessage_ = const_cast< ::InvitePlayerToGameMessage*>(&::InvitePlayerToGameMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - invitenotifymessage_ = const_cast< ::InviteNotifyMessage*>( - ::InviteNotifyMessage::internal_default_instance()); -#else - invitenotifymessage_ = const_cast< ::InviteNotifyMessage*>(&::InviteNotifyMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - rejectgameinvitationmessage_ = const_cast< ::RejectGameInvitationMessage*>( - ::RejectGameInvitationMessage::internal_default_instance()); -#else - rejectgameinvitationmessage_ = const_cast< ::RejectGameInvitationMessage*>(&::RejectGameInvitationMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - rejectinvnotifymessage_ = const_cast< ::RejectInvNotifyMessage*>( - ::RejectInvNotifyMessage::internal_default_instance()); -#else - rejectinvnotifymessage_ = const_cast< ::RejectInvNotifyMessage*>(&::RejectInvNotifyMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - starteventmessage_ = const_cast< ::StartEventMessage*>( - ::StartEventMessage::internal_default_instance()); -#else - starteventmessage_ = const_cast< ::StartEventMessage*>(&::StartEventMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - starteventackmessage_ = const_cast< ::StartEventAckMessage*>( - ::StartEventAckMessage::internal_default_instance()); -#else - starteventackmessage_ = const_cast< ::StartEventAckMessage*>(&::StartEventAckMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamestartinitialmessage_ = const_cast< ::GameStartInitialMessage*>( - ::GameStartInitialMessage::internal_default_instance()); -#else - gamestartinitialmessage_ = const_cast< ::GameStartInitialMessage*>(&::GameStartInitialMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamestartrejoinmessage_ = const_cast< ::GameStartRejoinMessage*>( - ::GameStartRejoinMessage::internal_default_instance()); -#else - gamestartrejoinmessage_ = const_cast< ::GameStartRejoinMessage*>(&::GameStartRejoinMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - handstartmessage_ = const_cast< ::HandStartMessage*>( - ::HandStartMessage::internal_default_instance()); -#else - handstartmessage_ = const_cast< ::HandStartMessage*>(&::HandStartMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - playersturnmessage_ = const_cast< ::PlayersTurnMessage*>( - ::PlayersTurnMessage::internal_default_instance()); -#else - playersturnmessage_ = const_cast< ::PlayersTurnMessage*>(&::PlayersTurnMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - myactionrequestmessage_ = const_cast< ::MyActionRequestMessage*>( - ::MyActionRequestMessage::internal_default_instance()); -#else - myactionrequestmessage_ = const_cast< ::MyActionRequestMessage*>(&::MyActionRequestMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - youractionrejectedmessage_ = const_cast< ::YourActionRejectedMessage*>( - ::YourActionRejectedMessage::internal_default_instance()); -#else - youractionrejectedmessage_ = const_cast< ::YourActionRejectedMessage*>(&::YourActionRejectedMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - playersactiondonemessage_ = const_cast< ::PlayersActionDoneMessage*>( - ::PlayersActionDoneMessage::internal_default_instance()); -#else - playersactiondonemessage_ = const_cast< ::PlayersActionDoneMessage*>(&::PlayersActionDoneMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - dealflopcardsmessage_ = const_cast< ::DealFlopCardsMessage*>( - ::DealFlopCardsMessage::internal_default_instance()); -#else - dealflopcardsmessage_ = const_cast< ::DealFlopCardsMessage*>(&::DealFlopCardsMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - dealturncardmessage_ = const_cast< ::DealTurnCardMessage*>( - ::DealTurnCardMessage::internal_default_instance()); -#else - dealturncardmessage_ = const_cast< ::DealTurnCardMessage*>(&::DealTurnCardMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - dealrivercardmessage_ = const_cast< ::DealRiverCardMessage*>( - ::DealRiverCardMessage::internal_default_instance()); -#else - dealrivercardmessage_ = const_cast< ::DealRiverCardMessage*>(&::DealRiverCardMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - allinshowcardsmessage_ = const_cast< ::AllInShowCardsMessage*>( - ::AllInShowCardsMessage::internal_default_instance()); -#else - allinshowcardsmessage_ = const_cast< ::AllInShowCardsMessage*>(&::AllInShowCardsMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - endofhandshowcardsmessage_ = const_cast< ::EndOfHandShowCardsMessage*>( - ::EndOfHandShowCardsMessage::internal_default_instance()); -#else - endofhandshowcardsmessage_ = const_cast< ::EndOfHandShowCardsMessage*>(&::EndOfHandShowCardsMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - endofhandhidecardsmessage_ = const_cast< ::EndOfHandHideCardsMessage*>( - ::EndOfHandHideCardsMessage::internal_default_instance()); -#else - endofhandhidecardsmessage_ = const_cast< ::EndOfHandHideCardsMessage*>(&::EndOfHandHideCardsMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - showmycardsrequestmessage_ = const_cast< ::ShowMyCardsRequestMessage*>( - ::ShowMyCardsRequestMessage::internal_default_instance()); -#else - showmycardsrequestmessage_ = const_cast< ::ShowMyCardsRequestMessage*>(&::ShowMyCardsRequestMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - afterhandshowcardsmessage_ = const_cast< ::AfterHandShowCardsMessage*>( - ::AfterHandShowCardsMessage::internal_default_instance()); -#else - afterhandshowcardsmessage_ = const_cast< ::AfterHandShowCardsMessage*>(&::AfterHandShowCardsMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - endofgamemessage_ = const_cast< ::EndOfGameMessage*>( - ::EndOfGameMessage::internal_default_instance()); -#else - endofgamemessage_ = const_cast< ::EndOfGameMessage*>(&::EndOfGameMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - playeridchangedmessage_ = const_cast< ::PlayerIdChangedMessage*>( - ::PlayerIdChangedMessage::internal_default_instance()); -#else - playeridchangedmessage_ = const_cast< ::PlayerIdChangedMessage*>(&::PlayerIdChangedMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - askkickplayermessage_ = const_cast< ::AskKickPlayerMessage*>( - ::AskKickPlayerMessage::internal_default_instance()); -#else - askkickplayermessage_ = const_cast< ::AskKickPlayerMessage*>(&::AskKickPlayerMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - askkickdeniedmessage_ = const_cast< ::AskKickDeniedMessage*>( - ::AskKickDeniedMessage::internal_default_instance()); -#else - askkickdeniedmessage_ = const_cast< ::AskKickDeniedMessage*>(&::AskKickDeniedMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - startkickpetitionmessage_ = const_cast< ::StartKickPetitionMessage*>( - ::StartKickPetitionMessage::internal_default_instance()); -#else - startkickpetitionmessage_ = const_cast< ::StartKickPetitionMessage*>(&::StartKickPetitionMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - votekickrequestmessage_ = const_cast< ::VoteKickRequestMessage*>( - ::VoteKickRequestMessage::internal_default_instance()); -#else - votekickrequestmessage_ = const_cast< ::VoteKickRequestMessage*>(&::VoteKickRequestMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - votekickreplymessage_ = const_cast< ::VoteKickReplyMessage*>( - ::VoteKickReplyMessage::internal_default_instance()); -#else - votekickreplymessage_ = const_cast< ::VoteKickReplyMessage*>(&::VoteKickReplyMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - kickpetitionupdatemessage_ = const_cast< ::KickPetitionUpdateMessage*>( - ::KickPetitionUpdateMessage::internal_default_instance()); -#else - kickpetitionupdatemessage_ = const_cast< ::KickPetitionUpdateMessage*>(&::KickPetitionUpdateMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - endkickpetitionmessage_ = const_cast< ::EndKickPetitionMessage*>( - ::EndKickPetitionMessage::internal_default_instance()); -#else - endkickpetitionmessage_ = const_cast< ::EndKickPetitionMessage*>(&::EndKickPetitionMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - statisticsmessage_ = const_cast< ::StatisticsMessage*>( - ::StatisticsMessage::internal_default_instance()); -#else - statisticsmessage_ = const_cast< ::StatisticsMessage*>(&::StatisticsMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - chatrequestmessage_ = const_cast< ::ChatRequestMessage*>( - ::ChatRequestMessage::internal_default_instance()); -#else - chatrequestmessage_ = const_cast< ::ChatRequestMessage*>(&::ChatRequestMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - chatmessage_ = const_cast< ::ChatMessage*>( - ::ChatMessage::internal_default_instance()); -#else - chatmessage_ = const_cast< ::ChatMessage*>(&::ChatMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - chatrejectmessage_ = const_cast< ::ChatRejectMessage*>( - ::ChatRejectMessage::internal_default_instance()); -#else - chatrejectmessage_ = const_cast< ::ChatRejectMessage*>(&::ChatRejectMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - dialogmessage_ = const_cast< ::DialogMessage*>( - ::DialogMessage::internal_default_instance()); -#else - dialogmessage_ = const_cast< ::DialogMessage*>(&::DialogMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - timeoutwarningmessage_ = const_cast< ::TimeoutWarningMessage*>( - ::TimeoutWarningMessage::internal_default_instance()); -#else - timeoutwarningmessage_ = const_cast< ::TimeoutWarningMessage*>(&::TimeoutWarningMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - resettimeoutmessage_ = const_cast< ::ResetTimeoutMessage*>( - ::ResetTimeoutMessage::internal_default_instance()); -#else - resettimeoutmessage_ = const_cast< ::ResetTimeoutMessage*>(&::ResetTimeoutMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - reportavatarmessage_ = const_cast< ::ReportAvatarMessage*>( - ::ReportAvatarMessage::internal_default_instance()); -#else - reportavatarmessage_ = const_cast< ::ReportAvatarMessage*>(&::ReportAvatarMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - reportavatarackmessage_ = const_cast< ::ReportAvatarAckMessage*>( - ::ReportAvatarAckMessage::internal_default_instance()); -#else - reportavatarackmessage_ = const_cast< ::ReportAvatarAckMessage*>(&::ReportAvatarAckMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - reportgamemessage_ = const_cast< ::ReportGameMessage*>( - ::ReportGameMessage::internal_default_instance()); -#else - reportgamemessage_ = const_cast< ::ReportGameMessage*>(&::ReportGameMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - reportgameackmessage_ = const_cast< ::ReportGameAckMessage*>( - ::ReportGameAckMessage::internal_default_instance()); -#else - reportgameackmessage_ = const_cast< ::ReportGameAckMessage*>(&::ReportGameAckMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - errormessage_ = const_cast< ::ErrorMessage*>( - ::ErrorMessage::internal_default_instance()); -#else - errormessage_ = const_cast< ::ErrorMessage*>(&::ErrorMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - adminremovegamemessage_ = const_cast< ::AdminRemoveGameMessage*>( - ::AdminRemoveGameMessage::internal_default_instance()); -#else - adminremovegamemessage_ = const_cast< ::AdminRemoveGameMessage*>(&::AdminRemoveGameMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - adminremovegameackmessage_ = const_cast< ::AdminRemoveGameAckMessage*>( - ::AdminRemoveGameAckMessage::internal_default_instance()); -#else - adminremovegameackmessage_ = const_cast< ::AdminRemoveGameAckMessage*>(&::AdminRemoveGameAckMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - adminbanplayermessage_ = const_cast< ::AdminBanPlayerMessage*>( - ::AdminBanPlayerMessage::internal_default_instance()); -#else - adminbanplayermessage_ = const_cast< ::AdminBanPlayerMessage*>(&::AdminBanPlayerMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - adminbanplayerackmessage_ = const_cast< ::AdminBanPlayerAckMessage*>( - ::AdminBanPlayerAckMessage::internal_default_instance()); -#else - adminbanplayerackmessage_ = const_cast< ::AdminBanPlayerAckMessage*>(&::AdminBanPlayerAckMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamelistspectatorjoinedmessage_ = const_cast< ::GameListSpectatorJoinedMessage*>( - ::GameListSpectatorJoinedMessage::internal_default_instance()); -#else - gamelistspectatorjoinedmessage_ = const_cast< ::GameListSpectatorJoinedMessage*>(&::GameListSpectatorJoinedMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamelistspectatorleftmessage_ = const_cast< ::GameListSpectatorLeftMessage*>( - ::GameListSpectatorLeftMessage::internal_default_instance()); -#else - gamelistspectatorleftmessage_ = const_cast< ::GameListSpectatorLeftMessage*>(&::GameListSpectatorLeftMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamespectatorjoinedmessage_ = const_cast< ::GameSpectatorJoinedMessage*>( - ::GameSpectatorJoinedMessage::internal_default_instance()); -#else - gamespectatorjoinedmessage_ = const_cast< ::GameSpectatorJoinedMessage*>(&::GameSpectatorJoinedMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamespectatorleftmessage_ = const_cast< ::GameSpectatorLeftMessage*>( - ::GameSpectatorLeftMessage::internal_default_instance()); -#else - gamespectatorleftmessage_ = const_cast< ::GameSpectatorLeftMessage*>(&::GameSpectatorLeftMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamestartreentrymessage_ = const_cast< ::GameStartReentryMessage*>( - ::GameStartReentryMessage::internal_default_instance()); -#else - gamestartreentrymessage_ = const_cast< ::GameStartReentryMessage*>(&::GameStartReentryMessage::default_instance()); -#endif +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed NetGameMode_strings[3] = {}; + +static const char NetGameMode_names[] = + "netGameClosed" + "netGameCreated" + "netGameStarted"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry NetGameMode_entries[] = { + { {NetGameMode_names + 0, 13}, 3 }, + { {NetGameMode_names + 13, 14}, 1 }, + { {NetGameMode_names + 27, 14}, 2 }, +}; + +static const int NetGameMode_entries_by_number[] = { + 1, // 1 -> netGameCreated + 2, // 2 -> netGameStarted + 0, // 3 -> netGameClosed +}; + +const std::string& NetGameMode_Name( + NetGameMode value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + NetGameMode_entries, + NetGameMode_entries_by_number, + 3, NetGameMode_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + NetGameMode_entries, + NetGameMode_entries_by_number, + 3, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + NetGameMode_strings[idx].get(); +} +bool NetGameMode_Parse( + const std::string& name, NetGameMode* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + NetGameMode_entries, 3, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +bool NetGameState_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } } -PokerTHMessage::PokerTHMessage(const PokerTHMessage& from) - : ::google::protobuf::MessageLite() { +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed NetGameState_strings[6] = {}; + +static const char NetGameState_names[] = + "netStateFlop" + "netStatePreflop" + "netStatePreflopBigBlind" + "netStatePreflopSmallBlind" + "netStateRiver" + "netStateTurn"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry NetGameState_entries[] = { + { {NetGameState_names + 0, 12}, 1 }, + { {NetGameState_names + 12, 15}, 0 }, + { {NetGameState_names + 27, 23}, 5 }, + { {NetGameState_names + 50, 25}, 4 }, + { {NetGameState_names + 75, 13}, 3 }, + { {NetGameState_names + 88, 12}, 2 }, +}; + +static const int NetGameState_entries_by_number[] = { + 1, // 0 -> netStatePreflop + 0, // 1 -> netStateFlop + 5, // 2 -> netStateTurn + 4, // 3 -> netStateRiver + 3, // 4 -> netStatePreflopSmallBlind + 2, // 5 -> netStatePreflopBigBlind +}; + +const std::string& NetGameState_Name( + NetGameState value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + NetGameState_entries, + NetGameState_entries_by_number, + 6, NetGameState_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + NetGameState_entries, + NetGameState_entries_by_number, + 6, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + NetGameState_strings[idx].get(); +} +bool NetGameState_Parse( + const std::string& name, NetGameState* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + NetGameState_entries, 6, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +bool NetPlayerAction_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + return true; + default: + return false; + } +} + +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed NetPlayerAction_strings[7] = {}; + +static const char NetPlayerAction_names[] = + "netActionAllIn" + "netActionBet" + "netActionCall" + "netActionCheck" + "netActionFold" + "netActionNone" + "netActionRaise"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry NetPlayerAction_entries[] = { + { {NetPlayerAction_names + 0, 14}, 6 }, + { {NetPlayerAction_names + 14, 12}, 4 }, + { {NetPlayerAction_names + 26, 13}, 3 }, + { {NetPlayerAction_names + 39, 14}, 2 }, + { {NetPlayerAction_names + 53, 13}, 1 }, + { {NetPlayerAction_names + 66, 13}, 0 }, + { {NetPlayerAction_names + 79, 14}, 5 }, +}; + +static const int NetPlayerAction_entries_by_number[] = { + 5, // 0 -> netActionNone + 4, // 1 -> netActionFold + 3, // 2 -> netActionCheck + 2, // 3 -> netActionCall + 1, // 4 -> netActionBet + 6, // 5 -> netActionRaise + 0, // 6 -> netActionAllIn +}; + +const std::string& NetPlayerAction_Name( + NetPlayerAction value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + NetPlayerAction_entries, + NetPlayerAction_entries_by_number, + 7, NetPlayerAction_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + NetPlayerAction_entries, + NetPlayerAction_entries_by_number, + 7, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + NetPlayerAction_strings[idx].get(); +} +bool NetPlayerAction_Parse( + const std::string& name, NetPlayerAction* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + NetPlayerAction_entries, 7, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +bool NetPlayerState_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed NetPlayerState_strings[3] = {}; + +static const char NetPlayerState_names[] = + "netPlayerStateNoMoney" + "netPlayerStateNormal" + "netPlayerStateSessionInactive"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry NetPlayerState_entries[] = { + { {NetPlayerState_names + 0, 21}, 2 }, + { {NetPlayerState_names + 21, 20}, 0 }, + { {NetPlayerState_names + 41, 29}, 1 }, +}; + +static const int NetPlayerState_entries_by_number[] = { + 1, // 0 -> netPlayerStateNormal + 2, // 1 -> netPlayerStateSessionInactive + 0, // 2 -> netPlayerStateNoMoney +}; + +const std::string& NetPlayerState_Name( + NetPlayerState value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + NetPlayerState_entries, + NetPlayerState_entries_by_number, + 3, NetPlayerState_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + NetPlayerState_entries, + NetPlayerState_entries_by_number, + 3, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + NetPlayerState_strings[idx].get(); +} +bool NetPlayerState_Parse( + const std::string& name, NetPlayerState* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + NetPlayerState_entries, 3, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +bool NetPlayerInfoRights_IsValid(int value) { + switch (value) { + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed NetPlayerInfoRights_strings[3] = {}; + +static const char NetPlayerInfoRights_names[] = + "netPlayerRightsAdmin" + "netPlayerRightsGuest" + "netPlayerRightsNormal"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry NetPlayerInfoRights_entries[] = { + { {NetPlayerInfoRights_names + 0, 20}, 3 }, + { {NetPlayerInfoRights_names + 20, 20}, 1 }, + { {NetPlayerInfoRights_names + 40, 21}, 2 }, +}; + +static const int NetPlayerInfoRights_entries_by_number[] = { + 1, // 1 -> netPlayerRightsGuest + 2, // 2 -> netPlayerRightsNormal + 0, // 3 -> netPlayerRightsAdmin +}; + +const std::string& NetPlayerInfoRights_Name( + NetPlayerInfoRights value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + NetPlayerInfoRights_entries, + NetPlayerInfoRights_entries_by_number, + 3, NetPlayerInfoRights_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + NetPlayerInfoRights_entries, + NetPlayerInfoRights_entries_by_number, + 3, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + NetPlayerInfoRights_strings[idx].get(); +} +bool NetPlayerInfoRights_Parse( + const std::string& name, NetPlayerInfoRights* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + NetPlayerInfoRights_entries, 3, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +bool NetAvatarType_IsValid(int value) { + switch (value) { + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed NetAvatarType_strings[3] = {}; + +static const char NetAvatarType_names[] = + "netAvatarImageGif" + "netAvatarImageJpg" + "netAvatarImagePng"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry NetAvatarType_entries[] = { + { {NetAvatarType_names + 0, 17}, 3 }, + { {NetAvatarType_names + 17, 17}, 2 }, + { {NetAvatarType_names + 34, 17}, 1 }, +}; + +static const int NetAvatarType_entries_by_number[] = { + 2, // 1 -> netAvatarImagePng + 1, // 2 -> netAvatarImageJpg + 0, // 3 -> netAvatarImageGif +}; + +const std::string& NetAvatarType_Name( + NetAvatarType value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + NetAvatarType_entries, + NetAvatarType_entries_by_number, + 3, NetAvatarType_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + NetAvatarType_entries, + NetAvatarType_entries_by_number, + 3, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + NetAvatarType_strings[idx].get(); +} +bool NetAvatarType_Parse( + const std::string& name, NetAvatarType* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + NetAvatarType_entries, 3, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} + +// =================================================================== + +void NetGameInfo::InitAsDefaultInstance() { +} +class NetGameInfo::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gamename(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_netgametype(HasBits* has_bits) { + (*has_bits)[0] |= 1024u; + } + static void set_has_maxnumplayers(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_raiseintervalmode(HasBits* has_bits) { + (*has_bits)[0] |= 2048u; + } + static void set_has_raiseeveryhands(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_raiseeveryminutes(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_endraisemode(HasBits* has_bits) { + (*has_bits)[0] |= 4096u; + } + static void set_has_endraisesmallblindvalue(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static void set_has_proposedguispeed(HasBits* has_bits) { + (*has_bits)[0] |= 32u; + } + static void set_has_delaybetweenhands(HasBits* has_bits) { + (*has_bits)[0] |= 64u; + } + static void set_has_playeractiontimeout(HasBits* has_bits) { + (*has_bits)[0] |= 128u; + } + static void set_has_firstsmallblind(HasBits* has_bits) { + (*has_bits)[0] |= 256u; + } + static void set_has_startmoney(HasBits* has_bits) { + (*has_bits)[0] |= 512u; + } + static void set_has_allowspectators(HasBits* has_bits) { + (*has_bits)[0] |= 8192u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00001fe3) ^ 0x00001fe3) != 0; + } +}; + +NetGameInfo::NetGameInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena), + manualblinds_(arena) { SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:NetGameInfo) +} +NetGameInfo::NetGameInfo(const NetGameInfo& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_), + manualblinds_(from.manualblinds_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + gamename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_gamename()) { + gamename_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_gamename(), + GetArena()); + } + ::memcpy(&maxnumplayers_, &from.maxnumplayers_, + static_cast(reinterpret_cast(&allowspectators_) - + reinterpret_cast(&maxnumplayers_)) + sizeof(allowspectators_)); + // @@protoc_insertion_point(copy_constructor:NetGameInfo) +} + +void NetGameInfo::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_NetGameInfo_pokerth_2eproto.base); + gamename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&maxnumplayers_, 0, static_cast( + reinterpret_cast(&startmoney_) - + reinterpret_cast(&maxnumplayers_)) + sizeof(startmoney_)); + netgametype_ = 1; + raiseintervalmode_ = 1; + endraisemode_ = 1; + allowspectators_ = true; +} + +NetGameInfo::~NetGameInfo() { + // @@protoc_insertion_point(destructor:NetGameInfo) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void NetGameInfo::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + gamename_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void NetGameInfo::ArenaDtor(void* object) { + NetGameInfo* _this = reinterpret_cast< NetGameInfo* >(object); + (void)_this; +} +void NetGameInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void NetGameInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NetGameInfo& NetGameInfo::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_NetGameInfo_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void NetGameInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:NetGameInfo) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + manualblinds_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + gamename_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x000000feu) { + ::memset(&maxnumplayers_, 0, static_cast( + reinterpret_cast(&playeractiontimeout_) - + reinterpret_cast(&maxnumplayers_)) + sizeof(playeractiontimeout_)); + } + if (cached_has_bits & 0x00003f00u) { + ::memset(&firstsmallblind_, 0, static_cast( + reinterpret_cast(&startmoney_) - + reinterpret_cast(&firstsmallblind_)) + sizeof(startmoney_)); + netgametype_ = 1; + raiseintervalmode_ = 1; + endraisemode_ = 1; + allowspectators_ = true; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* NetGameInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required string gameName = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_gamename(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .NetGameInfo.NetGameType netGameType = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::NetGameInfo_NetGameType_IsValid(val))) { + _internal_set_netgametype(static_cast<::NetGameInfo_NetGameType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // required uint32 maxNumPlayers = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_maxnumplayers(&has_bits); + maxnumplayers_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::NetGameInfo_RaiseIntervalMode_IsValid(val))) { + _internal_set_raiseintervalmode(static_cast<::NetGameInfo_RaiseIntervalMode>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional uint32 raiseEveryHands = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + _Internal::set_has_raiseeveryhands(&has_bits); + raiseeveryhands_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional uint32 raiseEveryMinutes = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + _Internal::set_has_raiseeveryminutes(&has_bits); + raiseeveryminutes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::NetGameInfo_EndRaiseMode_IsValid(val))) { + _internal_set_endraisemode(static_cast<::NetGameInfo_EndRaiseMode>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(7, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional uint32 endRaiseSmallBlindValue = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { + _Internal::set_has_endraisesmallblindvalue(&has_bits); + endraisesmallblindvalue_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 proposedGuiSpeed = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { + _Internal::set_has_proposedguispeed(&has_bits); + proposedguispeed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 delayBetweenHands = 10; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { + _Internal::set_has_delaybetweenhands(&has_bits); + delaybetweenhands_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerActionTimeout = 11; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) { + _Internal::set_has_playeractiontimeout(&has_bits); + playeractiontimeout_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 firstSmallBlind = 12; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) { + _Internal::set_has_firstsmallblind(&has_bits); + firstsmallblind_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 startMoney = 13; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) { + _Internal::set_has_startmoney(&has_bits); + startmoney_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated uint32 manualBlinds = 14 [packed = true]; + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 114)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_manualblinds(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 112) { + _internal_add_manualblinds(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bool allowSpectators = 15 [default = true]; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 120)) { + _Internal::set_has_allowspectators(&has_bits); + allowspectators_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* NetGameInfo::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:NetGameInfo) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required string gameName = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteStringMaybeAliased( + 1, this->_internal_gamename(), target); + } + + // required .NetGameInfo.NetGameType netGameType = 2; + if (cached_has_bits & 0x00000400u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_netgametype(), target); + } + + // required uint32 maxNumPlayers = 3; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_maxnumplayers(), target); + } + + // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; + if (cached_has_bits & 0x00000800u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 4, this->_internal_raiseintervalmode(), target); + } + + // optional uint32 raiseEveryHands = 5; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_raiseeveryhands(), target); + } + + // optional uint32 raiseEveryMinutes = 6; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_raiseeveryminutes(), target); + } + + // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; + if (cached_has_bits & 0x00001000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 7, this->_internal_endraisemode(), target); + } + + // optional uint32 endRaiseSmallBlindValue = 8; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(8, this->_internal_endraisesmallblindvalue(), target); + } + + // required uint32 proposedGuiSpeed = 9; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(9, this->_internal_proposedguispeed(), target); + } + + // required uint32 delayBetweenHands = 10; + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(10, this->_internal_delaybetweenhands(), target); + } + + // required uint32 playerActionTimeout = 11; + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(11, this->_internal_playeractiontimeout(), target); + } + + // required uint32 firstSmallBlind = 12; + if (cached_has_bits & 0x00000100u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(12, this->_internal_firstsmallblind(), target); + } + + // required uint32 startMoney = 13; + if (cached_has_bits & 0x00000200u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(13, this->_internal_startmoney(), target); + } + + // repeated uint32 manualBlinds = 14 [packed = true]; + { + int byte_size = _manualblinds_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteUInt32Packed( + 14, _internal_manualblinds(), byte_size, target); + } + } + + // optional bool allowSpectators = 15 [default = true]; + if (cached_has_bits & 0x00002000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(15, this->_internal_allowspectators(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:NetGameInfo) + return target; +} + +size_t NetGameInfo::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:NetGameInfo) + size_t total_size = 0; + + if (_internal_has_gamename()) { + // required string gameName = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_gamename()); + } + + if (_internal_has_maxnumplayers()) { + // required uint32 maxNumPlayers = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_maxnumplayers()); + } + + if (_internal_has_proposedguispeed()) { + // required uint32 proposedGuiSpeed = 9; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_proposedguispeed()); + } + + if (_internal_has_delaybetweenhands()) { + // required uint32 delayBetweenHands = 10; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_delaybetweenhands()); + } + + if (_internal_has_playeractiontimeout()) { + // required uint32 playerActionTimeout = 11; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playeractiontimeout()); + } + + if (_internal_has_firstsmallblind()) { + // required uint32 firstSmallBlind = 12; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_firstsmallblind()); + } + + if (_internal_has_startmoney()) { + // required uint32 startMoney = 13; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_startmoney()); + } + + if (_internal_has_netgametype()) { + // required .NetGameInfo.NetGameType netGameType = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_netgametype()); + } + + if (_internal_has_raiseintervalmode()) { + // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_raiseintervalmode()); + } + + if (_internal_has_endraisemode()) { + // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_endraisemode()); + } + + return total_size; +} +size_t NetGameInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:NetGameInfo) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00001fe3) ^ 0x00001fe3) == 0) { // All required fields are present. + // required string gameName = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_gamename()); + + // required uint32 maxNumPlayers = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_maxnumplayers()); + + // required uint32 proposedGuiSpeed = 9; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_proposedguispeed()); + + // required uint32 delayBetweenHands = 10; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_delaybetweenhands()); + + // required uint32 playerActionTimeout = 11; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playeractiontimeout()); + + // required uint32 firstSmallBlind = 12; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_firstsmallblind()); + + // required uint32 startMoney = 13; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_startmoney()); + + // required .NetGameInfo.NetGameType netGameType = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_netgametype()); + + // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_raiseintervalmode()); + + // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_endraisemode()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated uint32 manualBlinds = 14 [packed = true]; + { + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + UInt32Size(this->manualblinds_); + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _manualblinds_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000001cu) { + // optional uint32 raiseEveryHands = 5; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_raiseeveryhands()); + } + + // optional uint32 raiseEveryMinutes = 6; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_raiseeveryminutes()); + } + + // optional uint32 endRaiseSmallBlindValue = 8; + if (cached_has_bits & 0x00000010u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_endraisesmallblindvalue()); + } + + } + // optional bool allowSpectators = 15 [default = true]; + if (cached_has_bits & 0x00002000u) { + total_size += 1 + 1; + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NetGameInfo::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void NetGameInfo::MergeFrom(const NetGameInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:NetGameInfo) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + manualblinds_.MergeFrom(from.manualblinds_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x000000ffu) { + if (cached_has_bits & 0x00000001u) { + _internal_set_gamename(from._internal_gamename()); + } + if (cached_has_bits & 0x00000002u) { + maxnumplayers_ = from.maxnumplayers_; + } + if (cached_has_bits & 0x00000004u) { + raiseeveryhands_ = from.raiseeveryhands_; + } + if (cached_has_bits & 0x00000008u) { + raiseeveryminutes_ = from.raiseeveryminutes_; + } + if (cached_has_bits & 0x00000010u) { + endraisesmallblindvalue_ = from.endraisesmallblindvalue_; + } + if (cached_has_bits & 0x00000020u) { + proposedguispeed_ = from.proposedguispeed_; + } + if (cached_has_bits & 0x00000040u) { + delaybetweenhands_ = from.delaybetweenhands_; + } + if (cached_has_bits & 0x00000080u) { + playeractiontimeout_ = from.playeractiontimeout_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 0x00003f00u) { + if (cached_has_bits & 0x00000100u) { + firstsmallblind_ = from.firstsmallblind_; + } + if (cached_has_bits & 0x00000200u) { + startmoney_ = from.startmoney_; + } + if (cached_has_bits & 0x00000400u) { + netgametype_ = from.netgametype_; + } + if (cached_has_bits & 0x00000800u) { + raiseintervalmode_ = from.raiseintervalmode_; + } + if (cached_has_bits & 0x00001000u) { + endraisemode_ = from.endraisemode_; + } + if (cached_has_bits & 0x00002000u) { + allowspectators_ = from.allowspectators_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void NetGameInfo::CopyFrom(const NetGameInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:NetGameInfo) + if (&from == this) return; + Clear(); MergeFrom(from); } +bool NetGameInfo::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void NetGameInfo::InternalSwap(NetGameInfo* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + manualblinds_.InternalSwap(&other->manualblinds_); + gamename_.Swap(&other->gamename_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(NetGameInfo, startmoney_) + + sizeof(NetGameInfo::startmoney_) + - PROTOBUF_FIELD_OFFSET(NetGameInfo, maxnumplayers_)>( + reinterpret_cast(&maxnumplayers_), + reinterpret_cast(&other->maxnumplayers_)); + swap(netgametype_, other->netgametype_); + swap(raiseintervalmode_, other->raiseintervalmode_); + swap(endraisemode_, other->endraisemode_); + swap(allowspectators_, other->allowspectators_); +} + +std::string NetGameInfo::GetTypeName() const { + return "NetGameInfo"; +} + + +// =================================================================== + +void PlayerResult::InitAsDefaultInstance() { +} +class PlayerResult::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_resultcard1(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_resultcard2(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_moneywon(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_playermoney(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static void set_has_cardsvalue(HasBits* has_bits) { + (*has_bits)[0] |= 32u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x0000001f) ^ 0x0000001f) != 0; + } +}; + +PlayerResult::PlayerResult(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena), + besthandposition_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:PlayerResult) +} +PlayerResult::PlayerResult(const PlayerResult& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_), + besthandposition_(from.besthandposition_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&playerid_, &from.playerid_, + static_cast(reinterpret_cast(&cardsvalue_) - + reinterpret_cast(&playerid_)) + sizeof(cardsvalue_)); + // @@protoc_insertion_point(copy_constructor:PlayerResult) +} + +void PlayerResult::SharedCtor() { + ::memset(&playerid_, 0, static_cast( + reinterpret_cast(&cardsvalue_) - + reinterpret_cast(&playerid_)) + sizeof(cardsvalue_)); +} + +PlayerResult::~PlayerResult() { + // @@protoc_insertion_point(destructor:PlayerResult) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void PlayerResult::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void PlayerResult::ArenaDtor(void* object) { + PlayerResult* _this = reinterpret_cast< PlayerResult* >(object); + (void)_this; +} +void PlayerResult::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PlayerResult::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PlayerResult& PlayerResult::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PlayerResult_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void PlayerResult::Clear() { +// @@protoc_insertion_point(message_clear_start:PlayerResult) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + besthandposition_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000003fu) { + ::memset(&playerid_, 0, static_cast( + reinterpret_cast(&cardsvalue_) - + reinterpret_cast(&playerid_)) + sizeof(cardsvalue_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* PlayerResult::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 playerId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 resultCard1 = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_resultcard1(&has_bits); + resultcard1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 resultCard2 = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_resultcard2(&has_bits); + resultcard2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated uint32 bestHandPosition = 4 [packed = true]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_besthandposition(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32) { + _internal_add_besthandposition(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 moneyWon = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + _Internal::set_has_moneywon(&has_bits); + moneywon_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerMoney = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + _Internal::set_has_playermoney(&has_bits); + playermoney_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional uint32 cardsValue = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { + _Internal::set_has_cardsvalue(&has_bits); + cardsvalue_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* PlayerResult::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:PlayerResult) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 playerId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_playerid(), target); + } + + // required uint32 resultCard1 = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_resultcard1(), target); + } + + // required uint32 resultCard2 = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_resultcard2(), target); + } + + // repeated uint32 bestHandPosition = 4 [packed = true]; + { + int byte_size = _besthandposition_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteUInt32Packed( + 4, _internal_besthandposition(), byte_size, target); + } + } + + // required uint32 moneyWon = 5; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_moneywon(), target); + } + + // required uint32 playerMoney = 6; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_playermoney(), target); + } + + // optional uint32 cardsValue = 7; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(7, this->_internal_cardsvalue(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:PlayerResult) + return target; +} + +size_t PlayerResult::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:PlayerResult) + size_t total_size = 0; + + if (_internal_has_playerid()) { + // required uint32 playerId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + if (_internal_has_resultcard1()) { + // required uint32 resultCard1 = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_resultcard1()); + } + + if (_internal_has_resultcard2()) { + // required uint32 resultCard2 = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_resultcard2()); + } + + if (_internal_has_moneywon()) { + // required uint32 moneyWon = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_moneywon()); + } + + if (_internal_has_playermoney()) { + // required uint32 playerMoney = 6; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playermoney()); + } + + return total_size; +} +size_t PlayerResult::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:PlayerResult) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present. + // required uint32 playerId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + // required uint32 resultCard1 = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_resultcard1()); + + // required uint32 resultCard2 = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_resultcard2()); + + // required uint32 moneyWon = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_moneywon()); + + // required uint32 playerMoney = 6; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playermoney()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated uint32 bestHandPosition = 4 [packed = true]; + { + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + UInt32Size(this->besthandposition_); + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _besthandposition_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // optional uint32 cardsValue = 7; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000020u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_cardsvalue()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PlayerResult::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void PlayerResult::MergeFrom(const PlayerResult& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:PlayerResult) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + besthandposition_.MergeFrom(from.besthandposition_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000003fu) { + if (cached_has_bits & 0x00000001u) { + playerid_ = from.playerid_; + } + if (cached_has_bits & 0x00000002u) { + resultcard1_ = from.resultcard1_; + } + if (cached_has_bits & 0x00000004u) { + resultcard2_ = from.resultcard2_; + } + if (cached_has_bits & 0x00000008u) { + moneywon_ = from.moneywon_; + } + if (cached_has_bits & 0x00000010u) { + playermoney_ = from.playermoney_; + } + if (cached_has_bits & 0x00000020u) { + cardsvalue_ = from.cardsvalue_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void PlayerResult::CopyFrom(const PlayerResult& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:PlayerResult) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlayerResult::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void PlayerResult::InternalSwap(PlayerResult* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + besthandposition_.InternalSwap(&other->besthandposition_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PlayerResult, cardsvalue_) + + sizeof(PlayerResult::cardsvalue_) + - PROTOBUF_FIELD_OFFSET(PlayerResult, playerid_)>( + reinterpret_cast(&playerid_), + reinterpret_cast(&other->playerid_)); +} + +std::string PlayerResult::GetTypeName() const { + return "PlayerResult"; +} + + +// =================================================================== + +void AnnounceMessage_Version::InitAsDefaultInstance() { +} +class AnnounceMessage_Version::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_majorversion(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_minorversion(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +AnnounceMessage_Version::AnnounceMessage_Version(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:AnnounceMessage.Version) +} +AnnounceMessage_Version::AnnounceMessage_Version(const AnnounceMessage_Version& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&majorversion_, &from.majorversion_, + static_cast(reinterpret_cast(&minorversion_) - + reinterpret_cast(&majorversion_)) + sizeof(minorversion_)); + // @@protoc_insertion_point(copy_constructor:AnnounceMessage.Version) +} + +void AnnounceMessage_Version::SharedCtor() { + ::memset(&majorversion_, 0, static_cast( + reinterpret_cast(&minorversion_) - + reinterpret_cast(&majorversion_)) + sizeof(minorversion_)); +} + +AnnounceMessage_Version::~AnnounceMessage_Version() { + // @@protoc_insertion_point(destructor:AnnounceMessage.Version) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void AnnounceMessage_Version::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void AnnounceMessage_Version::ArenaDtor(void* object) { + AnnounceMessage_Version* _this = reinterpret_cast< AnnounceMessage_Version* >(object); + (void)_this; +} +void AnnounceMessage_Version::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AnnounceMessage_Version::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AnnounceMessage_Version& AnnounceMessage_Version::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AnnounceMessage_Version_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void AnnounceMessage_Version::Clear() { +// @@protoc_insertion_point(message_clear_start:AnnounceMessage.Version) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&majorversion_, 0, static_cast( + reinterpret_cast(&minorversion_) - + reinterpret_cast(&majorversion_)) + sizeof(minorversion_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* AnnounceMessage_Version::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 majorVersion = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_majorversion(&has_bits); + majorversion_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 minorVersion = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_minorversion(&has_bits); + minorversion_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* AnnounceMessage_Version::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:AnnounceMessage.Version) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 majorVersion = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_majorversion(), target); + } + + // required uint32 minorVersion = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_minorversion(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:AnnounceMessage.Version) + return target; +} + +size_t AnnounceMessage_Version::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:AnnounceMessage.Version) + size_t total_size = 0; + + if (_internal_has_majorversion()) { + // required uint32 majorVersion = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_majorversion()); + } + + if (_internal_has_minorversion()) { + // required uint32 minorVersion = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_minorversion()); + } + + return total_size; +} +size_t AnnounceMessage_Version::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:AnnounceMessage.Version) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 majorVersion = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_majorversion()); + + // required uint32 minorVersion = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_minorversion()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AnnounceMessage_Version::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void AnnounceMessage_Version::MergeFrom(const AnnounceMessage_Version& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:AnnounceMessage.Version) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + majorversion_ = from.majorversion_; + } + if (cached_has_bits & 0x00000002u) { + minorversion_ = from.minorversion_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void AnnounceMessage_Version::CopyFrom(const AnnounceMessage_Version& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:AnnounceMessage.Version) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AnnounceMessage_Version::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void AnnounceMessage_Version::InternalSwap(AnnounceMessage_Version* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AnnounceMessage_Version, minorversion_) + + sizeof(AnnounceMessage_Version::minorversion_) + - PROTOBUF_FIELD_OFFSET(AnnounceMessage_Version, majorversion_)>( + reinterpret_cast(&majorversion_), + reinterpret_cast(&other->majorversion_)); +} + +std::string AnnounceMessage_Version::GetTypeName() const { + return "AnnounceMessage.Version"; +} + + +// =================================================================== + +void AnnounceMessage::InitAsDefaultInstance() { + ::_AnnounceMessage_default_instance_._instance.get_mutable()->protocolversion_ = const_cast< ::AnnounceMessage_Version*>( + ::AnnounceMessage_Version::internal_default_instance()); + ::_AnnounceMessage_default_instance_._instance.get_mutable()->latestgameversion_ = const_cast< ::AnnounceMessage_Version*>( + ::AnnounceMessage_Version::internal_default_instance()); +} +class AnnounceMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static const ::AnnounceMessage_Version& protocolversion(const AnnounceMessage* msg); + static void set_has_protocolversion(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::AnnounceMessage_Version& latestgameversion(const AnnounceMessage* msg); + static void set_has_latestgameversion(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_latestbetarevision(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_servertype(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_numplayersonserver(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x0000001f) ^ 0x0000001f) != 0; + } +}; + +const ::AnnounceMessage_Version& +AnnounceMessage::_Internal::protocolversion(const AnnounceMessage* msg) { + return *msg->protocolversion_; +} +const ::AnnounceMessage_Version& +AnnounceMessage::_Internal::latestgameversion(const AnnounceMessage* msg) { + return *msg->latestgameversion_; +} +AnnounceMessage::AnnounceMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:AnnounceMessage) +} +AnnounceMessage::AnnounceMessage(const AnnounceMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from._internal_has_protocolversion()) { + protocolversion_ = new ::AnnounceMessage_Version(*from.protocolversion_); + } else { + protocolversion_ = nullptr; + } + if (from._internal_has_latestgameversion()) { + latestgameversion_ = new ::AnnounceMessage_Version(*from.latestgameversion_); + } else { + latestgameversion_ = nullptr; + } + ::memcpy(&latestbetarevision_, &from.latestbetarevision_, + static_cast(reinterpret_cast(&numplayersonserver_) - + reinterpret_cast(&latestbetarevision_)) + sizeof(numplayersonserver_)); + // @@protoc_insertion_point(copy_constructor:AnnounceMessage) +} + +void AnnounceMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AnnounceMessage_pokerth_2eproto.base); + ::memset(&protocolversion_, 0, static_cast( + reinterpret_cast(&numplayersonserver_) - + reinterpret_cast(&protocolversion_)) + sizeof(numplayersonserver_)); +} + +AnnounceMessage::~AnnounceMessage() { + // @@protoc_insertion_point(destructor:AnnounceMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void AnnounceMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + if (this != internal_default_instance()) delete protocolversion_; + if (this != internal_default_instance()) delete latestgameversion_; +} + +void AnnounceMessage::ArenaDtor(void* object) { + AnnounceMessage* _this = reinterpret_cast< AnnounceMessage* >(object); + (void)_this; +} +void AnnounceMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AnnounceMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AnnounceMessage& AnnounceMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AnnounceMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void AnnounceMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:AnnounceMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(protocolversion_ != nullptr); + protocolversion_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(latestgameversion_ != nullptr); + latestgameversion_->Clear(); + } + } + if (cached_has_bits & 0x0000001cu) { + ::memset(&latestbetarevision_, 0, static_cast( + reinterpret_cast(&numplayersonserver_) - + reinterpret_cast(&latestbetarevision_)) + sizeof(numplayersonserver_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* AnnounceMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required .AnnounceMessage.Version protocolVersion = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_protocolversion(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .AnnounceMessage.Version latestGameVersion = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_latestgameversion(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 latestBetaRevision = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_latestbetarevision(&has_bits); + latestbetarevision_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .AnnounceMessage.ServerType serverType = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::AnnounceMessage_ServerType_IsValid(val))) { + _internal_set_servertype(static_cast<::AnnounceMessage_ServerType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // required uint32 numPlayersOnServer = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + _Internal::set_has_numplayersonserver(&has_bits); + numplayersonserver_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* AnnounceMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:AnnounceMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required .AnnounceMessage.Version protocolVersion = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::protocolversion(this), target, stream); + } + + // required .AnnounceMessage.Version latestGameVersion = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::latestgameversion(this), target, stream); + } + + // required uint32 latestBetaRevision = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_latestbetarevision(), target); + } + + // required .AnnounceMessage.ServerType serverType = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 4, this->_internal_servertype(), target); + } + + // required uint32 numPlayersOnServer = 5; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_numplayersonserver(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:AnnounceMessage) + return target; +} + +size_t AnnounceMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:AnnounceMessage) + size_t total_size = 0; + + if (_internal_has_protocolversion()) { + // required .AnnounceMessage.Version protocolVersion = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *protocolversion_); + } + + if (_internal_has_latestgameversion()) { + // required .AnnounceMessage.Version latestGameVersion = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *latestgameversion_); + } + + if (_internal_has_latestbetarevision()) { + // required uint32 latestBetaRevision = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_latestbetarevision()); + } + + if (_internal_has_servertype()) { + // required .AnnounceMessage.ServerType serverType = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_servertype()); + } + + if (_internal_has_numplayersonserver()) { + // required uint32 numPlayersOnServer = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_numplayersonserver()); + } + + return total_size; +} +size_t AnnounceMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:AnnounceMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present. + // required .AnnounceMessage.Version protocolVersion = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *protocolversion_); + + // required .AnnounceMessage.Version latestGameVersion = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *latestgameversion_); + + // required uint32 latestBetaRevision = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_latestbetarevision()); + + // required .AnnounceMessage.ServerType serverType = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_servertype()); + + // required uint32 numPlayersOnServer = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_numplayersonserver()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AnnounceMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void AnnounceMessage::MergeFrom(const AnnounceMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:AnnounceMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { + if (cached_has_bits & 0x00000001u) { + _internal_mutable_protocolversion()->::AnnounceMessage_Version::MergeFrom(from._internal_protocolversion()); + } + if (cached_has_bits & 0x00000002u) { + _internal_mutable_latestgameversion()->::AnnounceMessage_Version::MergeFrom(from._internal_latestgameversion()); + } + if (cached_has_bits & 0x00000004u) { + latestbetarevision_ = from.latestbetarevision_; + } + if (cached_has_bits & 0x00000008u) { + servertype_ = from.servertype_; + } + if (cached_has_bits & 0x00000010u) { + numplayersonserver_ = from.numplayersonserver_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void AnnounceMessage::CopyFrom(const AnnounceMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:AnnounceMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AnnounceMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + if (_internal_has_protocolversion()) { + if (!protocolversion_->IsInitialized()) return false; + } + if (_internal_has_latestgameversion()) { + if (!latestgameversion_->IsInitialized()) return false; + } + return true; +} + +void AnnounceMessage::InternalSwap(AnnounceMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AnnounceMessage, numplayersonserver_) + + sizeof(AnnounceMessage::numplayersonserver_) + - PROTOBUF_FIELD_OFFSET(AnnounceMessage, protocolversion_)>( + reinterpret_cast(&protocolversion_), + reinterpret_cast(&other->protocolversion_)); +} + +std::string AnnounceMessage::GetTypeName() const { + return "AnnounceMessage"; +} + + +// =================================================================== + +void InitMessage::InitAsDefaultInstance() { + ::_InitMessage_default_instance_._instance.get_mutable()->requestedversion_ = const_cast< ::AnnounceMessage_Version*>( + ::AnnounceMessage_Version::internal_default_instance()); +} +class InitMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static const ::AnnounceMessage_Version& requestedversion(const InitMessage* msg); + static void set_has_requestedversion(HasBits* has_bits) { + (*has_bits)[0] |= 32u; + } + static void set_has_buildid(HasBits* has_bits) { + (*has_bits)[0] |= 64u; + } + static void set_has_mylastsessionid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_authserverpassword(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_login(HasBits* has_bits) { + (*has_bits)[0] |= 128u; + } + static void set_has_nickname(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_clientuserdata(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_avatarhash(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x000000e0) ^ 0x000000e0) != 0; + } +}; + +const ::AnnounceMessage_Version& +InitMessage::_Internal::requestedversion(const InitMessage* msg) { + return *msg->requestedversion_; +} +InitMessage::InitMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:InitMessage) +} +InitMessage::InitMessage(const InitMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + mylastsessionid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_mylastsessionid()) { + mylastsessionid_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_mylastsessionid(), + GetArena()); + } + authserverpassword_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_authserverpassword()) { + authserverpassword_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_authserverpassword(), + GetArena()); + } + nickname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_nickname()) { + nickname_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_nickname(), + GetArena()); + } + clientuserdata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_clientuserdata()) { + clientuserdata_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_clientuserdata(), + GetArena()); + } + avatarhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_avatarhash()) { + avatarhash_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_avatarhash(), + GetArena()); + } + if (from._internal_has_requestedversion()) { + requestedversion_ = new ::AnnounceMessage_Version(*from.requestedversion_); + } else { + requestedversion_ = nullptr; + } + ::memcpy(&buildid_, &from.buildid_, + static_cast(reinterpret_cast(&login_) - + reinterpret_cast(&buildid_)) + sizeof(login_)); + // @@protoc_insertion_point(copy_constructor:InitMessage) +} + +void InitMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_InitMessage_pokerth_2eproto.base); + mylastsessionid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + authserverpassword_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + nickname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + clientuserdata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + avatarhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&requestedversion_, 0, static_cast( + reinterpret_cast(&login_) - + reinterpret_cast(&requestedversion_)) + sizeof(login_)); +} + +InitMessage::~InitMessage() { + // @@protoc_insertion_point(destructor:InitMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void InitMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + mylastsessionid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + authserverpassword_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + nickname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + clientuserdata_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + avatarhash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete requestedversion_; +} + +void InitMessage::ArenaDtor(void* object) { + InitMessage* _this = reinterpret_cast< InitMessage* >(object); + (void)_this; +} +void InitMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void InitMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const InitMessage& InitMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InitMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void InitMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:InitMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000003fu) { + if (cached_has_bits & 0x00000001u) { + mylastsessionid_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + authserverpassword_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000004u) { + nickname_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000008u) { + clientuserdata_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000010u) { + avatarhash_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000020u) { + GOOGLE_DCHECK(requestedversion_ != nullptr); + requestedversion_->Clear(); + } + } + if (cached_has_bits & 0x000000c0u) { + ::memset(&buildid_, 0, static_cast( + reinterpret_cast(&login_) - + reinterpret_cast(&buildid_)) + sizeof(login_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* InitMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required .AnnounceMessage.Version requestedVersion = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_requestedversion(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 buildId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_buildid(&has_bits); + buildid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bytes myLastSessionId = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_mylastsessionid(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional string authServerPassword = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_authserverpassword(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .InitMessage.LoginType login = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::InitMessage_LoginType_IsValid(val))) { + _internal_set_login(static_cast<::InitMessage_LoginType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional string nickName = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + auto str = _internal_mutable_nickname(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bytes clientUserData = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + auto str = _internal_mutable_clientuserdata(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bytes avatarHash = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + auto str = _internal_mutable_avatarhash(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* InitMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:InitMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required .AnnounceMessage.Version requestedVersion = 1; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::requestedversion(this), target, stream); + } + + // required uint32 buildId = 2; + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_buildid(), target); + } + + // optional bytes myLastSessionId = 3; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_mylastsessionid(), target); + } + + // optional string authServerPassword = 4; + if (cached_has_bits & 0x00000002u) { + target = stream->WriteStringMaybeAliased( + 4, this->_internal_authserverpassword(), target); + } + + // required .InitMessage.LoginType login = 5; + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 5, this->_internal_login(), target); + } + + // optional string nickName = 6; + if (cached_has_bits & 0x00000004u) { + target = stream->WriteStringMaybeAliased( + 6, this->_internal_nickname(), target); + } + + // optional bytes clientUserData = 7; + if (cached_has_bits & 0x00000008u) { + target = stream->WriteBytesMaybeAliased( + 7, this->_internal_clientuserdata(), target); + } + + // optional bytes avatarHash = 8; + if (cached_has_bits & 0x00000010u) { + target = stream->WriteBytesMaybeAliased( + 8, this->_internal_avatarhash(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:InitMessage) + return target; +} + +size_t InitMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:InitMessage) + size_t total_size = 0; + + if (_internal_has_requestedversion()) { + // required .AnnounceMessage.Version requestedVersion = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *requestedversion_); + } + + if (_internal_has_buildid()) { + // required uint32 buildId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_buildid()); + } + + if (_internal_has_login()) { + // required .InitMessage.LoginType login = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_login()); + } + + return total_size; +} +size_t InitMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:InitMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x000000e0) ^ 0x000000e0) == 0) { // All required fields are present. + // required .AnnounceMessage.Version requestedVersion = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *requestedversion_); + + // required uint32 buildId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_buildid()); + + // required .InitMessage.LoginType login = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_login()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { + // optional bytes myLastSessionId = 3; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_mylastsessionid()); + } + + // optional string authServerPassword = 4; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_authserverpassword()); + } + + // optional string nickName = 6; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_nickname()); + } + + // optional bytes clientUserData = 7; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_clientuserdata()); + } + + // optional bytes avatarHash = 8; + if (cached_has_bits & 0x00000010u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_avatarhash()); + } + + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void InitMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void InitMessage::MergeFrom(const InitMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:InitMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x000000ffu) { + if (cached_has_bits & 0x00000001u) { + _internal_set_mylastsessionid(from._internal_mylastsessionid()); + } + if (cached_has_bits & 0x00000002u) { + _internal_set_authserverpassword(from._internal_authserverpassword()); + } + if (cached_has_bits & 0x00000004u) { + _internal_set_nickname(from._internal_nickname()); + } + if (cached_has_bits & 0x00000008u) { + _internal_set_clientuserdata(from._internal_clientuserdata()); + } + if (cached_has_bits & 0x00000010u) { + _internal_set_avatarhash(from._internal_avatarhash()); + } + if (cached_has_bits & 0x00000020u) { + _internal_mutable_requestedversion()->::AnnounceMessage_Version::MergeFrom(from._internal_requestedversion()); + } + if (cached_has_bits & 0x00000040u) { + buildid_ = from.buildid_; + } + if (cached_has_bits & 0x00000080u) { + login_ = from.login_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void InitMessage::CopyFrom(const InitMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:InitMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InitMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + if (_internal_has_requestedversion()) { + if (!requestedversion_->IsInitialized()) return false; + } + return true; +} + +void InitMessage::InternalSwap(InitMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + mylastsessionid_.Swap(&other->mylastsessionid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + authserverpassword_.Swap(&other->authserverpassword_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + nickname_.Swap(&other->nickname_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + clientuserdata_.Swap(&other->clientuserdata_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + avatarhash_.Swap(&other->avatarhash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(InitMessage, login_) + + sizeof(InitMessage::login_) + - PROTOBUF_FIELD_OFFSET(InitMessage, requestedversion_)>( + reinterpret_cast(&requestedversion_), + reinterpret_cast(&other->requestedversion_)); +} + +std::string InitMessage::GetTypeName() const { + return "InitMessage"; +} + + +// =================================================================== + +void AuthServerChallengeMessage::InitAsDefaultInstance() { +} +class AuthServerChallengeMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_serverchallenge(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +AuthServerChallengeMessage::AuthServerChallengeMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:AuthServerChallengeMessage) +} +AuthServerChallengeMessage::AuthServerChallengeMessage(const AuthServerChallengeMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + serverchallenge_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_serverchallenge()) { + serverchallenge_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_serverchallenge(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:AuthServerChallengeMessage) +} + +void AuthServerChallengeMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AuthServerChallengeMessage_pokerth_2eproto.base); + serverchallenge_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +AuthServerChallengeMessage::~AuthServerChallengeMessage() { + // @@protoc_insertion_point(destructor:AuthServerChallengeMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void AuthServerChallengeMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + serverchallenge_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void AuthServerChallengeMessage::ArenaDtor(void* object) { + AuthServerChallengeMessage* _this = reinterpret_cast< AuthServerChallengeMessage* >(object); + (void)_this; +} +void AuthServerChallengeMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AuthServerChallengeMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AuthServerChallengeMessage& AuthServerChallengeMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AuthServerChallengeMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void AuthServerChallengeMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:AuthServerChallengeMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + serverchallenge_.ClearNonDefaultToEmpty(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* AuthServerChallengeMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required bytes serverChallenge = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_serverchallenge(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* AuthServerChallengeMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:AuthServerChallengeMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required bytes serverChallenge = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_serverchallenge(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:AuthServerChallengeMessage) + return target; +} + +size_t AuthServerChallengeMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:AuthServerChallengeMessage) + size_t total_size = 0; + + // required bytes serverChallenge = 1; + if (_internal_has_serverchallenge()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_serverchallenge()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AuthServerChallengeMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void AuthServerChallengeMessage::MergeFrom(const AuthServerChallengeMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:AuthServerChallengeMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_serverchallenge()) { + _internal_set_serverchallenge(from._internal_serverchallenge()); + } +} + +void AuthServerChallengeMessage::CopyFrom(const AuthServerChallengeMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:AuthServerChallengeMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AuthServerChallengeMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void AuthServerChallengeMessage::InternalSwap(AuthServerChallengeMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + serverchallenge_.Swap(&other->serverchallenge_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +std::string AuthServerChallengeMessage::GetTypeName() const { + return "AuthServerChallengeMessage"; +} + + +// =================================================================== + +void AuthClientResponseMessage::InitAsDefaultInstance() { +} +class AuthClientResponseMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_clientresponse(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +AuthClientResponseMessage::AuthClientResponseMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:AuthClientResponseMessage) +} +AuthClientResponseMessage::AuthClientResponseMessage(const AuthClientResponseMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clientresponse_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_clientresponse()) { + clientresponse_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_clientresponse(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:AuthClientResponseMessage) +} + +void AuthClientResponseMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AuthClientResponseMessage_pokerth_2eproto.base); + clientresponse_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +AuthClientResponseMessage::~AuthClientResponseMessage() { + // @@protoc_insertion_point(destructor:AuthClientResponseMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void AuthClientResponseMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + clientresponse_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void AuthClientResponseMessage::ArenaDtor(void* object) { + AuthClientResponseMessage* _this = reinterpret_cast< AuthClientResponseMessage* >(object); + (void)_this; +} +void AuthClientResponseMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AuthClientResponseMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AuthClientResponseMessage& AuthClientResponseMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AuthClientResponseMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void AuthClientResponseMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:AuthClientResponseMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + clientresponse_.ClearNonDefaultToEmpty(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* AuthClientResponseMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required bytes clientResponse = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_clientresponse(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* AuthClientResponseMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:AuthClientResponseMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required bytes clientResponse = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_clientresponse(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:AuthClientResponseMessage) + return target; +} + +size_t AuthClientResponseMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:AuthClientResponseMessage) + size_t total_size = 0; + + // required bytes clientResponse = 1; + if (_internal_has_clientresponse()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_clientresponse()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AuthClientResponseMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void AuthClientResponseMessage::MergeFrom(const AuthClientResponseMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:AuthClientResponseMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_clientresponse()) { + _internal_set_clientresponse(from._internal_clientresponse()); + } +} + +void AuthClientResponseMessage::CopyFrom(const AuthClientResponseMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:AuthClientResponseMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AuthClientResponseMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void AuthClientResponseMessage::InternalSwap(AuthClientResponseMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + clientresponse_.Swap(&other->clientresponse_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +std::string AuthClientResponseMessage::GetTypeName() const { + return "AuthClientResponseMessage"; +} + + +// =================================================================== + +void AuthServerVerificationMessage::InitAsDefaultInstance() { +} +class AuthServerVerificationMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_serververification(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +AuthServerVerificationMessage::AuthServerVerificationMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:AuthServerVerificationMessage) +} +AuthServerVerificationMessage::AuthServerVerificationMessage(const AuthServerVerificationMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + serververification_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_serververification()) { + serververification_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_serververification(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:AuthServerVerificationMessage) +} + +void AuthServerVerificationMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AuthServerVerificationMessage_pokerth_2eproto.base); + serververification_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +AuthServerVerificationMessage::~AuthServerVerificationMessage() { + // @@protoc_insertion_point(destructor:AuthServerVerificationMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void AuthServerVerificationMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + serververification_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void AuthServerVerificationMessage::ArenaDtor(void* object) { + AuthServerVerificationMessage* _this = reinterpret_cast< AuthServerVerificationMessage* >(object); + (void)_this; +} +void AuthServerVerificationMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AuthServerVerificationMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AuthServerVerificationMessage& AuthServerVerificationMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AuthServerVerificationMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void AuthServerVerificationMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:AuthServerVerificationMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + serververification_.ClearNonDefaultToEmpty(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* AuthServerVerificationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required bytes serverVerification = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_serververification(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* AuthServerVerificationMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:AuthServerVerificationMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required bytes serverVerification = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_serververification(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:AuthServerVerificationMessage) + return target; +} + +size_t AuthServerVerificationMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:AuthServerVerificationMessage) + size_t total_size = 0; + + // required bytes serverVerification = 1; + if (_internal_has_serververification()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_serververification()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AuthServerVerificationMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void AuthServerVerificationMessage::MergeFrom(const AuthServerVerificationMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:AuthServerVerificationMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_serververification()) { + _internal_set_serververification(from._internal_serververification()); + } +} + +void AuthServerVerificationMessage::CopyFrom(const AuthServerVerificationMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:AuthServerVerificationMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AuthServerVerificationMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void AuthServerVerificationMessage::InternalSwap(AuthServerVerificationMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + serververification_.Swap(&other->serververification_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +std::string AuthServerVerificationMessage::GetTypeName() const { + return "AuthServerVerificationMessage"; +} + + +// =================================================================== + +void InitAckMessage::InitAsDefaultInstance() { +} +class InitAckMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_yoursessionid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_yourplayerid(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_youravatarhash(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_rejoingameid(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000005) ^ 0x00000005) != 0; + } +}; + +InitAckMessage::InitAckMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:InitAckMessage) +} +InitAckMessage::InitAckMessage(const InitAckMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + yoursessionid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_yoursessionid()) { + yoursessionid_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_yoursessionid(), + GetArena()); + } + youravatarhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_youravatarhash()) { + youravatarhash_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_youravatarhash(), + GetArena()); + } + ::memcpy(&yourplayerid_, &from.yourplayerid_, + static_cast(reinterpret_cast(&rejoingameid_) - + reinterpret_cast(&yourplayerid_)) + sizeof(rejoingameid_)); + // @@protoc_insertion_point(copy_constructor:InitAckMessage) +} + +void InitAckMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_InitAckMessage_pokerth_2eproto.base); + yoursessionid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + youravatarhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&yourplayerid_, 0, static_cast( + reinterpret_cast(&rejoingameid_) - + reinterpret_cast(&yourplayerid_)) + sizeof(rejoingameid_)); +} + +InitAckMessage::~InitAckMessage() { + // @@protoc_insertion_point(destructor:InitAckMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void InitAckMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + yoursessionid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + youravatarhash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void InitAckMessage::ArenaDtor(void* object) { + InitAckMessage* _this = reinterpret_cast< InitAckMessage* >(object); + (void)_this; +} +void InitAckMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void InitAckMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const InitAckMessage& InitAckMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InitAckMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void InitAckMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:InitAckMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + yoursessionid_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + youravatarhash_.ClearNonDefaultToEmpty(); + } + } + if (cached_has_bits & 0x0000000cu) { + ::memset(&yourplayerid_, 0, static_cast( + reinterpret_cast(&rejoingameid_) - + reinterpret_cast(&yourplayerid_)) + sizeof(rejoingameid_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* InitAckMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required bytes yourSessionId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_yoursessionid(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 yourPlayerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_yourplayerid(&has_bits); + yourplayerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bytes yourAvatarHash = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_youravatarhash(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional uint32 rejoinGameId = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + _Internal::set_has_rejoingameid(&has_bits); + rejoingameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* InitAckMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:InitAckMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required bytes yourSessionId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_yoursessionid(), target); + } + + // required uint32 yourPlayerId = 2; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_yourplayerid(), target); + } + + // optional bytes yourAvatarHash = 3; + if (cached_has_bits & 0x00000002u) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_youravatarhash(), target); + } + + // optional uint32 rejoinGameId = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_rejoingameid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:InitAckMessage) + return target; +} + +size_t InitAckMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:InitAckMessage) + size_t total_size = 0; + + if (_internal_has_yoursessionid()) { + // required bytes yourSessionId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_yoursessionid()); + } + + if (_internal_has_yourplayerid()) { + // required uint32 yourPlayerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_yourplayerid()); + } + + return total_size; +} +size_t InitAckMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:InitAckMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000005) ^ 0x00000005) == 0) { // All required fields are present. + // required bytes yourSessionId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_yoursessionid()); + + // required uint32 yourPlayerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_yourplayerid()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // optional bytes yourAvatarHash = 3; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_youravatarhash()); + } + + // optional uint32 rejoinGameId = 4; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_rejoingameid()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void InitAckMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void InitAckMessage::MergeFrom(const InitAckMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:InitAckMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { + if (cached_has_bits & 0x00000001u) { + _internal_set_yoursessionid(from._internal_yoursessionid()); + } + if (cached_has_bits & 0x00000002u) { + _internal_set_youravatarhash(from._internal_youravatarhash()); + } + if (cached_has_bits & 0x00000004u) { + yourplayerid_ = from.yourplayerid_; + } + if (cached_has_bits & 0x00000008u) { + rejoingameid_ = from.rejoingameid_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void InitAckMessage::CopyFrom(const InitAckMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:InitAckMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InitAckMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void InitAckMessage::InternalSwap(InitAckMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + yoursessionid_.Swap(&other->yoursessionid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + youravatarhash_.Swap(&other->youravatarhash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(InitAckMessage, rejoingameid_) + + sizeof(InitAckMessage::rejoingameid_) + - PROTOBUF_FIELD_OFFSET(InitAckMessage, yourplayerid_)>( + reinterpret_cast(&yourplayerid_), + reinterpret_cast(&other->yourplayerid_)); +} + +std::string InitAckMessage::GetTypeName() const { + return "InitAckMessage"; +} + + +// =================================================================== + +void AvatarRequestMessage::InitAsDefaultInstance() { +} +class AvatarRequestMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_requestid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_avatarhash(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +AvatarRequestMessage::AvatarRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:AvatarRequestMessage) +} +AvatarRequestMessage::AvatarRequestMessage(const AvatarRequestMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + avatarhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_avatarhash()) { + avatarhash_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_avatarhash(), + GetArena()); + } + requestid_ = from.requestid_; + // @@protoc_insertion_point(copy_constructor:AvatarRequestMessage) +} + +void AvatarRequestMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AvatarRequestMessage_pokerth_2eproto.base); + avatarhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + requestid_ = 0u; +} + +AvatarRequestMessage::~AvatarRequestMessage() { + // @@protoc_insertion_point(destructor:AvatarRequestMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void AvatarRequestMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + avatarhash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void AvatarRequestMessage::ArenaDtor(void* object) { + AvatarRequestMessage* _this = reinterpret_cast< AvatarRequestMessage* >(object); + (void)_this; +} +void AvatarRequestMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AvatarRequestMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AvatarRequestMessage& AvatarRequestMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AvatarRequestMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void AvatarRequestMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:AvatarRequestMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + avatarhash_.ClearNonDefaultToEmpty(); + } + requestid_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* AvatarRequestMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 requestId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_requestid(&has_bits); + requestid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required bytes avatarHash = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_avatarhash(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* AvatarRequestMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:AvatarRequestMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 requestId = 1; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_requestid(), target); + } + + // required bytes avatarHash = 2; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_avatarhash(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:AvatarRequestMessage) + return target; +} + +size_t AvatarRequestMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:AvatarRequestMessage) + size_t total_size = 0; + + if (_internal_has_avatarhash()) { + // required bytes avatarHash = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_avatarhash()); + } + + if (_internal_has_requestid()) { + // required uint32 requestId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_requestid()); + } + + return total_size; +} +size_t AvatarRequestMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:AvatarRequestMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required bytes avatarHash = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_avatarhash()); + + // required uint32 requestId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_requestid()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AvatarRequestMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void AvatarRequestMessage::MergeFrom(const AvatarRequestMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:AvatarRequestMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _internal_set_avatarhash(from._internal_avatarhash()); + } + if (cached_has_bits & 0x00000002u) { + requestid_ = from.requestid_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void AvatarRequestMessage::CopyFrom(const AvatarRequestMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:AvatarRequestMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AvatarRequestMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void AvatarRequestMessage::InternalSwap(AvatarRequestMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + avatarhash_.Swap(&other->avatarhash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(requestid_, other->requestid_); +} + +std::string AvatarRequestMessage::GetTypeName() const { + return "AvatarRequestMessage"; +} + + +// =================================================================== + +void AvatarHeaderMessage::InitAsDefaultInstance() { +} +class AvatarHeaderMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_requestid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_avatartype(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_avatarsize(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; + } +}; + +AvatarHeaderMessage::AvatarHeaderMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:AvatarHeaderMessage) +} +AvatarHeaderMessage::AvatarHeaderMessage(const AvatarHeaderMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&requestid_, &from.requestid_, + static_cast(reinterpret_cast(&avatartype_) - + reinterpret_cast(&requestid_)) + sizeof(avatartype_)); + // @@protoc_insertion_point(copy_constructor:AvatarHeaderMessage) +} + +void AvatarHeaderMessage::SharedCtor() { + ::memset(&requestid_, 0, static_cast( + reinterpret_cast(&avatarsize_) - + reinterpret_cast(&requestid_)) + sizeof(avatarsize_)); + avatartype_ = 1; +} + +AvatarHeaderMessage::~AvatarHeaderMessage() { + // @@protoc_insertion_point(destructor:AvatarHeaderMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void AvatarHeaderMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void AvatarHeaderMessage::ArenaDtor(void* object) { + AvatarHeaderMessage* _this = reinterpret_cast< AvatarHeaderMessage* >(object); + (void)_this; +} +void AvatarHeaderMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AvatarHeaderMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AvatarHeaderMessage& AvatarHeaderMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AvatarHeaderMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void AvatarHeaderMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:AvatarHeaderMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + ::memset(&requestid_, 0, static_cast( + reinterpret_cast(&avatarsize_) - + reinterpret_cast(&requestid_)) + sizeof(avatarsize_)); + avatartype_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* AvatarHeaderMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 requestId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_requestid(&has_bits); + requestid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .NetAvatarType avatarType = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::NetAvatarType_IsValid(val))) { + _internal_set_avatartype(static_cast<::NetAvatarType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // required uint32 avatarSize = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_avatarsize(&has_bits); + avatarsize_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* AvatarHeaderMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:AvatarHeaderMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 requestId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_requestid(), target); + } + + // required .NetAvatarType avatarType = 2; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_avatartype(), target); + } + + // required uint32 avatarSize = 3; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_avatarsize(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:AvatarHeaderMessage) + return target; +} + +size_t AvatarHeaderMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:AvatarHeaderMessage) + size_t total_size = 0; + + if (_internal_has_requestid()) { + // required uint32 requestId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_requestid()); + } + + if (_internal_has_avatarsize()) { + // required uint32 avatarSize = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_avatarsize()); + } + + if (_internal_has_avatartype()) { + // required .NetAvatarType avatarType = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_avatartype()); + } + return total_size; +} +size_t AvatarHeaderMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:AvatarHeaderMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. + // required uint32 requestId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_requestid()); + + // required uint32 avatarSize = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_avatarsize()); + + // required .NetAvatarType avatarType = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_avatartype()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AvatarHeaderMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void AvatarHeaderMessage::MergeFrom(const AvatarHeaderMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:AvatarHeaderMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + requestid_ = from.requestid_; + } + if (cached_has_bits & 0x00000002u) { + avatarsize_ = from.avatarsize_; + } + if (cached_has_bits & 0x00000004u) { + avatartype_ = from.avatartype_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void AvatarHeaderMessage::CopyFrom(const AvatarHeaderMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:AvatarHeaderMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AvatarHeaderMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void AvatarHeaderMessage::InternalSwap(AvatarHeaderMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AvatarHeaderMessage, avatarsize_) + + sizeof(AvatarHeaderMessage::avatarsize_) + - PROTOBUF_FIELD_OFFSET(AvatarHeaderMessage, requestid_)>( + reinterpret_cast(&requestid_), + reinterpret_cast(&other->requestid_)); + swap(avatartype_, other->avatartype_); +} + +std::string AvatarHeaderMessage::GetTypeName() const { + return "AvatarHeaderMessage"; +} + + +// =================================================================== + +void AvatarDataMessage::InitAsDefaultInstance() { +} +class AvatarDataMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_requestid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_avatarblock(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +AvatarDataMessage::AvatarDataMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:AvatarDataMessage) +} +AvatarDataMessage::AvatarDataMessage(const AvatarDataMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + avatarblock_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_avatarblock()) { + avatarblock_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_avatarblock(), + GetArena()); + } + requestid_ = from.requestid_; + // @@protoc_insertion_point(copy_constructor:AvatarDataMessage) +} + +void AvatarDataMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AvatarDataMessage_pokerth_2eproto.base); + avatarblock_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + requestid_ = 0u; +} + +AvatarDataMessage::~AvatarDataMessage() { + // @@protoc_insertion_point(destructor:AvatarDataMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void AvatarDataMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + avatarblock_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void AvatarDataMessage::ArenaDtor(void* object) { + AvatarDataMessage* _this = reinterpret_cast< AvatarDataMessage* >(object); + (void)_this; +} +void AvatarDataMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AvatarDataMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AvatarDataMessage& AvatarDataMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AvatarDataMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void AvatarDataMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:AvatarDataMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + avatarblock_.ClearNonDefaultToEmpty(); + } + requestid_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* AvatarDataMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 requestId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_requestid(&has_bits); + requestid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required bytes avatarBlock = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_avatarblock(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* AvatarDataMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:AvatarDataMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 requestId = 1; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_requestid(), target); + } + + // required bytes avatarBlock = 2; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_avatarblock(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:AvatarDataMessage) + return target; +} + +size_t AvatarDataMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:AvatarDataMessage) + size_t total_size = 0; + + if (_internal_has_avatarblock()) { + // required bytes avatarBlock = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_avatarblock()); + } + + if (_internal_has_requestid()) { + // required uint32 requestId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_requestid()); + } + + return total_size; +} +size_t AvatarDataMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:AvatarDataMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required bytes avatarBlock = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_avatarblock()); + + // required uint32 requestId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_requestid()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AvatarDataMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void AvatarDataMessage::MergeFrom(const AvatarDataMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:AvatarDataMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _internal_set_avatarblock(from._internal_avatarblock()); + } + if (cached_has_bits & 0x00000002u) { + requestid_ = from.requestid_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void AvatarDataMessage::CopyFrom(const AvatarDataMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:AvatarDataMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AvatarDataMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void AvatarDataMessage::InternalSwap(AvatarDataMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + avatarblock_.Swap(&other->avatarblock_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(requestid_, other->requestid_); +} + +std::string AvatarDataMessage::GetTypeName() const { + return "AvatarDataMessage"; +} + + +// =================================================================== + +void AvatarEndMessage::InitAsDefaultInstance() { +} +class AvatarEndMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_requestid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +AvatarEndMessage::AvatarEndMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:AvatarEndMessage) +} +AvatarEndMessage::AvatarEndMessage(const AvatarEndMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + requestid_ = from.requestid_; + // @@protoc_insertion_point(copy_constructor:AvatarEndMessage) +} + +void AvatarEndMessage::SharedCtor() { + requestid_ = 0u; +} + +AvatarEndMessage::~AvatarEndMessage() { + // @@protoc_insertion_point(destructor:AvatarEndMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void AvatarEndMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void AvatarEndMessage::ArenaDtor(void* object) { + AvatarEndMessage* _this = reinterpret_cast< AvatarEndMessage* >(object); + (void)_this; +} +void AvatarEndMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AvatarEndMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AvatarEndMessage& AvatarEndMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AvatarEndMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void AvatarEndMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:AvatarEndMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + requestid_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* AvatarEndMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 requestId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_requestid(&has_bits); + requestid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* AvatarEndMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:AvatarEndMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 requestId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_requestid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:AvatarEndMessage) + return target; +} + +size_t AvatarEndMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:AvatarEndMessage) + size_t total_size = 0; + + // required uint32 requestId = 1; + if (_internal_has_requestid()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_requestid()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AvatarEndMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void AvatarEndMessage::MergeFrom(const AvatarEndMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:AvatarEndMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_requestid()) { + _internal_set_requestid(from._internal_requestid()); + } +} + +void AvatarEndMessage::CopyFrom(const AvatarEndMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:AvatarEndMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AvatarEndMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void AvatarEndMessage::InternalSwap(AvatarEndMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(requestid_, other->requestid_); +} + +std::string AvatarEndMessage::GetTypeName() const { + return "AvatarEndMessage"; +} + + +// =================================================================== + +void UnknownAvatarMessage::InitAsDefaultInstance() { +} +class UnknownAvatarMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_requestid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +UnknownAvatarMessage::UnknownAvatarMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:UnknownAvatarMessage) +} +UnknownAvatarMessage::UnknownAvatarMessage(const UnknownAvatarMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + requestid_ = from.requestid_; + // @@protoc_insertion_point(copy_constructor:UnknownAvatarMessage) +} + +void UnknownAvatarMessage::SharedCtor() { + requestid_ = 0u; +} + +UnknownAvatarMessage::~UnknownAvatarMessage() { + // @@protoc_insertion_point(destructor:UnknownAvatarMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void UnknownAvatarMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void UnknownAvatarMessage::ArenaDtor(void* object) { + UnknownAvatarMessage* _this = reinterpret_cast< UnknownAvatarMessage* >(object); + (void)_this; +} +void UnknownAvatarMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void UnknownAvatarMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const UnknownAvatarMessage& UnknownAvatarMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_UnknownAvatarMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void UnknownAvatarMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:UnknownAvatarMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + requestid_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* UnknownAvatarMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 requestId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_requestid(&has_bits); + requestid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* UnknownAvatarMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:UnknownAvatarMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 requestId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_requestid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:UnknownAvatarMessage) + return target; +} + +size_t UnknownAvatarMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:UnknownAvatarMessage) + size_t total_size = 0; + + // required uint32 requestId = 1; + if (_internal_has_requestid()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_requestid()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void UnknownAvatarMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void UnknownAvatarMessage::MergeFrom(const UnknownAvatarMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:UnknownAvatarMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_requestid()) { + _internal_set_requestid(from._internal_requestid()); + } +} + +void UnknownAvatarMessage::CopyFrom(const UnknownAvatarMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:UnknownAvatarMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UnknownAvatarMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void UnknownAvatarMessage::InternalSwap(UnknownAvatarMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(requestid_, other->requestid_); +} + +std::string UnknownAvatarMessage::GetTypeName() const { + return "UnknownAvatarMessage"; +} + + +// =================================================================== + +void PlayerListMessage::InitAsDefaultInstance() { +} +class PlayerListMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_playerlistnotification(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +PlayerListMessage::PlayerListMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:PlayerListMessage) +} +PlayerListMessage::PlayerListMessage(const PlayerListMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&playerid_, &from.playerid_, + static_cast(reinterpret_cast(&playerlistnotification_) - + reinterpret_cast(&playerid_)) + sizeof(playerlistnotification_)); + // @@protoc_insertion_point(copy_constructor:PlayerListMessage) +} + +void PlayerListMessage::SharedCtor() { + ::memset(&playerid_, 0, static_cast( + reinterpret_cast(&playerlistnotification_) - + reinterpret_cast(&playerid_)) + sizeof(playerlistnotification_)); +} + +PlayerListMessage::~PlayerListMessage() { + // @@protoc_insertion_point(destructor:PlayerListMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void PlayerListMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void PlayerListMessage::ArenaDtor(void* object) { + PlayerListMessage* _this = reinterpret_cast< PlayerListMessage* >(object); + (void)_this; +} +void PlayerListMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PlayerListMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PlayerListMessage& PlayerListMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PlayerListMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void PlayerListMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:PlayerListMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&playerid_, 0, static_cast( + reinterpret_cast(&playerlistnotification_) - + reinterpret_cast(&playerid_)) + sizeof(playerlistnotification_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* PlayerListMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 playerId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::PlayerListMessage_PlayerListNotification_IsValid(val))) { + _internal_set_playerlistnotification(static_cast<::PlayerListMessage_PlayerListNotification>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* PlayerListMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:PlayerListMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 playerId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_playerid(), target); + } + + // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_playerlistnotification(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:PlayerListMessage) + return target; +} + +size_t PlayerListMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:PlayerListMessage) + size_t total_size = 0; + + if (_internal_has_playerid()) { + // required uint32 playerId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + if (_internal_has_playerlistnotification()) { + // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_playerlistnotification()); + } + + return total_size; +} +size_t PlayerListMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:PlayerListMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 playerId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_playerlistnotification()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PlayerListMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void PlayerListMessage::MergeFrom(const PlayerListMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:PlayerListMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + playerid_ = from.playerid_; + } + if (cached_has_bits & 0x00000002u) { + playerlistnotification_ = from.playerlistnotification_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void PlayerListMessage::CopyFrom(const PlayerListMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:PlayerListMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlayerListMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void PlayerListMessage::InternalSwap(PlayerListMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PlayerListMessage, playerlistnotification_) + + sizeof(PlayerListMessage::playerlistnotification_) + - PROTOBUF_FIELD_OFFSET(PlayerListMessage, playerid_)>( + reinterpret_cast(&playerid_), + reinterpret_cast(&other->playerid_)); +} + +std::string PlayerListMessage::GetTypeName() const { + return "PlayerListMessage"; +} + + +// =================================================================== + +void GameListNewMessage::InitAsDefaultInstance() { + ::_GameListNewMessage_default_instance_._instance.get_mutable()->gameinfo_ = const_cast< ::NetGameInfo*>( + ::NetGameInfo::internal_default_instance()); +} +class GameListNewMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_gamemode(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static void set_has_isprivate(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_adminplayerid(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static const ::NetGameInfo& gameinfo(const GameListNewMessage* msg); + static void set_has_gameinfo(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x0000001f) ^ 0x0000001f) != 0; + } +}; + +const ::NetGameInfo& +GameListNewMessage::_Internal::gameinfo(const GameListNewMessage* msg) { + return *msg->gameinfo_; +} +GameListNewMessage::GameListNewMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena), + playerids_(arena), + spectatorids_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:GameListNewMessage) +} +GameListNewMessage::GameListNewMessage(const GameListNewMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_), + playerids_(from.playerids_), + spectatorids_(from.spectatorids_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from._internal_has_gameinfo()) { + gameinfo_ = new ::NetGameInfo(*from.gameinfo_); + } else { + gameinfo_ = nullptr; + } + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&gamemode_) - + reinterpret_cast(&gameid_)) + sizeof(gamemode_)); + // @@protoc_insertion_point(copy_constructor:GameListNewMessage) +} + +void GameListNewMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GameListNewMessage_pokerth_2eproto.base); + ::memset(&gameinfo_, 0, static_cast( + reinterpret_cast(&adminplayerid_) - + reinterpret_cast(&gameinfo_)) + sizeof(adminplayerid_)); + gamemode_ = 1; +} + +GameListNewMessage::~GameListNewMessage() { + // @@protoc_insertion_point(destructor:GameListNewMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void GameListNewMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + if (this != internal_default_instance()) delete gameinfo_; +} + +void GameListNewMessage::ArenaDtor(void* object) { + GameListNewMessage* _this = reinterpret_cast< GameListNewMessage* >(object); + (void)_this; +} +void GameListNewMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GameListNewMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GameListNewMessage& GameListNewMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GameListNewMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void GameListNewMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:GameListNewMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + playerids_.Clear(); + spectatorids_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(gameinfo_ != nullptr); + gameinfo_->Clear(); + } + if (cached_has_bits & 0x0000001eu) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&adminplayerid_) - + reinterpret_cast(&gameid_)) + sizeof(adminplayerid_)); + gamemode_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* GameListNewMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .NetGameMode gameMode = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::NetGameMode_IsValid(val))) { + _internal_set_gamemode(static_cast<::NetGameMode>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // required bool isPrivate = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_isprivate(&has_bits); + isprivate_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated uint32 playerIds = 4 [packed = true]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_playerids(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32) { + _internal_add_playerids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 adminPlayerId = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + _Internal::set_has_adminplayerid(&has_bits); + adminplayerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .NetGameInfo gameInfo = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_gameinfo(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated uint32 spectatorIds = 7 [packed = true]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_spectatorids(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56) { + _internal_add_spectatorids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* GameListNewMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GameListNewMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required .NetGameMode gameMode = 2; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_gamemode(), target); + } + + // required bool isPrivate = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_isprivate(), target); + } + + // repeated uint32 playerIds = 4 [packed = true]; + { + int byte_size = _playerids_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteUInt32Packed( + 4, _internal_playerids(), byte_size, target); + } + } + + // required uint32 adminPlayerId = 5; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_adminplayerid(), target); + } + + // required .NetGameInfo gameInfo = 6; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 6, _Internal::gameinfo(this), target, stream); + } + + // repeated uint32 spectatorIds = 7 [packed = true]; + { + int byte_size = _spectatorids_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteUInt32Packed( + 7, _internal_spectatorids(), byte_size, target); + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GameListNewMessage) + return target; +} + +size_t GameListNewMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameListNewMessage) + size_t total_size = 0; + + if (_internal_has_gameinfo()) { + // required .NetGameInfo gameInfo = 6; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *gameinfo_); + } + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_isprivate()) { + // required bool isPrivate = 3; + total_size += 1 + 1; + } + + if (_internal_has_adminplayerid()) { + // required uint32 adminPlayerId = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_adminplayerid()); + } + + if (_internal_has_gamemode()) { + // required .NetGameMode gameMode = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gamemode()); + } + + return total_size; +} +size_t GameListNewMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:GameListNewMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present. + // required .NetGameInfo gameInfo = 6; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *gameinfo_); + + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required bool isPrivate = 3; + total_size += 1 + 1; + + // required uint32 adminPlayerId = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_adminplayerid()); + + // required .NetGameMode gameMode = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gamemode()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated uint32 playerIds = 4 [packed = true]; + { + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + UInt32Size(this->playerids_); + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _playerids_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // repeated uint32 spectatorIds = 7 [packed = true]; + { + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + UInt32Size(this->spectatorids_); + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _spectatorids_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GameListNewMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void GameListNewMessage::MergeFrom(const GameListNewMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:GameListNewMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + playerids_.MergeFrom(from.playerids_); + spectatorids_.MergeFrom(from.spectatorids_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { + if (cached_has_bits & 0x00000001u) { + _internal_mutable_gameinfo()->::NetGameInfo::MergeFrom(from._internal_gameinfo()); + } + if (cached_has_bits & 0x00000002u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000004u) { + isprivate_ = from.isprivate_; + } + if (cached_has_bits & 0x00000008u) { + adminplayerid_ = from.adminplayerid_; + } + if (cached_has_bits & 0x00000010u) { + gamemode_ = from.gamemode_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void GameListNewMessage::CopyFrom(const GameListNewMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:GameListNewMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameListNewMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + if (_internal_has_gameinfo()) { + if (!gameinfo_->IsInitialized()) return false; + } + return true; +} + +void GameListNewMessage::InternalSwap(GameListNewMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + playerids_.InternalSwap(&other->playerids_); + spectatorids_.InternalSwap(&other->spectatorids_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GameListNewMessage, adminplayerid_) + + sizeof(GameListNewMessage::adminplayerid_) + - PROTOBUF_FIELD_OFFSET(GameListNewMessage, gameinfo_)>( + reinterpret_cast(&gameinfo_), + reinterpret_cast(&other->gameinfo_)); + swap(gamemode_, other->gamemode_); +} + +std::string GameListNewMessage::GetTypeName() const { + return "GameListNewMessage"; +} + + +// =================================================================== + +void GameListUpdateMessage::InitAsDefaultInstance() { +} +class GameListUpdateMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_gamemode(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +GameListUpdateMessage::GameListUpdateMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:GameListUpdateMessage) +} +GameListUpdateMessage::GameListUpdateMessage(const GameListUpdateMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&gamemode_) - + reinterpret_cast(&gameid_)) + sizeof(gamemode_)); + // @@protoc_insertion_point(copy_constructor:GameListUpdateMessage) +} + +void GameListUpdateMessage::SharedCtor() { + gameid_ = 0u; + gamemode_ = 1; +} + +GameListUpdateMessage::~GameListUpdateMessage() { + // @@protoc_insertion_point(destructor:GameListUpdateMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void GameListUpdateMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void GameListUpdateMessage::ArenaDtor(void* object) { + GameListUpdateMessage* _this = reinterpret_cast< GameListUpdateMessage* >(object); + (void)_this; +} +void GameListUpdateMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GameListUpdateMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GameListUpdateMessage& GameListUpdateMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GameListUpdateMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void GameListUpdateMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:GameListUpdateMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + gameid_ = 0u; + gamemode_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* GameListUpdateMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .NetGameMode gameMode = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::NetGameMode_IsValid(val))) { + _internal_set_gamemode(static_cast<::NetGameMode>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* GameListUpdateMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GameListUpdateMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required .NetGameMode gameMode = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_gamemode(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GameListUpdateMessage) + return target; +} + +size_t GameListUpdateMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameListUpdateMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_gamemode()) { + // required .NetGameMode gameMode = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gamemode()); + } + + return total_size; +} +size_t GameListUpdateMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:GameListUpdateMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required .NetGameMode gameMode = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gamemode()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GameListUpdateMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void GameListUpdateMessage::MergeFrom(const GameListUpdateMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:GameListUpdateMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + gamemode_ = from.gamemode_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void GameListUpdateMessage::CopyFrom(const GameListUpdateMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:GameListUpdateMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameListUpdateMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void GameListUpdateMessage::InternalSwap(GameListUpdateMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(gameid_, other->gameid_); + swap(gamemode_, other->gamemode_); +} + +std::string GameListUpdateMessage::GetTypeName() const { + return "GameListUpdateMessage"; +} + + +// =================================================================== + +void GameListPlayerJoinedMessage::InitAsDefaultInstance() { +} +class GameListPlayerJoinedMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +GameListPlayerJoinedMessage::GameListPlayerJoinedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:GameListPlayerJoinedMessage) +} +GameListPlayerJoinedMessage::GameListPlayerJoinedMessage(const GameListPlayerJoinedMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); + // @@protoc_insertion_point(copy_constructor:GameListPlayerJoinedMessage) +} + +void GameListPlayerJoinedMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); +} + +GameListPlayerJoinedMessage::~GameListPlayerJoinedMessage() { + // @@protoc_insertion_point(destructor:GameListPlayerJoinedMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void GameListPlayerJoinedMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void GameListPlayerJoinedMessage::ArenaDtor(void* object) { + GameListPlayerJoinedMessage* _this = reinterpret_cast< GameListPlayerJoinedMessage* >(object); + (void)_this; +} +void GameListPlayerJoinedMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GameListPlayerJoinedMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GameListPlayerJoinedMessage& GameListPlayerJoinedMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GameListPlayerJoinedMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void GameListPlayerJoinedMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:GameListPlayerJoinedMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* GameListPlayerJoinedMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* GameListPlayerJoinedMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GameListPlayerJoinedMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 playerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_playerid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GameListPlayerJoinedMessage) + return target; +} + +size_t GameListPlayerJoinedMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameListPlayerJoinedMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_playerid()) { + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + return total_size; +} +size_t GameListPlayerJoinedMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:GameListPlayerJoinedMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GameListPlayerJoinedMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void GameListPlayerJoinedMessage::MergeFrom(const GameListPlayerJoinedMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:GameListPlayerJoinedMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + playerid_ = from.playerid_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void GameListPlayerJoinedMessage::CopyFrom(const GameListPlayerJoinedMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:GameListPlayerJoinedMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameListPlayerJoinedMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void GameListPlayerJoinedMessage::InternalSwap(GameListPlayerJoinedMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GameListPlayerJoinedMessage, playerid_) + + sizeof(GameListPlayerJoinedMessage::playerid_) + - PROTOBUF_FIELD_OFFSET(GameListPlayerJoinedMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string GameListPlayerJoinedMessage::GetTypeName() const { + return "GameListPlayerJoinedMessage"; +} + + +// =================================================================== + +void GameListPlayerLeftMessage::InitAsDefaultInstance() { +} +class GameListPlayerLeftMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +GameListPlayerLeftMessage::GameListPlayerLeftMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:GameListPlayerLeftMessage) +} +GameListPlayerLeftMessage::GameListPlayerLeftMessage(const GameListPlayerLeftMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); + // @@protoc_insertion_point(copy_constructor:GameListPlayerLeftMessage) +} + +void GameListPlayerLeftMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); +} + +GameListPlayerLeftMessage::~GameListPlayerLeftMessage() { + // @@protoc_insertion_point(destructor:GameListPlayerLeftMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void GameListPlayerLeftMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void GameListPlayerLeftMessage::ArenaDtor(void* object) { + GameListPlayerLeftMessage* _this = reinterpret_cast< GameListPlayerLeftMessage* >(object); + (void)_this; +} +void GameListPlayerLeftMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GameListPlayerLeftMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GameListPlayerLeftMessage& GameListPlayerLeftMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GameListPlayerLeftMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void GameListPlayerLeftMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:GameListPlayerLeftMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* GameListPlayerLeftMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* GameListPlayerLeftMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GameListPlayerLeftMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 playerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_playerid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GameListPlayerLeftMessage) + return target; +} + +size_t GameListPlayerLeftMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameListPlayerLeftMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_playerid()) { + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + return total_size; +} +size_t GameListPlayerLeftMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:GameListPlayerLeftMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GameListPlayerLeftMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void GameListPlayerLeftMessage::MergeFrom(const GameListPlayerLeftMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:GameListPlayerLeftMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + playerid_ = from.playerid_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void GameListPlayerLeftMessage::CopyFrom(const GameListPlayerLeftMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:GameListPlayerLeftMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameListPlayerLeftMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void GameListPlayerLeftMessage::InternalSwap(GameListPlayerLeftMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GameListPlayerLeftMessage, playerid_) + + sizeof(GameListPlayerLeftMessage::playerid_) + - PROTOBUF_FIELD_OFFSET(GameListPlayerLeftMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string GameListPlayerLeftMessage::GetTypeName() const { + return "GameListPlayerLeftMessage"; +} + + +// =================================================================== + +void GameListSpectatorJoinedMessage::InitAsDefaultInstance() { +} +class GameListSpectatorJoinedMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +GameListSpectatorJoinedMessage::GameListSpectatorJoinedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:GameListSpectatorJoinedMessage) +} +GameListSpectatorJoinedMessage::GameListSpectatorJoinedMessage(const GameListSpectatorJoinedMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); + // @@protoc_insertion_point(copy_constructor:GameListSpectatorJoinedMessage) +} + +void GameListSpectatorJoinedMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); +} + +GameListSpectatorJoinedMessage::~GameListSpectatorJoinedMessage() { + // @@protoc_insertion_point(destructor:GameListSpectatorJoinedMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void GameListSpectatorJoinedMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void GameListSpectatorJoinedMessage::ArenaDtor(void* object) { + GameListSpectatorJoinedMessage* _this = reinterpret_cast< GameListSpectatorJoinedMessage* >(object); + (void)_this; +} +void GameListSpectatorJoinedMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GameListSpectatorJoinedMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GameListSpectatorJoinedMessage& GameListSpectatorJoinedMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GameListSpectatorJoinedMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void GameListSpectatorJoinedMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:GameListSpectatorJoinedMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* GameListSpectatorJoinedMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* GameListSpectatorJoinedMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GameListSpectatorJoinedMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 playerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_playerid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GameListSpectatorJoinedMessage) + return target; +} + +size_t GameListSpectatorJoinedMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameListSpectatorJoinedMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_playerid()) { + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + return total_size; +} +size_t GameListSpectatorJoinedMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:GameListSpectatorJoinedMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GameListSpectatorJoinedMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void GameListSpectatorJoinedMessage::MergeFrom(const GameListSpectatorJoinedMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:GameListSpectatorJoinedMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + playerid_ = from.playerid_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void GameListSpectatorJoinedMessage::CopyFrom(const GameListSpectatorJoinedMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:GameListSpectatorJoinedMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameListSpectatorJoinedMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void GameListSpectatorJoinedMessage::InternalSwap(GameListSpectatorJoinedMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GameListSpectatorJoinedMessage, playerid_) + + sizeof(GameListSpectatorJoinedMessage::playerid_) + - PROTOBUF_FIELD_OFFSET(GameListSpectatorJoinedMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string GameListSpectatorJoinedMessage::GetTypeName() const { + return "GameListSpectatorJoinedMessage"; +} + + +// =================================================================== + +void GameListSpectatorLeftMessage::InitAsDefaultInstance() { +} +class GameListSpectatorLeftMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +GameListSpectatorLeftMessage::GameListSpectatorLeftMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:GameListSpectatorLeftMessage) +} +GameListSpectatorLeftMessage::GameListSpectatorLeftMessage(const GameListSpectatorLeftMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); + // @@protoc_insertion_point(copy_constructor:GameListSpectatorLeftMessage) +} + +void GameListSpectatorLeftMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); +} + +GameListSpectatorLeftMessage::~GameListSpectatorLeftMessage() { + // @@protoc_insertion_point(destructor:GameListSpectatorLeftMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void GameListSpectatorLeftMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void GameListSpectatorLeftMessage::ArenaDtor(void* object) { + GameListSpectatorLeftMessage* _this = reinterpret_cast< GameListSpectatorLeftMessage* >(object); + (void)_this; +} +void GameListSpectatorLeftMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GameListSpectatorLeftMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GameListSpectatorLeftMessage& GameListSpectatorLeftMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GameListSpectatorLeftMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void GameListSpectatorLeftMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:GameListSpectatorLeftMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* GameListSpectatorLeftMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* GameListSpectatorLeftMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GameListSpectatorLeftMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 playerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_playerid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GameListSpectatorLeftMessage) + return target; +} + +size_t GameListSpectatorLeftMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameListSpectatorLeftMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_playerid()) { + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + return total_size; +} +size_t GameListSpectatorLeftMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:GameListSpectatorLeftMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GameListSpectatorLeftMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void GameListSpectatorLeftMessage::MergeFrom(const GameListSpectatorLeftMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:GameListSpectatorLeftMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + playerid_ = from.playerid_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void GameListSpectatorLeftMessage::CopyFrom(const GameListSpectatorLeftMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:GameListSpectatorLeftMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameListSpectatorLeftMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void GameListSpectatorLeftMessage::InternalSwap(GameListSpectatorLeftMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GameListSpectatorLeftMessage, playerid_) + + sizeof(GameListSpectatorLeftMessage::playerid_) + - PROTOBUF_FIELD_OFFSET(GameListSpectatorLeftMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string GameListSpectatorLeftMessage::GetTypeName() const { + return "GameListSpectatorLeftMessage"; +} + + +// =================================================================== + +void GameListAdminChangedMessage::InitAsDefaultInstance() { +} +class GameListAdminChangedMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_newadminplayerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +GameListAdminChangedMessage::GameListAdminChangedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:GameListAdminChangedMessage) +} +GameListAdminChangedMessage::GameListAdminChangedMessage(const GameListAdminChangedMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&newadminplayerid_) - + reinterpret_cast(&gameid_)) + sizeof(newadminplayerid_)); + // @@protoc_insertion_point(copy_constructor:GameListAdminChangedMessage) +} + +void GameListAdminChangedMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&newadminplayerid_) - + reinterpret_cast(&gameid_)) + sizeof(newadminplayerid_)); +} + +GameListAdminChangedMessage::~GameListAdminChangedMessage() { + // @@protoc_insertion_point(destructor:GameListAdminChangedMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void GameListAdminChangedMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void GameListAdminChangedMessage::ArenaDtor(void* object) { + GameListAdminChangedMessage* _this = reinterpret_cast< GameListAdminChangedMessage* >(object); + (void)_this; +} +void GameListAdminChangedMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GameListAdminChangedMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GameListAdminChangedMessage& GameListAdminChangedMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GameListAdminChangedMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void GameListAdminChangedMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:GameListAdminChangedMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&newadminplayerid_) - + reinterpret_cast(&gameid_)) + sizeof(newadminplayerid_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* GameListAdminChangedMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 newAdminPlayerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_newadminplayerid(&has_bits); + newadminplayerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* GameListAdminChangedMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GameListAdminChangedMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 newAdminPlayerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_newadminplayerid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GameListAdminChangedMessage) + return target; +} + +size_t GameListAdminChangedMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameListAdminChangedMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_newadminplayerid()) { + // required uint32 newAdminPlayerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_newadminplayerid()); + } + + return total_size; +} +size_t GameListAdminChangedMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:GameListAdminChangedMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 newAdminPlayerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_newadminplayerid()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GameListAdminChangedMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void GameListAdminChangedMessage::MergeFrom(const GameListAdminChangedMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:GameListAdminChangedMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + newadminplayerid_ = from.newadminplayerid_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void GameListAdminChangedMessage::CopyFrom(const GameListAdminChangedMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:GameListAdminChangedMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameListAdminChangedMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void GameListAdminChangedMessage::InternalSwap(GameListAdminChangedMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GameListAdminChangedMessage, newadminplayerid_) + + sizeof(GameListAdminChangedMessage::newadminplayerid_) + - PROTOBUF_FIELD_OFFSET(GameListAdminChangedMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string GameListAdminChangedMessage::GetTypeName() const { + return "GameListAdminChangedMessage"; +} + + +// =================================================================== + +void PlayerInfoRequestMessage::InitAsDefaultInstance() { +} +class PlayerInfoRequestMessage::_Internal { + public: +}; + +PlayerInfoRequestMessage::PlayerInfoRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena), + playerid_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:PlayerInfoRequestMessage) +} +PlayerInfoRequestMessage::PlayerInfoRequestMessage(const PlayerInfoRequestMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + playerid_(from.playerid_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:PlayerInfoRequestMessage) +} + +void PlayerInfoRequestMessage::SharedCtor() { +} + +PlayerInfoRequestMessage::~PlayerInfoRequestMessage() { + // @@protoc_insertion_point(destructor:PlayerInfoRequestMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void PlayerInfoRequestMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void PlayerInfoRequestMessage::ArenaDtor(void* object) { + PlayerInfoRequestMessage* _this = reinterpret_cast< PlayerInfoRequestMessage* >(object); + (void)_this; +} +void PlayerInfoRequestMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PlayerInfoRequestMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PlayerInfoRequestMessage& PlayerInfoRequestMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PlayerInfoRequestMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void PlayerInfoRequestMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:PlayerInfoRequestMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + playerid_.Clear(); + _internal_metadata_.Clear(); +} + +const char* PlayerInfoRequestMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated uint32 playerId = 1 [packed = true]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_playerid(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) { + _internal_add_playerid(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* PlayerInfoRequestMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:PlayerInfoRequestMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 playerId = 1 [packed = true]; + { + int byte_size = _playerid_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteUInt32Packed( + 1, _internal_playerid(), byte_size, target); + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:PlayerInfoRequestMessage) + return target; +} + +size_t PlayerInfoRequestMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:PlayerInfoRequestMessage) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated uint32 playerId = 1 [packed = true]; + { + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + UInt32Size(this->playerid_); + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _playerid_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PlayerInfoRequestMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void PlayerInfoRequestMessage::MergeFrom(const PlayerInfoRequestMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:PlayerInfoRequestMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + playerid_.MergeFrom(from.playerid_); +} + +void PlayerInfoRequestMessage::CopyFrom(const PlayerInfoRequestMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:PlayerInfoRequestMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlayerInfoRequestMessage::IsInitialized() const { + return true; +} + +void PlayerInfoRequestMessage::InternalSwap(PlayerInfoRequestMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + playerid_.InternalSwap(&other->playerid_); +} + +std::string PlayerInfoRequestMessage::GetTypeName() const { + return "PlayerInfoRequestMessage"; +} + + +// =================================================================== + +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::InitAsDefaultInstance() { +} +class PlayerInfoReplyMessage_PlayerInfoData_AvatarData::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_avatartype(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_avatarhash(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +PlayerInfoReplyMessage_PlayerInfoData_AvatarData::PlayerInfoReplyMessage_PlayerInfoData_AvatarData(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) +} +PlayerInfoReplyMessage_PlayerInfoData_AvatarData::PlayerInfoReplyMessage_PlayerInfoData_AvatarData(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + avatarhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_avatarhash()) { + avatarhash_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_avatarhash(), + GetArena()); + } + avatartype_ = from.avatartype_; + // @@protoc_insertion_point(copy_constructor:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) +} + +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_pokerth_2eproto.base); + avatarhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + avatartype_ = 1; +} + +PlayerInfoReplyMessage_PlayerInfoData_AvatarData::~PlayerInfoReplyMessage_PlayerInfoData_AvatarData() { + // @@protoc_insertion_point(destructor:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + avatarhash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::ArenaDtor(void* object) { + PlayerInfoReplyMessage_PlayerInfoData_AvatarData* _this = reinterpret_cast< PlayerInfoReplyMessage_PlayerInfoData_AvatarData* >(object); + (void)_this; +} +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::Clear() { +// @@protoc_insertion_point(message_clear_start:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + avatarhash_.ClearNonDefaultToEmpty(); + } + avatartype_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required .NetAvatarType avatarType = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::NetAvatarType_IsValid(val))) { + _internal_set_avatartype(static_cast<::NetAvatarType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // required bytes avatarHash = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_avatarhash(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required .NetAvatarType avatarType = 1; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 1, this->_internal_avatartype(), target); + } + + // required bytes avatarHash = 2; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_avatarhash(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) + return target; +} + +size_t PlayerInfoReplyMessage_PlayerInfoData_AvatarData::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) + size_t total_size = 0; + + if (_internal_has_avatarhash()) { + // required bytes avatarHash = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_avatarhash()); + } + + if (_internal_has_avatartype()) { + // required .NetAvatarType avatarType = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_avatartype()); + } + + return total_size; +} +size_t PlayerInfoReplyMessage_PlayerInfoData_AvatarData::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required bytes avatarHash = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_avatarhash()); + + // required .NetAvatarType avatarType = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_avatartype()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::MergeFrom(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _internal_set_avatarhash(from._internal_avatarhash()); + } + if (cached_has_bits & 0x00000002u) { + avatartype_ = from.avatartype_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::CopyFrom(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlayerInfoReplyMessage_PlayerInfoData_AvatarData::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::InternalSwap(PlayerInfoReplyMessage_PlayerInfoData_AvatarData* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + avatarhash_.Swap(&other->avatarhash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(avatartype_, other->avatartype_); +} + +std::string PlayerInfoReplyMessage_PlayerInfoData_AvatarData::GetTypeName() const { + return "PlayerInfoReplyMessage.PlayerInfoData.AvatarData"; +} + + +// =================================================================== + +void PlayerInfoReplyMessage_PlayerInfoData::InitAsDefaultInstance() { + ::_PlayerInfoReplyMessage_PlayerInfoData_default_instance_._instance.get_mutable()->avatardata_ = const_cast< ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData*>( + ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::internal_default_instance()); +} +class PlayerInfoReplyMessage_PlayerInfoData::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_playername(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_ishuman(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_playerrights(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static void set_has_countrycode(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static const ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData& avatardata(const PlayerInfoReplyMessage_PlayerInfoData* msg); + static void set_has_avatardata(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000019) ^ 0x00000019) != 0; + } +}; + +const ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData& +PlayerInfoReplyMessage_PlayerInfoData::_Internal::avatardata(const PlayerInfoReplyMessage_PlayerInfoData* msg) { + return *msg->avatardata_; +} +PlayerInfoReplyMessage_PlayerInfoData::PlayerInfoReplyMessage_PlayerInfoData(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:PlayerInfoReplyMessage.PlayerInfoData) +} +PlayerInfoReplyMessage_PlayerInfoData::PlayerInfoReplyMessage_PlayerInfoData(const PlayerInfoReplyMessage_PlayerInfoData& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + playername_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_playername()) { + playername_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_playername(), + GetArena()); + } + countrycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_countrycode()) { + countrycode_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_countrycode(), + GetArena()); + } + if (from._internal_has_avatardata()) { + avatardata_ = new ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData(*from.avatardata_); + } else { + avatardata_ = nullptr; + } + ::memcpy(&ishuman_, &from.ishuman_, + static_cast(reinterpret_cast(&playerrights_) - + reinterpret_cast(&ishuman_)) + sizeof(playerrights_)); + // @@protoc_insertion_point(copy_constructor:PlayerInfoReplyMessage.PlayerInfoData) +} + +void PlayerInfoReplyMessage_PlayerInfoData::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PlayerInfoReplyMessage_PlayerInfoData_pokerth_2eproto.base); + playername_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + countrycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&avatardata_, 0, static_cast( + reinterpret_cast(&ishuman_) - + reinterpret_cast(&avatardata_)) + sizeof(ishuman_)); + playerrights_ = 1; +} + +PlayerInfoReplyMessage_PlayerInfoData::~PlayerInfoReplyMessage_PlayerInfoData() { + // @@protoc_insertion_point(destructor:PlayerInfoReplyMessage.PlayerInfoData) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void PlayerInfoReplyMessage_PlayerInfoData::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + playername_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + countrycode_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete avatardata_; +} + +void PlayerInfoReplyMessage_PlayerInfoData::ArenaDtor(void* object) { + PlayerInfoReplyMessage_PlayerInfoData* _this = reinterpret_cast< PlayerInfoReplyMessage_PlayerInfoData* >(object); + (void)_this; +} +void PlayerInfoReplyMessage_PlayerInfoData::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PlayerInfoReplyMessage_PlayerInfoData::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PlayerInfoReplyMessage_PlayerInfoData& PlayerInfoReplyMessage_PlayerInfoData::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PlayerInfoReplyMessage_PlayerInfoData_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void PlayerInfoReplyMessage_PlayerInfoData::Clear() { +// @@protoc_insertion_point(message_clear_start:PlayerInfoReplyMessage.PlayerInfoData) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + playername_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + countrycode_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(avatardata_ != nullptr); + avatardata_->Clear(); + } + } + if (cached_has_bits & 0x00000018u) { + ishuman_ = false; + playerrights_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* PlayerInfoReplyMessage_PlayerInfoData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required string playerName = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_playername(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required bool isHuman = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_ishuman(&has_bits); + ishuman_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .NetPlayerInfoRights playerRights = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::NetPlayerInfoRights_IsValid(val))) { + _internal_set_playerrights(static_cast<::NetPlayerInfoRights>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional string countryCode = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_countrycode(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_avatardata(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* PlayerInfoReplyMessage_PlayerInfoData::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:PlayerInfoReplyMessage.PlayerInfoData) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required string playerName = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteStringMaybeAliased( + 1, this->_internal_playername(), target); + } + + // required bool isHuman = 2; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_ishuman(), target); + } + + // required .NetPlayerInfoRights playerRights = 3; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 3, this->_internal_playerrights(), target); + } + + // optional string countryCode = 4; + if (cached_has_bits & 0x00000002u) { + target = stream->WriteStringMaybeAliased( + 4, this->_internal_countrycode(), target); + } + + // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 5, _Internal::avatardata(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:PlayerInfoReplyMessage.PlayerInfoData) + return target; +} + +size_t PlayerInfoReplyMessage_PlayerInfoData::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:PlayerInfoReplyMessage.PlayerInfoData) + size_t total_size = 0; + + if (_internal_has_playername()) { + // required string playerName = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_playername()); + } + + if (_internal_has_ishuman()) { + // required bool isHuman = 2; + total_size += 1 + 1; + } + + if (_internal_has_playerrights()) { + // required .NetPlayerInfoRights playerRights = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_playerrights()); + } + + return total_size; +} +size_t PlayerInfoReplyMessage_PlayerInfoData::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:PlayerInfoReplyMessage.PlayerInfoData) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000019) ^ 0x00000019) == 0) { // All required fields are present. + // required string playerName = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_playername()); + + // required bool isHuman = 2; + total_size += 1 + 1; + + // required .NetPlayerInfoRights playerRights = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_playerrights()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000006u) { + // optional string countryCode = 4; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_countrycode()); + } + + // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *avatardata_); + } + + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PlayerInfoReplyMessage_PlayerInfoData::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void PlayerInfoReplyMessage_PlayerInfoData::MergeFrom(const PlayerInfoReplyMessage_PlayerInfoData& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:PlayerInfoReplyMessage.PlayerInfoData) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { + if (cached_has_bits & 0x00000001u) { + _internal_set_playername(from._internal_playername()); + } + if (cached_has_bits & 0x00000002u) { + _internal_set_countrycode(from._internal_countrycode()); + } + if (cached_has_bits & 0x00000004u) { + _internal_mutable_avatardata()->::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::MergeFrom(from._internal_avatardata()); + } + if (cached_has_bits & 0x00000008u) { + ishuman_ = from.ishuman_; + } + if (cached_has_bits & 0x00000010u) { + playerrights_ = from.playerrights_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void PlayerInfoReplyMessage_PlayerInfoData::CopyFrom(const PlayerInfoReplyMessage_PlayerInfoData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:PlayerInfoReplyMessage.PlayerInfoData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlayerInfoReplyMessage_PlayerInfoData::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + if (_internal_has_avatardata()) { + if (!avatardata_->IsInitialized()) return false; + } + return true; +} + +void PlayerInfoReplyMessage_PlayerInfoData::InternalSwap(PlayerInfoReplyMessage_PlayerInfoData* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + playername_.Swap(&other->playername_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + countrycode_.Swap(&other->countrycode_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PlayerInfoReplyMessage_PlayerInfoData, ishuman_) + + sizeof(PlayerInfoReplyMessage_PlayerInfoData::ishuman_) + - PROTOBUF_FIELD_OFFSET(PlayerInfoReplyMessage_PlayerInfoData, avatardata_)>( + reinterpret_cast(&avatardata_), + reinterpret_cast(&other->avatardata_)); + swap(playerrights_, other->playerrights_); +} + +std::string PlayerInfoReplyMessage_PlayerInfoData::GetTypeName() const { + return "PlayerInfoReplyMessage.PlayerInfoData"; +} + + +// =================================================================== + +void PlayerInfoReplyMessage::InitAsDefaultInstance() { + ::_PlayerInfoReplyMessage_default_instance_._instance.get_mutable()->playerinfodata_ = const_cast< ::PlayerInfoReplyMessage_PlayerInfoData*>( + ::PlayerInfoReplyMessage_PlayerInfoData::internal_default_instance()); +} +class PlayerInfoReplyMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static const ::PlayerInfoReplyMessage_PlayerInfoData& playerinfodata(const PlayerInfoReplyMessage* msg); + static void set_has_playerinfodata(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000002) ^ 0x00000002) != 0; + } +}; + +const ::PlayerInfoReplyMessage_PlayerInfoData& +PlayerInfoReplyMessage::_Internal::playerinfodata(const PlayerInfoReplyMessage* msg) { + return *msg->playerinfodata_; +} +PlayerInfoReplyMessage::PlayerInfoReplyMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:PlayerInfoReplyMessage) +} +PlayerInfoReplyMessage::PlayerInfoReplyMessage(const PlayerInfoReplyMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from._internal_has_playerinfodata()) { + playerinfodata_ = new ::PlayerInfoReplyMessage_PlayerInfoData(*from.playerinfodata_); + } else { + playerinfodata_ = nullptr; + } + playerid_ = from.playerid_; + // @@protoc_insertion_point(copy_constructor:PlayerInfoReplyMessage) +} + +void PlayerInfoReplyMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PlayerInfoReplyMessage_pokerth_2eproto.base); + ::memset(&playerinfodata_, 0, static_cast( + reinterpret_cast(&playerid_) - + reinterpret_cast(&playerinfodata_)) + sizeof(playerid_)); +} + +PlayerInfoReplyMessage::~PlayerInfoReplyMessage() { + // @@protoc_insertion_point(destructor:PlayerInfoReplyMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void PlayerInfoReplyMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + if (this != internal_default_instance()) delete playerinfodata_; +} + +void PlayerInfoReplyMessage::ArenaDtor(void* object) { + PlayerInfoReplyMessage* _this = reinterpret_cast< PlayerInfoReplyMessage* >(object); + (void)_this; +} +void PlayerInfoReplyMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PlayerInfoReplyMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PlayerInfoReplyMessage& PlayerInfoReplyMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PlayerInfoReplyMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void PlayerInfoReplyMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:PlayerInfoReplyMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(playerinfodata_ != nullptr); + playerinfodata_->Clear(); + } + playerid_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* PlayerInfoReplyMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 playerId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_playerinfodata(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* PlayerInfoReplyMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:PlayerInfoReplyMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 playerId = 1; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_playerid(), target); + } + + // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::playerinfodata(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:PlayerInfoReplyMessage) + return target; +} + +size_t PlayerInfoReplyMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:PlayerInfoReplyMessage) + size_t total_size = 0; + + // required uint32 playerId = 1; + if (_internal_has_playerid()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *playerinfodata_); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PlayerInfoReplyMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void PlayerInfoReplyMessage::MergeFrom(const PlayerInfoReplyMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:PlayerInfoReplyMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _internal_mutable_playerinfodata()->::PlayerInfoReplyMessage_PlayerInfoData::MergeFrom(from._internal_playerinfodata()); + } + if (cached_has_bits & 0x00000002u) { + playerid_ = from.playerid_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void PlayerInfoReplyMessage::CopyFrom(const PlayerInfoReplyMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:PlayerInfoReplyMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlayerInfoReplyMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + if (_internal_has_playerinfodata()) { + if (!playerinfodata_->IsInitialized()) return false; + } + return true; +} + +void PlayerInfoReplyMessage::InternalSwap(PlayerInfoReplyMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PlayerInfoReplyMessage, playerid_) + + sizeof(PlayerInfoReplyMessage::playerid_) + - PROTOBUF_FIELD_OFFSET(PlayerInfoReplyMessage, playerinfodata_)>( + reinterpret_cast(&playerinfodata_), + reinterpret_cast(&other->playerinfodata_)); +} + +std::string PlayerInfoReplyMessage::GetTypeName() const { + return "PlayerInfoReplyMessage"; +} + + +// =================================================================== + +void SubscriptionRequestMessage::InitAsDefaultInstance() { +} +class SubscriptionRequestMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_subscriptionaction(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +SubscriptionRequestMessage::SubscriptionRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:SubscriptionRequestMessage) +} +SubscriptionRequestMessage::SubscriptionRequestMessage(const SubscriptionRequestMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + subscriptionaction_ = from.subscriptionaction_; + // @@protoc_insertion_point(copy_constructor:SubscriptionRequestMessage) +} + +void SubscriptionRequestMessage::SharedCtor() { + subscriptionaction_ = 1; +} + +SubscriptionRequestMessage::~SubscriptionRequestMessage() { + // @@protoc_insertion_point(destructor:SubscriptionRequestMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void SubscriptionRequestMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void SubscriptionRequestMessage::ArenaDtor(void* object) { + SubscriptionRequestMessage* _this = reinterpret_cast< SubscriptionRequestMessage* >(object); + (void)_this; +} +void SubscriptionRequestMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void SubscriptionRequestMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SubscriptionRequestMessage& SubscriptionRequestMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SubscriptionRequestMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void SubscriptionRequestMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:SubscriptionRequestMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + subscriptionaction_ = 1; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* SubscriptionRequestMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::SubscriptionRequestMessage_SubscriptionAction_IsValid(val))) { + _internal_set_subscriptionaction(static_cast<::SubscriptionRequestMessage_SubscriptionAction>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* SubscriptionRequestMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:SubscriptionRequestMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 1, this->_internal_subscriptionaction(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:SubscriptionRequestMessage) + return target; +} + +size_t SubscriptionRequestMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:SubscriptionRequestMessage) + size_t total_size = 0; + + // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; + if (_internal_has_subscriptionaction()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_subscriptionaction()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SubscriptionRequestMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void SubscriptionRequestMessage::MergeFrom(const SubscriptionRequestMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:SubscriptionRequestMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_subscriptionaction()) { + _internal_set_subscriptionaction(from._internal_subscriptionaction()); + } +} + +void SubscriptionRequestMessage::CopyFrom(const SubscriptionRequestMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:SubscriptionRequestMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SubscriptionRequestMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void SubscriptionRequestMessage::InternalSwap(SubscriptionRequestMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(subscriptionaction_, other->subscriptionaction_); +} + +std::string SubscriptionRequestMessage::GetTypeName() const { + return "SubscriptionRequestMessage"; +} + + +// =================================================================== + +void JoinExistingGameMessage::InitAsDefaultInstance() { +} +class JoinExistingGameMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_password(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_autoleave(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_spectateonly(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000002) ^ 0x00000002) != 0; + } +}; + +JoinExistingGameMessage::JoinExistingGameMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:JoinExistingGameMessage) +} +JoinExistingGameMessage::JoinExistingGameMessage(const JoinExistingGameMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_password()) { + password_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_password(), + GetArena()); + } + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&spectateonly_) - + reinterpret_cast(&gameid_)) + sizeof(spectateonly_)); + // @@protoc_insertion_point(copy_constructor:JoinExistingGameMessage) +} + +void JoinExistingGameMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_JoinExistingGameMessage_pokerth_2eproto.base); + password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&spectateonly_) - + reinterpret_cast(&gameid_)) + sizeof(spectateonly_)); +} + +JoinExistingGameMessage::~JoinExistingGameMessage() { + // @@protoc_insertion_point(destructor:JoinExistingGameMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void JoinExistingGameMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void JoinExistingGameMessage::ArenaDtor(void* object) { + JoinExistingGameMessage* _this = reinterpret_cast< JoinExistingGameMessage* >(object); + (void)_this; +} +void JoinExistingGameMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void JoinExistingGameMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const JoinExistingGameMessage& JoinExistingGameMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_JoinExistingGameMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void JoinExistingGameMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:JoinExistingGameMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + password_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x0000000eu) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&spectateonly_) - + reinterpret_cast(&gameid_)) + sizeof(spectateonly_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* JoinExistingGameMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional string password = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_password(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bool autoLeave = 3 [default = false]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_autoleave(&has_bits); + autoleave_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bool spectateOnly = 4 [default = false]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + _Internal::set_has_spectateonly(&has_bits); + spectateonly_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* JoinExistingGameMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:JoinExistingGameMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // optional string password = 2; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteStringMaybeAliased( + 2, this->_internal_password(), target); + } + + // optional bool autoLeave = 3 [default = false]; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_autoleave(), target); + } + + // optional bool spectateOnly = 4 [default = false]; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_spectateonly(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:JoinExistingGameMessage) + return target; +} + +size_t JoinExistingGameMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:JoinExistingGameMessage) + size_t total_size = 0; + + // required uint32 gameId = 1; + if (_internal_has_gameid()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // optional string password = 2; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_password()); + } + + if (cached_has_bits & 0x0000000cu) { + // optional bool autoLeave = 3 [default = false]; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + 1; + } + + // optional bool spectateOnly = 4 [default = false]; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + 1; + } + + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void JoinExistingGameMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void JoinExistingGameMessage::MergeFrom(const JoinExistingGameMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:JoinExistingGameMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { + if (cached_has_bits & 0x00000001u) { + _internal_set_password(from._internal_password()); + } + if (cached_has_bits & 0x00000002u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000004u) { + autoleave_ = from.autoleave_; + } + if (cached_has_bits & 0x00000008u) { + spectateonly_ = from.spectateonly_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void JoinExistingGameMessage::CopyFrom(const JoinExistingGameMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:JoinExistingGameMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool JoinExistingGameMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void JoinExistingGameMessage::InternalSwap(JoinExistingGameMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + password_.Swap(&other->password_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(JoinExistingGameMessage, spectateonly_) + + sizeof(JoinExistingGameMessage::spectateonly_) + - PROTOBUF_FIELD_OFFSET(JoinExistingGameMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string JoinExistingGameMessage::GetTypeName() const { + return "JoinExistingGameMessage"; +} + + +// =================================================================== + +void JoinNewGameMessage::InitAsDefaultInstance() { + ::_JoinNewGameMessage_default_instance_._instance.get_mutable()->gameinfo_ = const_cast< ::NetGameInfo*>( + ::NetGameInfo::internal_default_instance()); +} +class JoinNewGameMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static const ::NetGameInfo& gameinfo(const JoinNewGameMessage* msg); + static void set_has_gameinfo(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_password(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_autoleave(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000002) ^ 0x00000002) != 0; + } +}; + +const ::NetGameInfo& +JoinNewGameMessage::_Internal::gameinfo(const JoinNewGameMessage* msg) { + return *msg->gameinfo_; +} +JoinNewGameMessage::JoinNewGameMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:JoinNewGameMessage) +} +JoinNewGameMessage::JoinNewGameMessage(const JoinNewGameMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_password()) { + password_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_password(), + GetArena()); + } + if (from._internal_has_gameinfo()) { + gameinfo_ = new ::NetGameInfo(*from.gameinfo_); + } else { + gameinfo_ = nullptr; + } + autoleave_ = from.autoleave_; + // @@protoc_insertion_point(copy_constructor:JoinNewGameMessage) +} + +void JoinNewGameMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_JoinNewGameMessage_pokerth_2eproto.base); + password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&gameinfo_, 0, static_cast( + reinterpret_cast(&autoleave_) - + reinterpret_cast(&gameinfo_)) + sizeof(autoleave_)); +} + +JoinNewGameMessage::~JoinNewGameMessage() { + // @@protoc_insertion_point(destructor:JoinNewGameMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void JoinNewGameMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete gameinfo_; +} + +void JoinNewGameMessage::ArenaDtor(void* object) { + JoinNewGameMessage* _this = reinterpret_cast< JoinNewGameMessage* >(object); + (void)_this; +} +void JoinNewGameMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void JoinNewGameMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const JoinNewGameMessage& JoinNewGameMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_JoinNewGameMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void JoinNewGameMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:JoinNewGameMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + password_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(gameinfo_ != nullptr); + gameinfo_->Clear(); + } + } + autoleave_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* JoinNewGameMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required .NetGameInfo gameInfo = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_gameinfo(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional string password = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_password(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bool autoLeave = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_autoleave(&has_bits); + autoleave_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* JoinNewGameMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:JoinNewGameMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required .NetGameInfo gameInfo = 1; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::gameinfo(this), target, stream); + } + + // optional string password = 2; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteStringMaybeAliased( + 2, this->_internal_password(), target); + } + + // optional bool autoLeave = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_autoleave(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:JoinNewGameMessage) + return target; +} + +size_t JoinNewGameMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:JoinNewGameMessage) + size_t total_size = 0; + + // required .NetGameInfo gameInfo = 1; + if (_internal_has_gameinfo()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *gameinfo_); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // optional string password = 2; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_password()); + } + + // optional bool autoLeave = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + 1; + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void JoinNewGameMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void JoinNewGameMessage::MergeFrom(const JoinNewGameMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:JoinNewGameMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + _internal_set_password(from._internal_password()); + } + if (cached_has_bits & 0x00000002u) { + _internal_mutable_gameinfo()->::NetGameInfo::MergeFrom(from._internal_gameinfo()); + } + if (cached_has_bits & 0x00000004u) { + autoleave_ = from.autoleave_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void JoinNewGameMessage::CopyFrom(const JoinNewGameMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:JoinNewGameMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool JoinNewGameMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + if (_internal_has_gameinfo()) { + if (!gameinfo_->IsInitialized()) return false; + } + return true; +} + +void JoinNewGameMessage::InternalSwap(JoinNewGameMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + password_.Swap(&other->password_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(JoinNewGameMessage, autoleave_) + + sizeof(JoinNewGameMessage::autoleave_) + - PROTOBUF_FIELD_OFFSET(JoinNewGameMessage, gameinfo_)>( + reinterpret_cast(&gameinfo_), + reinterpret_cast(&other->gameinfo_)); +} + +std::string JoinNewGameMessage::GetTypeName() const { + return "JoinNewGameMessage"; +} + + +// =================================================================== + +void RejoinExistingGameMessage::InitAsDefaultInstance() { +} +class RejoinExistingGameMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_autoleave(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +RejoinExistingGameMessage::RejoinExistingGameMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:RejoinExistingGameMessage) +} +RejoinExistingGameMessage::RejoinExistingGameMessage(const RejoinExistingGameMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&autoleave_) - + reinterpret_cast(&gameid_)) + sizeof(autoleave_)); + // @@protoc_insertion_point(copy_constructor:RejoinExistingGameMessage) +} + +void RejoinExistingGameMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&autoleave_) - + reinterpret_cast(&gameid_)) + sizeof(autoleave_)); +} + +RejoinExistingGameMessage::~RejoinExistingGameMessage() { + // @@protoc_insertion_point(destructor:RejoinExistingGameMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void RejoinExistingGameMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void RejoinExistingGameMessage::ArenaDtor(void* object) { + RejoinExistingGameMessage* _this = reinterpret_cast< RejoinExistingGameMessage* >(object); + (void)_this; +} +void RejoinExistingGameMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void RejoinExistingGameMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const RejoinExistingGameMessage& RejoinExistingGameMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RejoinExistingGameMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void RejoinExistingGameMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:RejoinExistingGameMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&autoleave_) - + reinterpret_cast(&gameid_)) + sizeof(autoleave_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* RejoinExistingGameMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bool autoLeave = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_autoleave(&has_bits); + autoleave_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* RejoinExistingGameMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:RejoinExistingGameMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // optional bool autoLeave = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_autoleave(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:RejoinExistingGameMessage) + return target; +} + +size_t RejoinExistingGameMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:RejoinExistingGameMessage) + size_t total_size = 0; + + // required uint32 gameId = 1; + if (_internal_has_gameid()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // optional bool autoLeave = 2; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + 1; + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void RejoinExistingGameMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void RejoinExistingGameMessage::MergeFrom(const RejoinExistingGameMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:RejoinExistingGameMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + autoleave_ = from.autoleave_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void RejoinExistingGameMessage::CopyFrom(const RejoinExistingGameMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:RejoinExistingGameMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RejoinExistingGameMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void RejoinExistingGameMessage::InternalSwap(RejoinExistingGameMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(RejoinExistingGameMessage, autoleave_) + + sizeof(RejoinExistingGameMessage::autoleave_) + - PROTOBUF_FIELD_OFFSET(RejoinExistingGameMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string RejoinExistingGameMessage::GetTypeName() const { + return "RejoinExistingGameMessage"; +} + + +// =================================================================== + +void JoinGameAckMessage::InitAsDefaultInstance() { + ::_JoinGameAckMessage_default_instance_._instance.get_mutable()->gameinfo_ = const_cast< ::NetGameInfo*>( + ::NetGameInfo::internal_default_instance()); +} +class JoinGameAckMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_areyougameadmin(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static const ::NetGameInfo& gameinfo(const JoinGameAckMessage* msg); + static void set_has_gameinfo(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_spectateonly(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; + } +}; + +const ::NetGameInfo& +JoinGameAckMessage::_Internal::gameinfo(const JoinGameAckMessage* msg) { + return *msg->gameinfo_; +} +JoinGameAckMessage::JoinGameAckMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:JoinGameAckMessage) +} +JoinGameAckMessage::JoinGameAckMessage(const JoinGameAckMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from._internal_has_gameinfo()) { + gameinfo_ = new ::NetGameInfo(*from.gameinfo_); + } else { + gameinfo_ = nullptr; + } + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&spectateonly_) - + reinterpret_cast(&gameid_)) + sizeof(spectateonly_)); + // @@protoc_insertion_point(copy_constructor:JoinGameAckMessage) +} + +void JoinGameAckMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_JoinGameAckMessage_pokerth_2eproto.base); + ::memset(&gameinfo_, 0, static_cast( + reinterpret_cast(&spectateonly_) - + reinterpret_cast(&gameinfo_)) + sizeof(spectateonly_)); +} + +JoinGameAckMessage::~JoinGameAckMessage() { + // @@protoc_insertion_point(destructor:JoinGameAckMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void JoinGameAckMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + if (this != internal_default_instance()) delete gameinfo_; +} + +void JoinGameAckMessage::ArenaDtor(void* object) { + JoinGameAckMessage* _this = reinterpret_cast< JoinGameAckMessage* >(object); + (void)_this; +} +void JoinGameAckMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void JoinGameAckMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const JoinGameAckMessage& JoinGameAckMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_JoinGameAckMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void JoinGameAckMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:JoinGameAckMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(gameinfo_ != nullptr); + gameinfo_->Clear(); + } + if (cached_has_bits & 0x0000000eu) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&spectateonly_) - + reinterpret_cast(&gameid_)) + sizeof(spectateonly_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* JoinGameAckMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required bool areYouGameAdmin = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_areyougameadmin(&has_bits); + areyougameadmin_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .NetGameInfo gameInfo = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_gameinfo(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bool spectateOnly = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + _Internal::set_has_spectateonly(&has_bits); + spectateonly_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* JoinGameAckMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:JoinGameAckMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required bool areYouGameAdmin = 2; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_areyougameadmin(), target); + } + + // required .NetGameInfo gameInfo = 3; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 3, _Internal::gameinfo(this), target, stream); + } + + // optional bool spectateOnly = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_spectateonly(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:JoinGameAckMessage) + return target; +} + +size_t JoinGameAckMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:JoinGameAckMessage) + size_t total_size = 0; + + if (_internal_has_gameinfo()) { + // required .NetGameInfo gameInfo = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *gameinfo_); + } + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_areyougameadmin()) { + // required bool areYouGameAdmin = 2; + total_size += 1 + 1; + } + + return total_size; +} +size_t JoinGameAckMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:JoinGameAckMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. + // required .NetGameInfo gameInfo = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *gameinfo_); + + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required bool areYouGameAdmin = 2; + total_size += 1 + 1; + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // optional bool spectateOnly = 4; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + 1; + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void JoinGameAckMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void JoinGameAckMessage::MergeFrom(const JoinGameAckMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:JoinGameAckMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { + if (cached_has_bits & 0x00000001u) { + _internal_mutable_gameinfo()->::NetGameInfo::MergeFrom(from._internal_gameinfo()); + } + if (cached_has_bits & 0x00000002u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000004u) { + areyougameadmin_ = from.areyougameadmin_; + } + if (cached_has_bits & 0x00000008u) { + spectateonly_ = from.spectateonly_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void JoinGameAckMessage::CopyFrom(const JoinGameAckMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:JoinGameAckMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool JoinGameAckMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + if (_internal_has_gameinfo()) { + if (!gameinfo_->IsInitialized()) return false; + } + return true; +} + +void JoinGameAckMessage::InternalSwap(JoinGameAckMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(JoinGameAckMessage, spectateonly_) + + sizeof(JoinGameAckMessage::spectateonly_) + - PROTOBUF_FIELD_OFFSET(JoinGameAckMessage, gameinfo_)>( + reinterpret_cast(&gameinfo_), + reinterpret_cast(&other->gameinfo_)); +} + +std::string JoinGameAckMessage::GetTypeName() const { + return "JoinGameAckMessage"; +} + + +// =================================================================== + +void JoinGameFailedMessage::InitAsDefaultInstance() { +} +class JoinGameFailedMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_joingamefailurereason(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +JoinGameFailedMessage::JoinGameFailedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:JoinGameFailedMessage) +} +JoinGameFailedMessage::JoinGameFailedMessage(const JoinGameFailedMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&joingamefailurereason_) - + reinterpret_cast(&gameid_)) + sizeof(joingamefailurereason_)); + // @@protoc_insertion_point(copy_constructor:JoinGameFailedMessage) +} + +void JoinGameFailedMessage::SharedCtor() { + gameid_ = 0u; + joingamefailurereason_ = 1; +} + +JoinGameFailedMessage::~JoinGameFailedMessage() { + // @@protoc_insertion_point(destructor:JoinGameFailedMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void JoinGameFailedMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void JoinGameFailedMessage::ArenaDtor(void* object) { + JoinGameFailedMessage* _this = reinterpret_cast< JoinGameFailedMessage* >(object); + (void)_this; +} +void JoinGameFailedMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void JoinGameFailedMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const JoinGameFailedMessage& JoinGameFailedMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_JoinGameFailedMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void JoinGameFailedMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:JoinGameFailedMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + gameid_ = 0u; + joingamefailurereason_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* JoinGameFailedMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::JoinGameFailedMessage_JoinGameFailureReason_IsValid(val))) { + _internal_set_joingamefailurereason(static_cast<::JoinGameFailedMessage_JoinGameFailureReason>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* JoinGameFailedMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:JoinGameFailedMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_joingamefailurereason(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:JoinGameFailedMessage) + return target; +} + +size_t JoinGameFailedMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:JoinGameFailedMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_joingamefailurereason()) { + // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_joingamefailurereason()); + } + + return total_size; +} +size_t JoinGameFailedMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:JoinGameFailedMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_joingamefailurereason()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void JoinGameFailedMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void JoinGameFailedMessage::MergeFrom(const JoinGameFailedMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:JoinGameFailedMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + joingamefailurereason_ = from.joingamefailurereason_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void JoinGameFailedMessage::CopyFrom(const JoinGameFailedMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:JoinGameFailedMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool JoinGameFailedMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void JoinGameFailedMessage::InternalSwap(JoinGameFailedMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(gameid_, other->gameid_); + swap(joingamefailurereason_, other->joingamefailurereason_); +} + +std::string JoinGameFailedMessage::GetTypeName() const { + return "JoinGameFailedMessage"; +} + + +// =================================================================== + +void GamePlayerJoinedMessage::InitAsDefaultInstance() { +} +class GamePlayerJoinedMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_isgameadmin(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; + } +}; + +GamePlayerJoinedMessage::GamePlayerJoinedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:GamePlayerJoinedMessage) +} +GamePlayerJoinedMessage::GamePlayerJoinedMessage(const GamePlayerJoinedMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&isgameadmin_) - + reinterpret_cast(&gameid_)) + sizeof(isgameadmin_)); + // @@protoc_insertion_point(copy_constructor:GamePlayerJoinedMessage) +} + +void GamePlayerJoinedMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&isgameadmin_) - + reinterpret_cast(&gameid_)) + sizeof(isgameadmin_)); +} + +GamePlayerJoinedMessage::~GamePlayerJoinedMessage() { + // @@protoc_insertion_point(destructor:GamePlayerJoinedMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void GamePlayerJoinedMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void GamePlayerJoinedMessage::ArenaDtor(void* object) { + GamePlayerJoinedMessage* _this = reinterpret_cast< GamePlayerJoinedMessage* >(object); + (void)_this; +} +void GamePlayerJoinedMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GamePlayerJoinedMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GamePlayerJoinedMessage& GamePlayerJoinedMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GamePlayerJoinedMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void GamePlayerJoinedMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:GamePlayerJoinedMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&isgameadmin_) - + reinterpret_cast(&gameid_)) + sizeof(isgameadmin_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* GamePlayerJoinedMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required bool isGameAdmin = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_isgameadmin(&has_bits); + isgameadmin_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* GamePlayerJoinedMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GamePlayerJoinedMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 playerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_playerid(), target); + } + + // required bool isGameAdmin = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_isgameadmin(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GamePlayerJoinedMessage) + return target; +} + +size_t GamePlayerJoinedMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GamePlayerJoinedMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_playerid()) { + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + if (_internal_has_isgameadmin()) { + // required bool isGameAdmin = 3; + total_size += 1 + 1; + } + + return total_size; +} +size_t GamePlayerJoinedMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:GamePlayerJoinedMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + // required bool isGameAdmin = 3; + total_size += 1 + 1; + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GamePlayerJoinedMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void GamePlayerJoinedMessage::MergeFrom(const GamePlayerJoinedMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:GamePlayerJoinedMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + playerid_ = from.playerid_; + } + if (cached_has_bits & 0x00000004u) { + isgameadmin_ = from.isgameadmin_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void GamePlayerJoinedMessage::CopyFrom(const GamePlayerJoinedMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:GamePlayerJoinedMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GamePlayerJoinedMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void GamePlayerJoinedMessage::InternalSwap(GamePlayerJoinedMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GamePlayerJoinedMessage, isgameadmin_) + + sizeof(GamePlayerJoinedMessage::isgameadmin_) + - PROTOBUF_FIELD_OFFSET(GamePlayerJoinedMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string GamePlayerJoinedMessage::GetTypeName() const { + return "GamePlayerJoinedMessage"; +} + + +// =================================================================== + +void GamePlayerLeftMessage::InitAsDefaultInstance() { +} +class GamePlayerLeftMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_gameplayerleftreason(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; + } +}; + +GamePlayerLeftMessage::GamePlayerLeftMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:GamePlayerLeftMessage) +} +GamePlayerLeftMessage::GamePlayerLeftMessage(const GamePlayerLeftMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&gameplayerleftreason_) - + reinterpret_cast(&gameid_)) + sizeof(gameplayerleftreason_)); + // @@protoc_insertion_point(copy_constructor:GamePlayerLeftMessage) +} + +void GamePlayerLeftMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&gameplayerleftreason_) - + reinterpret_cast(&gameid_)) + sizeof(gameplayerleftreason_)); +} + +GamePlayerLeftMessage::~GamePlayerLeftMessage() { + // @@protoc_insertion_point(destructor:GamePlayerLeftMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void GamePlayerLeftMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void GamePlayerLeftMessage::ArenaDtor(void* object) { + GamePlayerLeftMessage* _this = reinterpret_cast< GamePlayerLeftMessage* >(object); + (void)_this; +} +void GamePlayerLeftMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GamePlayerLeftMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GamePlayerLeftMessage& GamePlayerLeftMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GamePlayerLeftMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void GamePlayerLeftMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:GamePlayerLeftMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&gameplayerleftreason_) - + reinterpret_cast(&gameid_)) + sizeof(gameplayerleftreason_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* GamePlayerLeftMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(val))) { + _internal_set_gameplayerleftreason(static_cast<::GamePlayerLeftMessage_GamePlayerLeftReason>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* GamePlayerLeftMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GamePlayerLeftMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 playerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_playerid(), target); + } + + // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 3, this->_internal_gameplayerleftreason(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GamePlayerLeftMessage) + return target; +} + +size_t GamePlayerLeftMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GamePlayerLeftMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_playerid()) { + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + if (_internal_has_gameplayerleftreason()) { + // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gameplayerleftreason()); + } + + return total_size; +} +size_t GamePlayerLeftMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:GamePlayerLeftMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gameplayerleftreason()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GamePlayerLeftMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void GamePlayerLeftMessage::MergeFrom(const GamePlayerLeftMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:GamePlayerLeftMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + playerid_ = from.playerid_; + } + if (cached_has_bits & 0x00000004u) { + gameplayerleftreason_ = from.gameplayerleftreason_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void GamePlayerLeftMessage::CopyFrom(const GamePlayerLeftMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:GamePlayerLeftMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GamePlayerLeftMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void GamePlayerLeftMessage::InternalSwap(GamePlayerLeftMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GamePlayerLeftMessage, gameplayerleftreason_) + + sizeof(GamePlayerLeftMessage::gameplayerleftreason_) + - PROTOBUF_FIELD_OFFSET(GamePlayerLeftMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string GamePlayerLeftMessage::GetTypeName() const { + return "GamePlayerLeftMessage"; +} + + +// =================================================================== + +void GameSpectatorJoinedMessage::InitAsDefaultInstance() { +} +class GameSpectatorJoinedMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +GameSpectatorJoinedMessage::GameSpectatorJoinedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:GameSpectatorJoinedMessage) +} +GameSpectatorJoinedMessage::GameSpectatorJoinedMessage(const GameSpectatorJoinedMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); + // @@protoc_insertion_point(copy_constructor:GameSpectatorJoinedMessage) +} + +void GameSpectatorJoinedMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); +} + +GameSpectatorJoinedMessage::~GameSpectatorJoinedMessage() { + // @@protoc_insertion_point(destructor:GameSpectatorJoinedMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void GameSpectatorJoinedMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void GameSpectatorJoinedMessage::ArenaDtor(void* object) { + GameSpectatorJoinedMessage* _this = reinterpret_cast< GameSpectatorJoinedMessage* >(object); + (void)_this; +} +void GameSpectatorJoinedMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GameSpectatorJoinedMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GameSpectatorJoinedMessage& GameSpectatorJoinedMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GameSpectatorJoinedMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void GameSpectatorJoinedMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:GameSpectatorJoinedMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* GameSpectatorJoinedMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* GameSpectatorJoinedMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GameSpectatorJoinedMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 playerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_playerid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GameSpectatorJoinedMessage) + return target; +} + +size_t GameSpectatorJoinedMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameSpectatorJoinedMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_playerid()) { + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + return total_size; +} +size_t GameSpectatorJoinedMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:GameSpectatorJoinedMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GameSpectatorJoinedMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void GameSpectatorJoinedMessage::MergeFrom(const GameSpectatorJoinedMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:GameSpectatorJoinedMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + playerid_ = from.playerid_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void GameSpectatorJoinedMessage::CopyFrom(const GameSpectatorJoinedMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:GameSpectatorJoinedMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameSpectatorJoinedMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void GameSpectatorJoinedMessage::InternalSwap(GameSpectatorJoinedMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GameSpectatorJoinedMessage, playerid_) + + sizeof(GameSpectatorJoinedMessage::playerid_) + - PROTOBUF_FIELD_OFFSET(GameSpectatorJoinedMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string GameSpectatorJoinedMessage::GetTypeName() const { + return "GameSpectatorJoinedMessage"; +} + + +// =================================================================== + +void GameSpectatorLeftMessage::InitAsDefaultInstance() { +} +class GameSpectatorLeftMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_gamespectatorleftreason(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; + } +}; + +GameSpectatorLeftMessage::GameSpectatorLeftMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:GameSpectatorLeftMessage) +} +GameSpectatorLeftMessage::GameSpectatorLeftMessage(const GameSpectatorLeftMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&gamespectatorleftreason_) - + reinterpret_cast(&gameid_)) + sizeof(gamespectatorleftreason_)); + // @@protoc_insertion_point(copy_constructor:GameSpectatorLeftMessage) +} + +void GameSpectatorLeftMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&gamespectatorleftreason_) - + reinterpret_cast(&gameid_)) + sizeof(gamespectatorleftreason_)); +} + +GameSpectatorLeftMessage::~GameSpectatorLeftMessage() { + // @@protoc_insertion_point(destructor:GameSpectatorLeftMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void GameSpectatorLeftMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void GameSpectatorLeftMessage::ArenaDtor(void* object) { + GameSpectatorLeftMessage* _this = reinterpret_cast< GameSpectatorLeftMessage* >(object); + (void)_this; +} +void GameSpectatorLeftMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GameSpectatorLeftMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GameSpectatorLeftMessage& GameSpectatorLeftMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GameSpectatorLeftMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void GameSpectatorLeftMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:GameSpectatorLeftMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&gamespectatorleftreason_) - + reinterpret_cast(&gameid_)) + sizeof(gamespectatorleftreason_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* GameSpectatorLeftMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(val))) { + _internal_set_gamespectatorleftreason(static_cast<::GamePlayerLeftMessage_GamePlayerLeftReason>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* GameSpectatorLeftMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GameSpectatorLeftMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 playerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_playerid(), target); + } + + // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 3, this->_internal_gamespectatorleftreason(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GameSpectatorLeftMessage) + return target; +} + +size_t GameSpectatorLeftMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameSpectatorLeftMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_playerid()) { + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + if (_internal_has_gamespectatorleftreason()) { + // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gamespectatorleftreason()); + } + + return total_size; +} +size_t GameSpectatorLeftMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:GameSpectatorLeftMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gamespectatorleftreason()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GameSpectatorLeftMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void GameSpectatorLeftMessage::MergeFrom(const GameSpectatorLeftMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:GameSpectatorLeftMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + playerid_ = from.playerid_; + } + if (cached_has_bits & 0x00000004u) { + gamespectatorleftreason_ = from.gamespectatorleftreason_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void GameSpectatorLeftMessage::CopyFrom(const GameSpectatorLeftMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:GameSpectatorLeftMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameSpectatorLeftMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void GameSpectatorLeftMessage::InternalSwap(GameSpectatorLeftMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GameSpectatorLeftMessage, gamespectatorleftreason_) + + sizeof(GameSpectatorLeftMessage::gamespectatorleftreason_) + - PROTOBUF_FIELD_OFFSET(GameSpectatorLeftMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string GameSpectatorLeftMessage::GetTypeName() const { + return "GameSpectatorLeftMessage"; +} + + +// =================================================================== + +void GameAdminChangedMessage::InitAsDefaultInstance() { +} +class GameAdminChangedMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_newadminplayerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +GameAdminChangedMessage::GameAdminChangedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:GameAdminChangedMessage) +} +GameAdminChangedMessage::GameAdminChangedMessage(const GameAdminChangedMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&newadminplayerid_) - + reinterpret_cast(&gameid_)) + sizeof(newadminplayerid_)); + // @@protoc_insertion_point(copy_constructor:GameAdminChangedMessage) +} + +void GameAdminChangedMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&newadminplayerid_) - + reinterpret_cast(&gameid_)) + sizeof(newadminplayerid_)); +} + +GameAdminChangedMessage::~GameAdminChangedMessage() { + // @@protoc_insertion_point(destructor:GameAdminChangedMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void GameAdminChangedMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void GameAdminChangedMessage::ArenaDtor(void* object) { + GameAdminChangedMessage* _this = reinterpret_cast< GameAdminChangedMessage* >(object); + (void)_this; +} +void GameAdminChangedMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GameAdminChangedMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GameAdminChangedMessage& GameAdminChangedMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GameAdminChangedMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void GameAdminChangedMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:GameAdminChangedMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&newadminplayerid_) - + reinterpret_cast(&gameid_)) + sizeof(newadminplayerid_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* GameAdminChangedMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 newAdminPlayerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_newadminplayerid(&has_bits); + newadminplayerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* GameAdminChangedMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GameAdminChangedMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 newAdminPlayerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_newadminplayerid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GameAdminChangedMessage) + return target; +} + +size_t GameAdminChangedMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameAdminChangedMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_newadminplayerid()) { + // required uint32 newAdminPlayerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_newadminplayerid()); + } + + return total_size; +} +size_t GameAdminChangedMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:GameAdminChangedMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 newAdminPlayerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_newadminplayerid()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GameAdminChangedMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void GameAdminChangedMessage::MergeFrom(const GameAdminChangedMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:GameAdminChangedMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + newadminplayerid_ = from.newadminplayerid_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void GameAdminChangedMessage::CopyFrom(const GameAdminChangedMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:GameAdminChangedMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameAdminChangedMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void GameAdminChangedMessage::InternalSwap(GameAdminChangedMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GameAdminChangedMessage, newadminplayerid_) + + sizeof(GameAdminChangedMessage::newadminplayerid_) + - PROTOBUF_FIELD_OFFSET(GameAdminChangedMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string GameAdminChangedMessage::GetTypeName() const { + return "GameAdminChangedMessage"; +} + + +// =================================================================== + +void RemovedFromGameMessage::InitAsDefaultInstance() { +} +class RemovedFromGameMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_removedfromgamereason(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +RemovedFromGameMessage::RemovedFromGameMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:RemovedFromGameMessage) +} +RemovedFromGameMessage::RemovedFromGameMessage(const RemovedFromGameMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&removedfromgamereason_) - + reinterpret_cast(&gameid_)) + sizeof(removedfromgamereason_)); + // @@protoc_insertion_point(copy_constructor:RemovedFromGameMessage) +} + +void RemovedFromGameMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&removedfromgamereason_) - + reinterpret_cast(&gameid_)) + sizeof(removedfromgamereason_)); +} + +RemovedFromGameMessage::~RemovedFromGameMessage() { + // @@protoc_insertion_point(destructor:RemovedFromGameMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void RemovedFromGameMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void RemovedFromGameMessage::ArenaDtor(void* object) { + RemovedFromGameMessage* _this = reinterpret_cast< RemovedFromGameMessage* >(object); + (void)_this; +} +void RemovedFromGameMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void RemovedFromGameMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const RemovedFromGameMessage& RemovedFromGameMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RemovedFromGameMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void RemovedFromGameMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:RemovedFromGameMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&removedfromgamereason_) - + reinterpret_cast(&gameid_)) + sizeof(removedfromgamereason_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* RemovedFromGameMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::RemovedFromGameMessage_RemovedFromGameReason_IsValid(val))) { + _internal_set_removedfromgamereason(static_cast<::RemovedFromGameMessage_RemovedFromGameReason>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* RemovedFromGameMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:RemovedFromGameMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_removedfromgamereason(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:RemovedFromGameMessage) + return target; +} + +size_t RemovedFromGameMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:RemovedFromGameMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_removedfromgamereason()) { + // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_removedfromgamereason()); + } + + return total_size; +} +size_t RemovedFromGameMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:RemovedFromGameMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_removedfromgamereason()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void RemovedFromGameMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void RemovedFromGameMessage::MergeFrom(const RemovedFromGameMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:RemovedFromGameMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + removedfromgamereason_ = from.removedfromgamereason_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void RemovedFromGameMessage::CopyFrom(const RemovedFromGameMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:RemovedFromGameMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RemovedFromGameMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void RemovedFromGameMessage::InternalSwap(RemovedFromGameMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(RemovedFromGameMessage, removedfromgamereason_) + + sizeof(RemovedFromGameMessage::removedfromgamereason_) + - PROTOBUF_FIELD_OFFSET(RemovedFromGameMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string RemovedFromGameMessage::GetTypeName() const { + return "RemovedFromGameMessage"; +} + + +// =================================================================== + +void KickPlayerRequestMessage::InitAsDefaultInstance() { +} +class KickPlayerRequestMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +KickPlayerRequestMessage::KickPlayerRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:KickPlayerRequestMessage) +} +KickPlayerRequestMessage::KickPlayerRequestMessage(const KickPlayerRequestMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); + // @@protoc_insertion_point(copy_constructor:KickPlayerRequestMessage) +} + +void KickPlayerRequestMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); +} + +KickPlayerRequestMessage::~KickPlayerRequestMessage() { + // @@protoc_insertion_point(destructor:KickPlayerRequestMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void KickPlayerRequestMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void KickPlayerRequestMessage::ArenaDtor(void* object) { + KickPlayerRequestMessage* _this = reinterpret_cast< KickPlayerRequestMessage* >(object); + (void)_this; +} +void KickPlayerRequestMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void KickPlayerRequestMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const KickPlayerRequestMessage& KickPlayerRequestMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_KickPlayerRequestMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void KickPlayerRequestMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:KickPlayerRequestMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* KickPlayerRequestMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* KickPlayerRequestMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:KickPlayerRequestMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 playerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_playerid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:KickPlayerRequestMessage) + return target; +} + +size_t KickPlayerRequestMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:KickPlayerRequestMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_playerid()) { + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + return total_size; +} +size_t KickPlayerRequestMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:KickPlayerRequestMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void KickPlayerRequestMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void KickPlayerRequestMessage::MergeFrom(const KickPlayerRequestMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:KickPlayerRequestMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + playerid_ = from.playerid_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void KickPlayerRequestMessage::CopyFrom(const KickPlayerRequestMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:KickPlayerRequestMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool KickPlayerRequestMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void KickPlayerRequestMessage::InternalSwap(KickPlayerRequestMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(KickPlayerRequestMessage, playerid_) + + sizeof(KickPlayerRequestMessage::playerid_) + - PROTOBUF_FIELD_OFFSET(KickPlayerRequestMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string KickPlayerRequestMessage::GetTypeName() const { + return "KickPlayerRequestMessage"; +} + + +// =================================================================== + +void LeaveGameRequestMessage::InitAsDefaultInstance() { +} +class LeaveGameRequestMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +LeaveGameRequestMessage::LeaveGameRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:LeaveGameRequestMessage) +} +LeaveGameRequestMessage::LeaveGameRequestMessage(const LeaveGameRequestMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + gameid_ = from.gameid_; + // @@protoc_insertion_point(copy_constructor:LeaveGameRequestMessage) +} + +void LeaveGameRequestMessage::SharedCtor() { + gameid_ = 0u; +} + +LeaveGameRequestMessage::~LeaveGameRequestMessage() { + // @@protoc_insertion_point(destructor:LeaveGameRequestMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void LeaveGameRequestMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void LeaveGameRequestMessage::ArenaDtor(void* object) { + LeaveGameRequestMessage* _this = reinterpret_cast< LeaveGameRequestMessage* >(object); + (void)_this; +} +void LeaveGameRequestMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void LeaveGameRequestMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const LeaveGameRequestMessage& LeaveGameRequestMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LeaveGameRequestMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void LeaveGameRequestMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:LeaveGameRequestMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + gameid_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* LeaveGameRequestMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* LeaveGameRequestMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:LeaveGameRequestMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:LeaveGameRequestMessage) + return target; +} + +size_t LeaveGameRequestMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:LeaveGameRequestMessage) + size_t total_size = 0; + + // required uint32 gameId = 1; + if (_internal_has_gameid()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LeaveGameRequestMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void LeaveGameRequestMessage::MergeFrom(const LeaveGameRequestMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:LeaveGameRequestMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_gameid()) { + _internal_set_gameid(from._internal_gameid()); + } +} + +void LeaveGameRequestMessage::CopyFrom(const LeaveGameRequestMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:LeaveGameRequestMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LeaveGameRequestMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void LeaveGameRequestMessage::InternalSwap(LeaveGameRequestMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(gameid_, other->gameid_); +} + +std::string LeaveGameRequestMessage::GetTypeName() const { + return "LeaveGameRequestMessage"; +} + + +// =================================================================== + +void InvitePlayerToGameMessage::InitAsDefaultInstance() { +} +class InvitePlayerToGameMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +InvitePlayerToGameMessage::InvitePlayerToGameMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:InvitePlayerToGameMessage) +} +InvitePlayerToGameMessage::InvitePlayerToGameMessage(const InvitePlayerToGameMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); + // @@protoc_insertion_point(copy_constructor:InvitePlayerToGameMessage) +} + +void InvitePlayerToGameMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); +} + +InvitePlayerToGameMessage::~InvitePlayerToGameMessage() { + // @@protoc_insertion_point(destructor:InvitePlayerToGameMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void InvitePlayerToGameMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void InvitePlayerToGameMessage::ArenaDtor(void* object) { + InvitePlayerToGameMessage* _this = reinterpret_cast< InvitePlayerToGameMessage* >(object); + (void)_this; +} +void InvitePlayerToGameMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void InvitePlayerToGameMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const InvitePlayerToGameMessage& InvitePlayerToGameMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InvitePlayerToGameMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void InvitePlayerToGameMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:InvitePlayerToGameMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* InvitePlayerToGameMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* InvitePlayerToGameMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:InvitePlayerToGameMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 playerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_playerid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:InvitePlayerToGameMessage) + return target; +} + +size_t InvitePlayerToGameMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:InvitePlayerToGameMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_playerid()) { + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + return total_size; +} +size_t InvitePlayerToGameMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:InvitePlayerToGameMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void InvitePlayerToGameMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void InvitePlayerToGameMessage::MergeFrom(const InvitePlayerToGameMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:InvitePlayerToGameMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + playerid_ = from.playerid_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void InvitePlayerToGameMessage::CopyFrom(const InvitePlayerToGameMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:InvitePlayerToGameMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InvitePlayerToGameMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void InvitePlayerToGameMessage::InternalSwap(InvitePlayerToGameMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(InvitePlayerToGameMessage, playerid_) + + sizeof(InvitePlayerToGameMessage::playerid_) + - PROTOBUF_FIELD_OFFSET(InvitePlayerToGameMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string InvitePlayerToGameMessage::GetTypeName() const { + return "InvitePlayerToGameMessage"; +} + + +// =================================================================== + +void InviteNotifyMessage::InitAsDefaultInstance() { +} +class InviteNotifyMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_playeridwho(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_playeridbywhom(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; + } +}; + +InviteNotifyMessage::InviteNotifyMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:InviteNotifyMessage) +} +InviteNotifyMessage::InviteNotifyMessage(const InviteNotifyMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&playeridbywhom_) - + reinterpret_cast(&gameid_)) + sizeof(playeridbywhom_)); + // @@protoc_insertion_point(copy_constructor:InviteNotifyMessage) +} + +void InviteNotifyMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playeridbywhom_) - + reinterpret_cast(&gameid_)) + sizeof(playeridbywhom_)); +} + +InviteNotifyMessage::~InviteNotifyMessage() { + // @@protoc_insertion_point(destructor:InviteNotifyMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void InviteNotifyMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void InviteNotifyMessage::ArenaDtor(void* object) { + InviteNotifyMessage* _this = reinterpret_cast< InviteNotifyMessage* >(object); + (void)_this; +} +void InviteNotifyMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void InviteNotifyMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const InviteNotifyMessage& InviteNotifyMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InviteNotifyMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void InviteNotifyMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:InviteNotifyMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playeridbywhom_) - + reinterpret_cast(&gameid_)) + sizeof(playeridbywhom_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* InviteNotifyMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerIdWho = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_playeridwho(&has_bits); + playeridwho_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerIdByWhom = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_playeridbywhom(&has_bits); + playeridbywhom_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* InviteNotifyMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:InviteNotifyMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 playerIdWho = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_playeridwho(), target); + } + + // required uint32 playerIdByWhom = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_playeridbywhom(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:InviteNotifyMessage) + return target; +} + +size_t InviteNotifyMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:InviteNotifyMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_playeridwho()) { + // required uint32 playerIdWho = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playeridwho()); + } + + if (_internal_has_playeridbywhom()) { + // required uint32 playerIdByWhom = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playeridbywhom()); + } + + return total_size; +} +size_t InviteNotifyMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:InviteNotifyMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 playerIdWho = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playeridwho()); + + // required uint32 playerIdByWhom = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playeridbywhom()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void InviteNotifyMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void InviteNotifyMessage::MergeFrom(const InviteNotifyMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:InviteNotifyMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + playeridwho_ = from.playeridwho_; + } + if (cached_has_bits & 0x00000004u) { + playeridbywhom_ = from.playeridbywhom_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void InviteNotifyMessage::CopyFrom(const InviteNotifyMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:InviteNotifyMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InviteNotifyMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void InviteNotifyMessage::InternalSwap(InviteNotifyMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(InviteNotifyMessage, playeridbywhom_) + + sizeof(InviteNotifyMessage::playeridbywhom_) + - PROTOBUF_FIELD_OFFSET(InviteNotifyMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string InviteNotifyMessage::GetTypeName() const { + return "InviteNotifyMessage"; +} + + +// =================================================================== + +void RejectGameInvitationMessage::InitAsDefaultInstance() { +} +class RejectGameInvitationMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_myrejectreason(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +RejectGameInvitationMessage::RejectGameInvitationMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:RejectGameInvitationMessage) +} +RejectGameInvitationMessage::RejectGameInvitationMessage(const RejectGameInvitationMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&myrejectreason_) - + reinterpret_cast(&gameid_)) + sizeof(myrejectreason_)); + // @@protoc_insertion_point(copy_constructor:RejectGameInvitationMessage) +} + +void RejectGameInvitationMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&myrejectreason_) - + reinterpret_cast(&gameid_)) + sizeof(myrejectreason_)); +} + +RejectGameInvitationMessage::~RejectGameInvitationMessage() { + // @@protoc_insertion_point(destructor:RejectGameInvitationMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void RejectGameInvitationMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void RejectGameInvitationMessage::ArenaDtor(void* object) { + RejectGameInvitationMessage* _this = reinterpret_cast< RejectGameInvitationMessage* >(object); + (void)_this; +} +void RejectGameInvitationMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void RejectGameInvitationMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const RejectGameInvitationMessage& RejectGameInvitationMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RejectGameInvitationMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void RejectGameInvitationMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:RejectGameInvitationMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&myrejectreason_) - + reinterpret_cast(&gameid_)) + sizeof(myrejectreason_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* RejectGameInvitationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::RejectGameInvitationMessage_RejectGameInvReason_IsValid(val))) { + _internal_set_myrejectreason(static_cast<::RejectGameInvitationMessage_RejectGameInvReason>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* RejectGameInvitationMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:RejectGameInvitationMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_myrejectreason(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:RejectGameInvitationMessage) + return target; +} + +size_t RejectGameInvitationMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:RejectGameInvitationMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_myrejectreason()) { + // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_myrejectreason()); + } + + return total_size; +} +size_t RejectGameInvitationMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:RejectGameInvitationMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_myrejectreason()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void RejectGameInvitationMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void RejectGameInvitationMessage::MergeFrom(const RejectGameInvitationMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:RejectGameInvitationMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + myrejectreason_ = from.myrejectreason_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void RejectGameInvitationMessage::CopyFrom(const RejectGameInvitationMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:RejectGameInvitationMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RejectGameInvitationMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void RejectGameInvitationMessage::InternalSwap(RejectGameInvitationMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(RejectGameInvitationMessage, myrejectreason_) + + sizeof(RejectGameInvitationMessage::myrejectreason_) + - PROTOBUF_FIELD_OFFSET(RejectGameInvitationMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string RejectGameInvitationMessage::GetTypeName() const { + return "RejectGameInvitationMessage"; +} + + +// =================================================================== + +void RejectInvNotifyMessage::InitAsDefaultInstance() { +} +class RejectInvNotifyMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_playerrejectreason(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; + } +}; + +RejectInvNotifyMessage::RejectInvNotifyMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:RejectInvNotifyMessage) +} +RejectInvNotifyMessage::RejectInvNotifyMessage(const RejectInvNotifyMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&playerrejectreason_) - + reinterpret_cast(&gameid_)) + sizeof(playerrejectreason_)); + // @@protoc_insertion_point(copy_constructor:RejectInvNotifyMessage) +} + +void RejectInvNotifyMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playerrejectreason_) - + reinterpret_cast(&gameid_)) + sizeof(playerrejectreason_)); +} + +RejectInvNotifyMessage::~RejectInvNotifyMessage() { + // @@protoc_insertion_point(destructor:RejectInvNotifyMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void RejectInvNotifyMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void RejectInvNotifyMessage::ArenaDtor(void* object) { + RejectInvNotifyMessage* _this = reinterpret_cast< RejectInvNotifyMessage* >(object); + (void)_this; +} +void RejectInvNotifyMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void RejectInvNotifyMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const RejectInvNotifyMessage& RejectInvNotifyMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RejectInvNotifyMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void RejectInvNotifyMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:RejectInvNotifyMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playerrejectreason_) - + reinterpret_cast(&gameid_)) + sizeof(playerrejectreason_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* RejectInvNotifyMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::RejectGameInvitationMessage_RejectGameInvReason_IsValid(val))) { + _internal_set_playerrejectreason(static_cast<::RejectGameInvitationMessage_RejectGameInvReason>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* RejectInvNotifyMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:RejectInvNotifyMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 playerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_playerid(), target); + } + + // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 3, this->_internal_playerrejectreason(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:RejectInvNotifyMessage) + return target; +} + +size_t RejectInvNotifyMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:RejectInvNotifyMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_playerid()) { + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + if (_internal_has_playerrejectreason()) { + // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_playerrejectreason()); + } + + return total_size; +} +size_t RejectInvNotifyMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:RejectInvNotifyMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_playerrejectreason()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void RejectInvNotifyMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void RejectInvNotifyMessage::MergeFrom(const RejectInvNotifyMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:RejectInvNotifyMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + playerid_ = from.playerid_; + } + if (cached_has_bits & 0x00000004u) { + playerrejectreason_ = from.playerrejectreason_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void RejectInvNotifyMessage::CopyFrom(const RejectInvNotifyMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:RejectInvNotifyMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RejectInvNotifyMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void RejectInvNotifyMessage::InternalSwap(RejectInvNotifyMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(RejectInvNotifyMessage, playerrejectreason_) + + sizeof(RejectInvNotifyMessage::playerrejectreason_) + - PROTOBUF_FIELD_OFFSET(RejectInvNotifyMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string RejectInvNotifyMessage::GetTypeName() const { + return "RejectInvNotifyMessage"; +} + + +// =================================================================== + +void StartEventMessage::InitAsDefaultInstance() { +} +class StartEventMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_starteventtype(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_fillwithcomputerplayers(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +StartEventMessage::StartEventMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:StartEventMessage) +} +StartEventMessage::StartEventMessage(const StartEventMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&fillwithcomputerplayers_) - + reinterpret_cast(&gameid_)) + sizeof(fillwithcomputerplayers_)); + // @@protoc_insertion_point(copy_constructor:StartEventMessage) +} + +void StartEventMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&fillwithcomputerplayers_) - + reinterpret_cast(&gameid_)) + sizeof(fillwithcomputerplayers_)); +} + +StartEventMessage::~StartEventMessage() { + // @@protoc_insertion_point(destructor:StartEventMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void StartEventMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void StartEventMessage::ArenaDtor(void* object) { + StartEventMessage* _this = reinterpret_cast< StartEventMessage* >(object); + (void)_this; +} +void StartEventMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void StartEventMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const StartEventMessage& StartEventMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StartEventMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void StartEventMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:StartEventMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&fillwithcomputerplayers_) - + reinterpret_cast(&gameid_)) + sizeof(fillwithcomputerplayers_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* StartEventMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .StartEventMessage.StartEventType startEventType = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::StartEventMessage_StartEventType_IsValid(val))) { + _internal_set_starteventtype(static_cast<::StartEventMessage_StartEventType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional bool fillWithComputerPlayers = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_fillwithcomputerplayers(&has_bits); + fillwithcomputerplayers_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* StartEventMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:StartEventMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required .StartEventMessage.StartEventType startEventType = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_starteventtype(), target); + } + + // optional bool fillWithComputerPlayers = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_fillwithcomputerplayers(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:StartEventMessage) + return target; +} + +size_t StartEventMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:StartEventMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_starteventtype()) { + // required .StartEventMessage.StartEventType startEventType = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_starteventtype()); + } + + return total_size; +} +size_t StartEventMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:StartEventMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required .StartEventMessage.StartEventType startEventType = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_starteventtype()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // optional bool fillWithComputerPlayers = 3; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + 1; + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StartEventMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void StartEventMessage::MergeFrom(const StartEventMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:StartEventMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + starteventtype_ = from.starteventtype_; + } + if (cached_has_bits & 0x00000004u) { + fillwithcomputerplayers_ = from.fillwithcomputerplayers_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void StartEventMessage::CopyFrom(const StartEventMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:StartEventMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StartEventMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void StartEventMessage::InternalSwap(StartEventMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(StartEventMessage, fillwithcomputerplayers_) + + sizeof(StartEventMessage::fillwithcomputerplayers_) + - PROTOBUF_FIELD_OFFSET(StartEventMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string StartEventMessage::GetTypeName() const { + return "StartEventMessage"; +} + + +// =================================================================== + +void StartEventAckMessage::InitAsDefaultInstance() { +} +class StartEventAckMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +StartEventAckMessage::StartEventAckMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:StartEventAckMessage) +} +StartEventAckMessage::StartEventAckMessage(const StartEventAckMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + gameid_ = from.gameid_; + // @@protoc_insertion_point(copy_constructor:StartEventAckMessage) +} + +void StartEventAckMessage::SharedCtor() { + gameid_ = 0u; +} + +StartEventAckMessage::~StartEventAckMessage() { + // @@protoc_insertion_point(destructor:StartEventAckMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void StartEventAckMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void StartEventAckMessage::ArenaDtor(void* object) { + StartEventAckMessage* _this = reinterpret_cast< StartEventAckMessage* >(object); + (void)_this; +} +void StartEventAckMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void StartEventAckMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const StartEventAckMessage& StartEventAckMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StartEventAckMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void StartEventAckMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:StartEventAckMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + gameid_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* StartEventAckMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* StartEventAckMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:StartEventAckMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:StartEventAckMessage) + return target; +} + +size_t StartEventAckMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:StartEventAckMessage) + size_t total_size = 0; + + // required uint32 gameId = 1; + if (_internal_has_gameid()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StartEventAckMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void StartEventAckMessage::MergeFrom(const StartEventAckMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:StartEventAckMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_gameid()) { + _internal_set_gameid(from._internal_gameid()); + } +} + +void StartEventAckMessage::CopyFrom(const StartEventAckMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:StartEventAckMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StartEventAckMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void StartEventAckMessage::InternalSwap(StartEventAckMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(gameid_, other->gameid_); +} + +std::string StartEventAckMessage::GetTypeName() const { + return "StartEventAckMessage"; +} + + +// =================================================================== + +void GameStartInitialMessage::InitAsDefaultInstance() { +} +class GameStartInitialMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_startdealerplayerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +GameStartInitialMessage::GameStartInitialMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena), + playerseats_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:GameStartInitialMessage) +} +GameStartInitialMessage::GameStartInitialMessage(const GameStartInitialMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_), + playerseats_(from.playerseats_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&startdealerplayerid_) - + reinterpret_cast(&gameid_)) + sizeof(startdealerplayerid_)); + // @@protoc_insertion_point(copy_constructor:GameStartInitialMessage) +} + +void GameStartInitialMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&startdealerplayerid_) - + reinterpret_cast(&gameid_)) + sizeof(startdealerplayerid_)); +} + +GameStartInitialMessage::~GameStartInitialMessage() { + // @@protoc_insertion_point(destructor:GameStartInitialMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void GameStartInitialMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void GameStartInitialMessage::ArenaDtor(void* object) { + GameStartInitialMessage* _this = reinterpret_cast< GameStartInitialMessage* >(object); + (void)_this; +} +void GameStartInitialMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GameStartInitialMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GameStartInitialMessage& GameStartInitialMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GameStartInitialMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void GameStartInitialMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:GameStartInitialMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + playerseats_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&startdealerplayerid_) - + reinterpret_cast(&gameid_)) + sizeof(startdealerplayerid_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* GameStartInitialMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 startDealerPlayerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_startdealerplayerid(&has_bits); + startdealerplayerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated uint32 playerSeats = 3 [packed = true]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_playerseats(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) { + _internal_add_playerseats(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* GameStartInitialMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GameStartInitialMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 startDealerPlayerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_startdealerplayerid(), target); + } + + // repeated uint32 playerSeats = 3 [packed = true]; + { + int byte_size = _playerseats_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteUInt32Packed( + 3, _internal_playerseats(), byte_size, target); + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GameStartInitialMessage) + return target; +} + +size_t GameStartInitialMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameStartInitialMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_startdealerplayerid()) { + // required uint32 startDealerPlayerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_startdealerplayerid()); + } + + return total_size; +} +size_t GameStartInitialMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:GameStartInitialMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 startDealerPlayerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_startdealerplayerid()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated uint32 playerSeats = 3 [packed = true]; + { + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + UInt32Size(this->playerseats_); + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _playerseats_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GameStartInitialMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void GameStartInitialMessage::MergeFrom(const GameStartInitialMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:GameStartInitialMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + playerseats_.MergeFrom(from.playerseats_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + startdealerplayerid_ = from.startdealerplayerid_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void GameStartInitialMessage::CopyFrom(const GameStartInitialMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:GameStartInitialMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameStartInitialMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void GameStartInitialMessage::InternalSwap(GameStartInitialMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + playerseats_.InternalSwap(&other->playerseats_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GameStartInitialMessage, startdealerplayerid_) + + sizeof(GameStartInitialMessage::startdealerplayerid_) + - PROTOBUF_FIELD_OFFSET(GameStartInitialMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string GameStartInitialMessage::GetTypeName() const { + return "GameStartInitialMessage"; +} + + +// =================================================================== + +void GameStartRejoinMessage_RejoinPlayerData::InitAsDefaultInstance() { +} +class GameStartRejoinMessage_RejoinPlayerData::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_playermoney(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +GameStartRejoinMessage_RejoinPlayerData::GameStartRejoinMessage_RejoinPlayerData(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:GameStartRejoinMessage.RejoinPlayerData) +} +GameStartRejoinMessage_RejoinPlayerData::GameStartRejoinMessage_RejoinPlayerData(const GameStartRejoinMessage_RejoinPlayerData& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&playerid_, &from.playerid_, + static_cast(reinterpret_cast(&playermoney_) - + reinterpret_cast(&playerid_)) + sizeof(playermoney_)); + // @@protoc_insertion_point(copy_constructor:GameStartRejoinMessage.RejoinPlayerData) +} + +void GameStartRejoinMessage_RejoinPlayerData::SharedCtor() { + ::memset(&playerid_, 0, static_cast( + reinterpret_cast(&playermoney_) - + reinterpret_cast(&playerid_)) + sizeof(playermoney_)); +} + +GameStartRejoinMessage_RejoinPlayerData::~GameStartRejoinMessage_RejoinPlayerData() { + // @@protoc_insertion_point(destructor:GameStartRejoinMessage.RejoinPlayerData) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void GameStartRejoinMessage_RejoinPlayerData::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void GameStartRejoinMessage_RejoinPlayerData::ArenaDtor(void* object) { + GameStartRejoinMessage_RejoinPlayerData* _this = reinterpret_cast< GameStartRejoinMessage_RejoinPlayerData* >(object); + (void)_this; +} +void GameStartRejoinMessage_RejoinPlayerData::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GameStartRejoinMessage_RejoinPlayerData::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GameStartRejoinMessage_RejoinPlayerData& GameStartRejoinMessage_RejoinPlayerData::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GameStartRejoinMessage_RejoinPlayerData_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void GameStartRejoinMessage_RejoinPlayerData::Clear() { +// @@protoc_insertion_point(message_clear_start:GameStartRejoinMessage.RejoinPlayerData) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&playerid_, 0, static_cast( + reinterpret_cast(&playermoney_) - + reinterpret_cast(&playerid_)) + sizeof(playermoney_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* GameStartRejoinMessage_RejoinPlayerData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 playerId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerMoney = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_playermoney(&has_bits); + playermoney_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* GameStartRejoinMessage_RejoinPlayerData::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GameStartRejoinMessage.RejoinPlayerData) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 playerId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_playerid(), target); + } + + // required uint32 playerMoney = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_playermoney(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GameStartRejoinMessage.RejoinPlayerData) + return target; +} + +size_t GameStartRejoinMessage_RejoinPlayerData::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameStartRejoinMessage.RejoinPlayerData) + size_t total_size = 0; + + if (_internal_has_playerid()) { + // required uint32 playerId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + if (_internal_has_playermoney()) { + // required uint32 playerMoney = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playermoney()); + } + + return total_size; +} +size_t GameStartRejoinMessage_RejoinPlayerData::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:GameStartRejoinMessage.RejoinPlayerData) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 playerId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + // required uint32 playerMoney = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playermoney()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GameStartRejoinMessage_RejoinPlayerData::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void GameStartRejoinMessage_RejoinPlayerData::MergeFrom(const GameStartRejoinMessage_RejoinPlayerData& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:GameStartRejoinMessage.RejoinPlayerData) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + playerid_ = from.playerid_; + } + if (cached_has_bits & 0x00000002u) { + playermoney_ = from.playermoney_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void GameStartRejoinMessage_RejoinPlayerData::CopyFrom(const GameStartRejoinMessage_RejoinPlayerData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:GameStartRejoinMessage.RejoinPlayerData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameStartRejoinMessage_RejoinPlayerData::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void GameStartRejoinMessage_RejoinPlayerData::InternalSwap(GameStartRejoinMessage_RejoinPlayerData* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GameStartRejoinMessage_RejoinPlayerData, playermoney_) + + sizeof(GameStartRejoinMessage_RejoinPlayerData::playermoney_) + - PROTOBUF_FIELD_OFFSET(GameStartRejoinMessage_RejoinPlayerData, playerid_)>( + reinterpret_cast(&playerid_), + reinterpret_cast(&other->playerid_)); +} + +std::string GameStartRejoinMessage_RejoinPlayerData::GetTypeName() const { + return "GameStartRejoinMessage.RejoinPlayerData"; +} + + +// =================================================================== + +void GameStartRejoinMessage::InitAsDefaultInstance() { +} +class GameStartRejoinMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_startdealerplayerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_handnum(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; + } +}; + +GameStartRejoinMessage::GameStartRejoinMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena), + rejoinplayerdata_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:GameStartRejoinMessage) +} +GameStartRejoinMessage::GameStartRejoinMessage(const GameStartRejoinMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_), + rejoinplayerdata_(from.rejoinplayerdata_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&handnum_) - + reinterpret_cast(&gameid_)) + sizeof(handnum_)); + // @@protoc_insertion_point(copy_constructor:GameStartRejoinMessage) +} + +void GameStartRejoinMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GameStartRejoinMessage_pokerth_2eproto.base); + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&handnum_) - + reinterpret_cast(&gameid_)) + sizeof(handnum_)); +} + +GameStartRejoinMessage::~GameStartRejoinMessage() { + // @@protoc_insertion_point(destructor:GameStartRejoinMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void GameStartRejoinMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void GameStartRejoinMessage::ArenaDtor(void* object) { + GameStartRejoinMessage* _this = reinterpret_cast< GameStartRejoinMessage* >(object); + (void)_this; +} +void GameStartRejoinMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GameStartRejoinMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GameStartRejoinMessage& GameStartRejoinMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GameStartRejoinMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void GameStartRejoinMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:GameStartRejoinMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + rejoinplayerdata_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&handnum_) - + reinterpret_cast(&gameid_)) + sizeof(handnum_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* GameStartRejoinMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 startDealerPlayerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_startdealerplayerid(&has_bits); + startdealerplayerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 handNum = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_handnum(&has_bits); + handnum_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_rejoinplayerdata(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* GameStartRejoinMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:GameStartRejoinMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 startDealerPlayerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_startdealerplayerid(), target); + } + + // required uint32 handNum = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_handnum(), target); + } + + // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; + for (unsigned int i = 0, + n = static_cast(this->_internal_rejoinplayerdata_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, this->_internal_rejoinplayerdata(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:GameStartRejoinMessage) + return target; +} + +size_t GameStartRejoinMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameStartRejoinMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_startdealerplayerid()) { + // required uint32 startDealerPlayerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_startdealerplayerid()); + } + + if (_internal_has_handnum()) { + // required uint32 handNum = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_handnum()); + } + + return total_size; +} +size_t GameStartRejoinMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:GameStartRejoinMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 startDealerPlayerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_startdealerplayerid()); + + // required uint32 handNum = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_handnum()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; + total_size += 1UL * this->_internal_rejoinplayerdata_size(); + for (const auto& msg : this->rejoinplayerdata_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GameStartRejoinMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void GameStartRejoinMessage::MergeFrom(const GameStartRejoinMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:GameStartRejoinMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + rejoinplayerdata_.MergeFrom(from.rejoinplayerdata_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + startdealerplayerid_ = from.startdealerplayerid_; + } + if (cached_has_bits & 0x00000004u) { + handnum_ = from.handnum_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void GameStartRejoinMessage::CopyFrom(const GameStartRejoinMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:GameStartRejoinMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameStartRejoinMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(rejoinplayerdata_)) return false; + return true; +} + +void GameStartRejoinMessage::InternalSwap(GameStartRejoinMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + rejoinplayerdata_.InternalSwap(&other->rejoinplayerdata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(GameStartRejoinMessage, handnum_) + + sizeof(GameStartRejoinMessage::handnum_) + - PROTOBUF_FIELD_OFFSET(GameStartRejoinMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string GameStartRejoinMessage::GetTypeName() const { + return "GameStartRejoinMessage"; +} + + +// =================================================================== + +void HandStartMessage_PlainCards::InitAsDefaultInstance() { +} +class HandStartMessage_PlainCards::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_plaincard1(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_plaincard2(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +HandStartMessage_PlainCards::HandStartMessage_PlainCards(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:HandStartMessage.PlainCards) +} +HandStartMessage_PlainCards::HandStartMessage_PlainCards(const HandStartMessage_PlainCards& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&plaincard1_, &from.plaincard1_, + static_cast(reinterpret_cast(&plaincard2_) - + reinterpret_cast(&plaincard1_)) + sizeof(plaincard2_)); + // @@protoc_insertion_point(copy_constructor:HandStartMessage.PlainCards) +} + +void HandStartMessage_PlainCards::SharedCtor() { + ::memset(&plaincard1_, 0, static_cast( + reinterpret_cast(&plaincard2_) - + reinterpret_cast(&plaincard1_)) + sizeof(plaincard2_)); +} + +HandStartMessage_PlainCards::~HandStartMessage_PlainCards() { + // @@protoc_insertion_point(destructor:HandStartMessage.PlainCards) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void HandStartMessage_PlainCards::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void HandStartMessage_PlainCards::ArenaDtor(void* object) { + HandStartMessage_PlainCards* _this = reinterpret_cast< HandStartMessage_PlainCards* >(object); + (void)_this; +} +void HandStartMessage_PlainCards::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void HandStartMessage_PlainCards::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HandStartMessage_PlainCards& HandStartMessage_PlainCards::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_HandStartMessage_PlainCards_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void HandStartMessage_PlainCards::Clear() { +// @@protoc_insertion_point(message_clear_start:HandStartMessage.PlainCards) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&plaincard1_, 0, static_cast( + reinterpret_cast(&plaincard2_) - + reinterpret_cast(&plaincard1_)) + sizeof(plaincard2_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* HandStartMessage_PlainCards::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 plainCard1 = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_plaincard1(&has_bits); + plaincard1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 plainCard2 = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_plaincard2(&has_bits); + plaincard2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* HandStartMessage_PlainCards::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:HandStartMessage.PlainCards) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 plainCard1 = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_plaincard1(), target); + } + + // required uint32 plainCard2 = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_plaincard2(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:HandStartMessage.PlainCards) + return target; +} + +size_t HandStartMessage_PlainCards::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:HandStartMessage.PlainCards) + size_t total_size = 0; + + if (_internal_has_plaincard1()) { + // required uint32 plainCard1 = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_plaincard1()); + } + + if (_internal_has_plaincard2()) { + // required uint32 plainCard2 = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_plaincard2()); + } + + return total_size; +} +size_t HandStartMessage_PlainCards::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:HandStartMessage.PlainCards) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 plainCard1 = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_plaincard1()); + + // required uint32 plainCard2 = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_plaincard2()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HandStartMessage_PlainCards::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void HandStartMessage_PlainCards::MergeFrom(const HandStartMessage_PlainCards& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:HandStartMessage.PlainCards) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + plaincard1_ = from.plaincard1_; + } + if (cached_has_bits & 0x00000002u) { + plaincard2_ = from.plaincard2_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void HandStartMessage_PlainCards::CopyFrom(const HandStartMessage_PlainCards& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:HandStartMessage.PlainCards) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HandStartMessage_PlainCards::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void HandStartMessage_PlainCards::InternalSwap(HandStartMessage_PlainCards* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(HandStartMessage_PlainCards, plaincard2_) + + sizeof(HandStartMessage_PlainCards::plaincard2_) + - PROTOBUF_FIELD_OFFSET(HandStartMessage_PlainCards, plaincard1_)>( + reinterpret_cast(&plaincard1_), + reinterpret_cast(&other->plaincard1_)); +} + +std::string HandStartMessage_PlainCards::GetTypeName() const { + return "HandStartMessage.PlainCards"; +} + + +// =================================================================== + +void HandStartMessage::InitAsDefaultInstance() { + ::_HandStartMessage_default_instance_._instance.get_mutable()->plaincards_ = const_cast< ::HandStartMessage_PlainCards*>( + ::HandStartMessage_PlainCards::internal_default_instance()); +} +class HandStartMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static const ::HandStartMessage_PlainCards& plaincards(const HandStartMessage* msg); + static void set_has_plaincards(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_encryptedcards(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_smallblind(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_dealerplayerid(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x0000000c) ^ 0x0000000c) != 0; + } +}; + +const ::HandStartMessage_PlainCards& +HandStartMessage::_Internal::plaincards(const HandStartMessage* msg) { + return *msg->plaincards_; +} +HandStartMessage::HandStartMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena), + seatstates_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:HandStartMessage) +} +HandStartMessage::HandStartMessage(const HandStartMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_), + seatstates_(from.seatstates_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + encryptedcards_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_encryptedcards()) { + encryptedcards_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_encryptedcards(), + GetArena()); + } + if (from._internal_has_plaincards()) { + plaincards_ = new ::HandStartMessage_PlainCards(*from.plaincards_); + } else { + plaincards_ = nullptr; + } + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&dealerplayerid_) - + reinterpret_cast(&gameid_)) + sizeof(dealerplayerid_)); + // @@protoc_insertion_point(copy_constructor:HandStartMessage) +} + +void HandStartMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_HandStartMessage_pokerth_2eproto.base); + encryptedcards_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&plaincards_, 0, static_cast( + reinterpret_cast(&dealerplayerid_) - + reinterpret_cast(&plaincards_)) + sizeof(dealerplayerid_)); +} + +HandStartMessage::~HandStartMessage() { + // @@protoc_insertion_point(destructor:HandStartMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void HandStartMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + encryptedcards_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete plaincards_; +} + +void HandStartMessage::ArenaDtor(void* object) { + HandStartMessage* _this = reinterpret_cast< HandStartMessage* >(object); + (void)_this; +} +void HandStartMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void HandStartMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HandStartMessage& HandStartMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_HandStartMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void HandStartMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:HandStartMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + seatstates_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + encryptedcards_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(plaincards_ != nullptr); + plaincards_->Clear(); + } + } + if (cached_has_bits & 0x0000001cu) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&dealerplayerid_) - + reinterpret_cast(&gameid_)) + sizeof(dealerplayerid_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* HandStartMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .HandStartMessage.PlainCards plainCards = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_plaincards(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bytes encryptedCards = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_encryptedcards(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 smallBlind = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + _Internal::set_has_smallblind(&has_bits); + smallblind_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .NetPlayerState seatStates = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + ptr -= 1; + do { + ptr += 1; + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::NetPlayerState_IsValid(val))) { + _internal_add_seatstates(static_cast<::NetPlayerState>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields()); + } + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<40>(ptr)); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_seatstates(), ptr, ctx, ::NetPlayerState_IsValid, &_internal_metadata_, 5); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional uint32 dealerPlayerId = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + _Internal::set_has_dealerplayerid(&has_bits); + dealerplayerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* HandStartMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:HandStartMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // optional .HandStartMessage.PlainCards plainCards = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::plaincards(this), target, stream); + } + + // optional bytes encryptedCards = 3; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_encryptedcards(), target); + } + + // required uint32 smallBlind = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_smallblind(), target); + } + + // repeated .NetPlayerState seatStates = 5; + for (int i = 0, n = this->_internal_seatstates_size(); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 5, this->_internal_seatstates(i), target); + } + + // optional uint32 dealerPlayerId = 6; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_dealerplayerid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:HandStartMessage) + return target; +} + +size_t HandStartMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:HandStartMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_smallblind()) { + // required uint32 smallBlind = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_smallblind()); + } + + return total_size; +} +size_t HandStartMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:HandStartMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x0000000c) ^ 0x0000000c) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 smallBlind = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_smallblind()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .NetPlayerState seatStates = 5; + { + size_t data_size = 0; + unsigned int count = static_cast(this->_internal_seatstates_size());for (unsigned int i = 0; i < count; i++) { + data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( + this->_internal_seatstates(static_cast(i))); + } + total_size += (1UL * count) + data_size; + } + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // optional bytes encryptedCards = 3; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_encryptedcards()); + } + + // optional .HandStartMessage.PlainCards plainCards = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *plaincards_); + } + + } + // optional uint32 dealerPlayerId = 6; + if (cached_has_bits & 0x00000010u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_dealerplayerid()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HandStartMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void HandStartMessage::MergeFrom(const HandStartMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:HandStartMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + seatstates_.MergeFrom(from.seatstates_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { + if (cached_has_bits & 0x00000001u) { + _internal_set_encryptedcards(from._internal_encryptedcards()); + } + if (cached_has_bits & 0x00000002u) { + _internal_mutable_plaincards()->::HandStartMessage_PlainCards::MergeFrom(from._internal_plaincards()); + } + if (cached_has_bits & 0x00000004u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000008u) { + smallblind_ = from.smallblind_; + } + if (cached_has_bits & 0x00000010u) { + dealerplayerid_ = from.dealerplayerid_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void HandStartMessage::CopyFrom(const HandStartMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:HandStartMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HandStartMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + if (_internal_has_plaincards()) { + if (!plaincards_->IsInitialized()) return false; + } + return true; +} + +void HandStartMessage::InternalSwap(HandStartMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + seatstates_.InternalSwap(&other->seatstates_); + encryptedcards_.Swap(&other->encryptedcards_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(HandStartMessage, dealerplayerid_) + + sizeof(HandStartMessage::dealerplayerid_) + - PROTOBUF_FIELD_OFFSET(HandStartMessage, plaincards_)>( + reinterpret_cast(&plaincards_), + reinterpret_cast(&other->plaincards_)); +} + +std::string HandStartMessage::GetTypeName() const { + return "HandStartMessage"; +} + + +// =================================================================== + +void PlayersTurnMessage::InitAsDefaultInstance() { +} +class PlayersTurnMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_gamestate(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; + } +}; + +PlayersTurnMessage::PlayersTurnMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:PlayersTurnMessage) +} +PlayersTurnMessage::PlayersTurnMessage(const PlayersTurnMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&gamestate_) - + reinterpret_cast(&gameid_)) + sizeof(gamestate_)); + // @@protoc_insertion_point(copy_constructor:PlayersTurnMessage) +} + +void PlayersTurnMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&gamestate_) - + reinterpret_cast(&gameid_)) + sizeof(gamestate_)); +} + +PlayersTurnMessage::~PlayersTurnMessage() { + // @@protoc_insertion_point(destructor:PlayersTurnMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void PlayersTurnMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void PlayersTurnMessage::ArenaDtor(void* object) { + PlayersTurnMessage* _this = reinterpret_cast< PlayersTurnMessage* >(object); + (void)_this; +} +void PlayersTurnMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PlayersTurnMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PlayersTurnMessage& PlayersTurnMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PlayersTurnMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void PlayersTurnMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:PlayersTurnMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&gamestate_) - + reinterpret_cast(&gameid_)) + sizeof(gamestate_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* PlayersTurnMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .NetGameState gameState = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::NetGameState_IsValid(val))) { + _internal_set_gamestate(static_cast<::NetGameState>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* PlayersTurnMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:PlayersTurnMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 playerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_playerid(), target); + } + + // required .NetGameState gameState = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 3, this->_internal_gamestate(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:PlayersTurnMessage) + return target; +} + +size_t PlayersTurnMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:PlayersTurnMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_playerid()) { + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + if (_internal_has_gamestate()) { + // required .NetGameState gameState = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gamestate()); + } + + return total_size; +} +size_t PlayersTurnMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:PlayersTurnMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + // required .NetGameState gameState = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gamestate()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PlayersTurnMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void PlayersTurnMessage::MergeFrom(const PlayersTurnMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:PlayersTurnMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + playerid_ = from.playerid_; + } + if (cached_has_bits & 0x00000004u) { + gamestate_ = from.gamestate_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void PlayersTurnMessage::CopyFrom(const PlayersTurnMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:PlayersTurnMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlayersTurnMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void PlayersTurnMessage::InternalSwap(PlayersTurnMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PlayersTurnMessage, gamestate_) + + sizeof(PlayersTurnMessage::gamestate_) + - PROTOBUF_FIELD_OFFSET(PlayersTurnMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string PlayersTurnMessage::GetTypeName() const { + return "PlayersTurnMessage"; +} + + +// =================================================================== + +void MyActionRequestMessage::InitAsDefaultInstance() { +} +class MyActionRequestMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_handnum(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_gamestate(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_myaction(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_myrelativebet(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x0000001f) ^ 0x0000001f) != 0; + } +}; + +MyActionRequestMessage::MyActionRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:MyActionRequestMessage) +} +MyActionRequestMessage::MyActionRequestMessage(const MyActionRequestMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&myrelativebet_) - + reinterpret_cast(&gameid_)) + sizeof(myrelativebet_)); + // @@protoc_insertion_point(copy_constructor:MyActionRequestMessage) +} + +void MyActionRequestMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&myrelativebet_) - + reinterpret_cast(&gameid_)) + sizeof(myrelativebet_)); +} + +MyActionRequestMessage::~MyActionRequestMessage() { + // @@protoc_insertion_point(destructor:MyActionRequestMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void MyActionRequestMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void MyActionRequestMessage::ArenaDtor(void* object) { + MyActionRequestMessage* _this = reinterpret_cast< MyActionRequestMessage* >(object); + (void)_this; +} +void MyActionRequestMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void MyActionRequestMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const MyActionRequestMessage& MyActionRequestMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MyActionRequestMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void MyActionRequestMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:MyActionRequestMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&myrelativebet_) - + reinterpret_cast(&gameid_)) + sizeof(myrelativebet_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* MyActionRequestMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 handNum = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_handnum(&has_bits); + handnum_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .NetGameState gameState = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::NetGameState_IsValid(val))) { + _internal_set_gamestate(static_cast<::NetGameState>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // required .NetPlayerAction myAction = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::NetPlayerAction_IsValid(val))) { + _internal_set_myaction(static_cast<::NetPlayerAction>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // required uint32 myRelativeBet = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + _Internal::set_has_myrelativebet(&has_bits); + myrelativebet_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* MyActionRequestMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:MyActionRequestMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 handNum = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_handnum(), target); + } + + // required .NetGameState gameState = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 3, this->_internal_gamestate(), target); + } + + // required .NetPlayerAction myAction = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 4, this->_internal_myaction(), target); + } + + // required uint32 myRelativeBet = 5; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_myrelativebet(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:MyActionRequestMessage) + return target; +} + +size_t MyActionRequestMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:MyActionRequestMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_handnum()) { + // required uint32 handNum = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_handnum()); + } + + if (_internal_has_gamestate()) { + // required .NetGameState gameState = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gamestate()); + } + + if (_internal_has_myaction()) { + // required .NetPlayerAction myAction = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_myaction()); + } + + if (_internal_has_myrelativebet()) { + // required uint32 myRelativeBet = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_myrelativebet()); + } + + return total_size; +} +size_t MyActionRequestMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:MyActionRequestMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 handNum = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_handnum()); + + // required .NetGameState gameState = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gamestate()); + + // required .NetPlayerAction myAction = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_myaction()); + + // required uint32 myRelativeBet = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_myrelativebet()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MyActionRequestMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void MyActionRequestMessage::MergeFrom(const MyActionRequestMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:MyActionRequestMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + handnum_ = from.handnum_; + } + if (cached_has_bits & 0x00000004u) { + gamestate_ = from.gamestate_; + } + if (cached_has_bits & 0x00000008u) { + myaction_ = from.myaction_; + } + if (cached_has_bits & 0x00000010u) { + myrelativebet_ = from.myrelativebet_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void MyActionRequestMessage::CopyFrom(const MyActionRequestMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:MyActionRequestMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MyActionRequestMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void MyActionRequestMessage::InternalSwap(MyActionRequestMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MyActionRequestMessage, myrelativebet_) + + sizeof(MyActionRequestMessage::myrelativebet_) + - PROTOBUF_FIELD_OFFSET(MyActionRequestMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string MyActionRequestMessage::GetTypeName() const { + return "MyActionRequestMessage"; +} + + +// =================================================================== + +void YourActionRejectedMessage::InitAsDefaultInstance() { +} +class YourActionRejectedMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_gamestate(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_youraction(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_yourrelativebet(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_rejectionreason(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x0000001f) ^ 0x0000001f) != 0; + } +}; + +YourActionRejectedMessage::YourActionRejectedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:YourActionRejectedMessage) +} +YourActionRejectedMessage::YourActionRejectedMessage(const YourActionRejectedMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&rejectionreason_) - + reinterpret_cast(&gameid_)) + sizeof(rejectionreason_)); + // @@protoc_insertion_point(copy_constructor:YourActionRejectedMessage) +} + +void YourActionRejectedMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&yourrelativebet_) - + reinterpret_cast(&gameid_)) + sizeof(yourrelativebet_)); + rejectionreason_ = 1; +} + +YourActionRejectedMessage::~YourActionRejectedMessage() { + // @@protoc_insertion_point(destructor:YourActionRejectedMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void YourActionRejectedMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void YourActionRejectedMessage::ArenaDtor(void* object) { + YourActionRejectedMessage* _this = reinterpret_cast< YourActionRejectedMessage* >(object); + (void)_this; +} +void YourActionRejectedMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void YourActionRejectedMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const YourActionRejectedMessage& YourActionRejectedMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_YourActionRejectedMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void YourActionRejectedMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:YourActionRejectedMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&yourrelativebet_) - + reinterpret_cast(&gameid_)) + sizeof(yourrelativebet_)); + rejectionreason_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* YourActionRejectedMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .NetGameState gameState = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::NetGameState_IsValid(val))) { + _internal_set_gamestate(static_cast<::NetGameState>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // required .NetPlayerAction yourAction = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::NetPlayerAction_IsValid(val))) { + _internal_set_youraction(static_cast<::NetPlayerAction>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // required uint32 yourRelativeBet = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + _Internal::set_has_yourrelativebet(&has_bits); + yourrelativebet_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::YourActionRejectedMessage_RejectionReason_IsValid(val))) { + _internal_set_rejectionreason(static_cast<::YourActionRejectedMessage_RejectionReason>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* YourActionRejectedMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:YourActionRejectedMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required .NetGameState gameState = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_gamestate(), target); + } + + // required .NetPlayerAction yourAction = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 3, this->_internal_youraction(), target); + } + + // required uint32 yourRelativeBet = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_yourrelativebet(), target); + } + + // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 5, this->_internal_rejectionreason(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:YourActionRejectedMessage) + return target; +} + +size_t YourActionRejectedMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:YourActionRejectedMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_gamestate()) { + // required .NetGameState gameState = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gamestate()); + } + + if (_internal_has_youraction()) { + // required .NetPlayerAction yourAction = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_youraction()); + } + + if (_internal_has_yourrelativebet()) { + // required uint32 yourRelativeBet = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_yourrelativebet()); + } + + if (_internal_has_rejectionreason()) { + // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_rejectionreason()); + } + return total_size; +} +size_t YourActionRejectedMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:YourActionRejectedMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required .NetGameState gameState = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gamestate()); + + // required .NetPlayerAction yourAction = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_youraction()); + + // required uint32 yourRelativeBet = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_yourrelativebet()); + + // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_rejectionreason()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void YourActionRejectedMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void YourActionRejectedMessage::MergeFrom(const YourActionRejectedMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:YourActionRejectedMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + gamestate_ = from.gamestate_; + } + if (cached_has_bits & 0x00000004u) { + youraction_ = from.youraction_; + } + if (cached_has_bits & 0x00000008u) { + yourrelativebet_ = from.yourrelativebet_; + } + if (cached_has_bits & 0x00000010u) { + rejectionreason_ = from.rejectionreason_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void YourActionRejectedMessage::CopyFrom(const YourActionRejectedMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:YourActionRejectedMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool YourActionRejectedMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void YourActionRejectedMessage::InternalSwap(YourActionRejectedMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(YourActionRejectedMessage, yourrelativebet_) + + sizeof(YourActionRejectedMessage::yourrelativebet_) + - PROTOBUF_FIELD_OFFSET(YourActionRejectedMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); + swap(rejectionreason_, other->rejectionreason_); +} + +std::string YourActionRejectedMessage::GetTypeName() const { + return "YourActionRejectedMessage"; +} + + +// =================================================================== + +void PlayersActionDoneMessage::InitAsDefaultInstance() { +} +class PlayersActionDoneMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_gamestate(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_playeraction(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_totalplayerbet(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static void set_has_playermoney(HasBits* has_bits) { + (*has_bits)[0] |= 32u; + } + static void set_has_highestset(HasBits* has_bits) { + (*has_bits)[0] |= 64u; + } + static void set_has_minimumraise(HasBits* has_bits) { + (*has_bits)[0] |= 128u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x000000ff) ^ 0x000000ff) != 0; + } +}; + +PlayersActionDoneMessage::PlayersActionDoneMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:PlayersActionDoneMessage) +} +PlayersActionDoneMessage::PlayersActionDoneMessage(const PlayersActionDoneMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&minimumraise_) - + reinterpret_cast(&gameid_)) + sizeof(minimumraise_)); + // @@protoc_insertion_point(copy_constructor:PlayersActionDoneMessage) +} + +void PlayersActionDoneMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&minimumraise_) - + reinterpret_cast(&gameid_)) + sizeof(minimumraise_)); +} + +PlayersActionDoneMessage::~PlayersActionDoneMessage() { + // @@protoc_insertion_point(destructor:PlayersActionDoneMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void PlayersActionDoneMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void PlayersActionDoneMessage::ArenaDtor(void* object) { + PlayersActionDoneMessage* _this = reinterpret_cast< PlayersActionDoneMessage* >(object); + (void)_this; +} +void PlayersActionDoneMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PlayersActionDoneMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PlayersActionDoneMessage& PlayersActionDoneMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PlayersActionDoneMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void PlayersActionDoneMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:PlayersActionDoneMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x000000ffu) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&minimumraise_) - + reinterpret_cast(&gameid_)) + sizeof(minimumraise_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* PlayersActionDoneMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .NetGameState gameState = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::NetGameState_IsValid(val))) { + _internal_set_gamestate(static_cast<::NetGameState>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // required .NetPlayerAction playerAction = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::NetPlayerAction_IsValid(val))) { + _internal_set_playeraction(static_cast<::NetPlayerAction>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // required uint32 totalPlayerBet = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + _Internal::set_has_totalplayerbet(&has_bits); + totalplayerbet_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerMoney = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + _Internal::set_has_playermoney(&has_bits); + playermoney_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 highestSet = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { + _Internal::set_has_highestset(&has_bits); + highestset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 minimumRaise = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { + _Internal::set_has_minimumraise(&has_bits); + minimumraise_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* PlayersActionDoneMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:PlayersActionDoneMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 playerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_playerid(), target); + } + + // required .NetGameState gameState = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 3, this->_internal_gamestate(), target); + } + + // required .NetPlayerAction playerAction = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 4, this->_internal_playeraction(), target); + } + + // required uint32 totalPlayerBet = 5; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_totalplayerbet(), target); + } + + // required uint32 playerMoney = 6; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_playermoney(), target); + } + + // required uint32 highestSet = 7; + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(7, this->_internal_highestset(), target); + } + + // required uint32 minimumRaise = 8; + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(8, this->_internal_minimumraise(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:PlayersActionDoneMessage) + return target; +} + +size_t PlayersActionDoneMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:PlayersActionDoneMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_playerid()) { + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + if (_internal_has_gamestate()) { + // required .NetGameState gameState = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gamestate()); + } + + if (_internal_has_playeraction()) { + // required .NetPlayerAction playerAction = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_playeraction()); + } + + if (_internal_has_totalplayerbet()) { + // required uint32 totalPlayerBet = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_totalplayerbet()); + } + + if (_internal_has_playermoney()) { + // required uint32 playerMoney = 6; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playermoney()); + } + + if (_internal_has_highestset()) { + // required uint32 highestSet = 7; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_highestset()); + } + + if (_internal_has_minimumraise()) { + // required uint32 minimumRaise = 8; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_minimumraise()); + } + return total_size; +} +size_t PlayersActionDoneMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:PlayersActionDoneMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x000000ff) ^ 0x000000ff) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + // required .NetGameState gameState = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gamestate()); + + // required .NetPlayerAction playerAction = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_playeraction()); + + // required uint32 totalPlayerBet = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_totalplayerbet()); + + // required uint32 playerMoney = 6; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playermoney()); + + // required uint32 highestSet = 7; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_highestset()); + + // required uint32 minimumRaise = 8; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_minimumraise()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PlayersActionDoneMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void PlayersActionDoneMessage::MergeFrom(const PlayersActionDoneMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:PlayersActionDoneMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x000000ffu) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + playerid_ = from.playerid_; + } + if (cached_has_bits & 0x00000004u) { + gamestate_ = from.gamestate_; + } + if (cached_has_bits & 0x00000008u) { + playeraction_ = from.playeraction_; + } + if (cached_has_bits & 0x00000010u) { + totalplayerbet_ = from.totalplayerbet_; + } + if (cached_has_bits & 0x00000020u) { + playermoney_ = from.playermoney_; + } + if (cached_has_bits & 0x00000040u) { + highestset_ = from.highestset_; + } + if (cached_has_bits & 0x00000080u) { + minimumraise_ = from.minimumraise_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void PlayersActionDoneMessage::CopyFrom(const PlayersActionDoneMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:PlayersActionDoneMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlayersActionDoneMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void PlayersActionDoneMessage::InternalSwap(PlayersActionDoneMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PlayersActionDoneMessage, minimumraise_) + + sizeof(PlayersActionDoneMessage::minimumraise_) + - PROTOBUF_FIELD_OFFSET(PlayersActionDoneMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string PlayersActionDoneMessage::GetTypeName() const { + return "PlayersActionDoneMessage"; +} + + +// =================================================================== + +void DealFlopCardsMessage::InitAsDefaultInstance() { +} +class DealFlopCardsMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_flopcard1(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_flopcard2(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_flopcard3(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x0000000f) ^ 0x0000000f) != 0; + } +}; + +DealFlopCardsMessage::DealFlopCardsMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:DealFlopCardsMessage) +} +DealFlopCardsMessage::DealFlopCardsMessage(const DealFlopCardsMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&flopcard3_) - + reinterpret_cast(&gameid_)) + sizeof(flopcard3_)); + // @@protoc_insertion_point(copy_constructor:DealFlopCardsMessage) +} + +void DealFlopCardsMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&flopcard3_) - + reinterpret_cast(&gameid_)) + sizeof(flopcard3_)); +} + +DealFlopCardsMessage::~DealFlopCardsMessage() { + // @@protoc_insertion_point(destructor:DealFlopCardsMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void DealFlopCardsMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void DealFlopCardsMessage::ArenaDtor(void* object) { + DealFlopCardsMessage* _this = reinterpret_cast< DealFlopCardsMessage* >(object); + (void)_this; +} +void DealFlopCardsMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void DealFlopCardsMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DealFlopCardsMessage& DealFlopCardsMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DealFlopCardsMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void DealFlopCardsMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:DealFlopCardsMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&flopcard3_) - + reinterpret_cast(&gameid_)) + sizeof(flopcard3_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* DealFlopCardsMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 flopCard1 = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_flopcard1(&has_bits); + flopcard1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 flopCard2 = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_flopcard2(&has_bits); + flopcard2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 flopCard3 = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + _Internal::set_has_flopcard3(&has_bits); + flopcard3_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* DealFlopCardsMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:DealFlopCardsMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 flopCard1 = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_flopcard1(), target); + } + + // required uint32 flopCard2 = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_flopcard2(), target); + } + + // required uint32 flopCard3 = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_flopcard3(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:DealFlopCardsMessage) + return target; +} + +size_t DealFlopCardsMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:DealFlopCardsMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_flopcard1()) { + // required uint32 flopCard1 = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_flopcard1()); + } + + if (_internal_has_flopcard2()) { + // required uint32 flopCard2 = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_flopcard2()); + } + + if (_internal_has_flopcard3()) { + // required uint32 flopCard3 = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_flopcard3()); + } + return total_size; +} +size_t DealFlopCardsMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:DealFlopCardsMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 flopCard1 = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_flopcard1()); + + // required uint32 flopCard2 = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_flopcard2()); + + // required uint32 flopCard3 = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_flopcard3()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DealFlopCardsMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void DealFlopCardsMessage::MergeFrom(const DealFlopCardsMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:DealFlopCardsMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + flopcard1_ = from.flopcard1_; + } + if (cached_has_bits & 0x00000004u) { + flopcard2_ = from.flopcard2_; + } + if (cached_has_bits & 0x00000008u) { + flopcard3_ = from.flopcard3_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void DealFlopCardsMessage::CopyFrom(const DealFlopCardsMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:DealFlopCardsMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DealFlopCardsMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void DealFlopCardsMessage::InternalSwap(DealFlopCardsMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(DealFlopCardsMessage, flopcard3_) + + sizeof(DealFlopCardsMessage::flopcard3_) + - PROTOBUF_FIELD_OFFSET(DealFlopCardsMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string DealFlopCardsMessage::GetTypeName() const { + return "DealFlopCardsMessage"; +} + + +// =================================================================== + +void DealTurnCardMessage::InitAsDefaultInstance() { +} +class DealTurnCardMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_turncard(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +DealTurnCardMessage::DealTurnCardMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:DealTurnCardMessage) +} +DealTurnCardMessage::DealTurnCardMessage(const DealTurnCardMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&turncard_) - + reinterpret_cast(&gameid_)) + sizeof(turncard_)); + // @@protoc_insertion_point(copy_constructor:DealTurnCardMessage) +} + +void DealTurnCardMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&turncard_) - + reinterpret_cast(&gameid_)) + sizeof(turncard_)); +} + +DealTurnCardMessage::~DealTurnCardMessage() { + // @@protoc_insertion_point(destructor:DealTurnCardMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void DealTurnCardMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void DealTurnCardMessage::ArenaDtor(void* object) { + DealTurnCardMessage* _this = reinterpret_cast< DealTurnCardMessage* >(object); + (void)_this; +} +void DealTurnCardMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void DealTurnCardMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DealTurnCardMessage& DealTurnCardMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DealTurnCardMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void DealTurnCardMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:DealTurnCardMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&turncard_) - + reinterpret_cast(&gameid_)) + sizeof(turncard_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* DealTurnCardMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 turnCard = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_turncard(&has_bits); + turncard_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* DealTurnCardMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:DealTurnCardMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 turnCard = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_turncard(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:DealTurnCardMessage) + return target; +} + +size_t DealTurnCardMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:DealTurnCardMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_turncard()) { + // required uint32 turnCard = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_turncard()); + } + + return total_size; +} +size_t DealTurnCardMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:DealTurnCardMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 turnCard = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_turncard()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DealTurnCardMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void DealTurnCardMessage::MergeFrom(const DealTurnCardMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:DealTurnCardMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + turncard_ = from.turncard_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void DealTurnCardMessage::CopyFrom(const DealTurnCardMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:DealTurnCardMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DealTurnCardMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void DealTurnCardMessage::InternalSwap(DealTurnCardMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(DealTurnCardMessage, turncard_) + + sizeof(DealTurnCardMessage::turncard_) + - PROTOBUF_FIELD_OFFSET(DealTurnCardMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string DealTurnCardMessage::GetTypeName() const { + return "DealTurnCardMessage"; +} + + +// =================================================================== + +void DealRiverCardMessage::InitAsDefaultInstance() { +} +class DealRiverCardMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_rivercard(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +DealRiverCardMessage::DealRiverCardMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:DealRiverCardMessage) +} +DealRiverCardMessage::DealRiverCardMessage(const DealRiverCardMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&rivercard_) - + reinterpret_cast(&gameid_)) + sizeof(rivercard_)); + // @@protoc_insertion_point(copy_constructor:DealRiverCardMessage) +} + +void DealRiverCardMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&rivercard_) - + reinterpret_cast(&gameid_)) + sizeof(rivercard_)); +} + +DealRiverCardMessage::~DealRiverCardMessage() { + // @@protoc_insertion_point(destructor:DealRiverCardMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void DealRiverCardMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void DealRiverCardMessage::ArenaDtor(void* object) { + DealRiverCardMessage* _this = reinterpret_cast< DealRiverCardMessage* >(object); + (void)_this; +} +void DealRiverCardMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void DealRiverCardMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DealRiverCardMessage& DealRiverCardMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DealRiverCardMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void DealRiverCardMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:DealRiverCardMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&rivercard_) - + reinterpret_cast(&gameid_)) + sizeof(rivercard_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* DealRiverCardMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 riverCard = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_rivercard(&has_bits); + rivercard_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* DealRiverCardMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:DealRiverCardMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 riverCard = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_rivercard(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:DealRiverCardMessage) + return target; +} + +size_t DealRiverCardMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:DealRiverCardMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_rivercard()) { + // required uint32 riverCard = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_rivercard()); + } + + return total_size; +} +size_t DealRiverCardMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:DealRiverCardMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 riverCard = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_rivercard()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DealRiverCardMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void DealRiverCardMessage::MergeFrom(const DealRiverCardMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:DealRiverCardMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + rivercard_ = from.rivercard_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void DealRiverCardMessage::CopyFrom(const DealRiverCardMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:DealRiverCardMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DealRiverCardMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void DealRiverCardMessage::InternalSwap(DealRiverCardMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(DealRiverCardMessage, rivercard_) + + sizeof(DealRiverCardMessage::rivercard_) + - PROTOBUF_FIELD_OFFSET(DealRiverCardMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string DealRiverCardMessage::GetTypeName() const { + return "DealRiverCardMessage"; +} + + +// =================================================================== + +void AllInShowCardsMessage_PlayerAllIn::InitAsDefaultInstance() { +} +class AllInShowCardsMessage_PlayerAllIn::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_allincard1(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_allincard2(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; + } +}; + +AllInShowCardsMessage_PlayerAllIn::AllInShowCardsMessage_PlayerAllIn(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:AllInShowCardsMessage.PlayerAllIn) +} +AllInShowCardsMessage_PlayerAllIn::AllInShowCardsMessage_PlayerAllIn(const AllInShowCardsMessage_PlayerAllIn& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&playerid_, &from.playerid_, + static_cast(reinterpret_cast(&allincard2_) - + reinterpret_cast(&playerid_)) + sizeof(allincard2_)); + // @@protoc_insertion_point(copy_constructor:AllInShowCardsMessage.PlayerAllIn) +} + +void AllInShowCardsMessage_PlayerAllIn::SharedCtor() { + ::memset(&playerid_, 0, static_cast( + reinterpret_cast(&allincard2_) - + reinterpret_cast(&playerid_)) + sizeof(allincard2_)); +} + +AllInShowCardsMessage_PlayerAllIn::~AllInShowCardsMessage_PlayerAllIn() { + // @@protoc_insertion_point(destructor:AllInShowCardsMessage.PlayerAllIn) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void AllInShowCardsMessage_PlayerAllIn::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void AllInShowCardsMessage_PlayerAllIn::ArenaDtor(void* object) { + AllInShowCardsMessage_PlayerAllIn* _this = reinterpret_cast< AllInShowCardsMessage_PlayerAllIn* >(object); + (void)_this; +} +void AllInShowCardsMessage_PlayerAllIn::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AllInShowCardsMessage_PlayerAllIn::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AllInShowCardsMessage_PlayerAllIn& AllInShowCardsMessage_PlayerAllIn::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AllInShowCardsMessage_PlayerAllIn_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void AllInShowCardsMessage_PlayerAllIn::Clear() { +// @@protoc_insertion_point(message_clear_start:AllInShowCardsMessage.PlayerAllIn) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + ::memset(&playerid_, 0, static_cast( + reinterpret_cast(&allincard2_) - + reinterpret_cast(&playerid_)) + sizeof(allincard2_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* AllInShowCardsMessage_PlayerAllIn::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 playerId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 allInCard1 = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_allincard1(&has_bits); + allincard1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 allInCard2 = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_allincard2(&has_bits); + allincard2_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* AllInShowCardsMessage_PlayerAllIn::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:AllInShowCardsMessage.PlayerAllIn) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 playerId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_playerid(), target); + } + + // required uint32 allInCard1 = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_allincard1(), target); + } + + // required uint32 allInCard2 = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_allincard2(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:AllInShowCardsMessage.PlayerAllIn) + return target; +} + +size_t AllInShowCardsMessage_PlayerAllIn::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:AllInShowCardsMessage.PlayerAllIn) + size_t total_size = 0; + + if (_internal_has_playerid()) { + // required uint32 playerId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + if (_internal_has_allincard1()) { + // required uint32 allInCard1 = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_allincard1()); + } + + if (_internal_has_allincard2()) { + // required uint32 allInCard2 = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_allincard2()); + } + + return total_size; +} +size_t AllInShowCardsMessage_PlayerAllIn::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:AllInShowCardsMessage.PlayerAllIn) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. + // required uint32 playerId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + // required uint32 allInCard1 = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_allincard1()); + + // required uint32 allInCard2 = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_allincard2()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AllInShowCardsMessage_PlayerAllIn::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void AllInShowCardsMessage_PlayerAllIn::MergeFrom(const AllInShowCardsMessage_PlayerAllIn& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:AllInShowCardsMessage.PlayerAllIn) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + playerid_ = from.playerid_; + } + if (cached_has_bits & 0x00000002u) { + allincard1_ = from.allincard1_; + } + if (cached_has_bits & 0x00000004u) { + allincard2_ = from.allincard2_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void AllInShowCardsMessage_PlayerAllIn::CopyFrom(const AllInShowCardsMessage_PlayerAllIn& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:AllInShowCardsMessage.PlayerAllIn) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AllInShowCardsMessage_PlayerAllIn::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void AllInShowCardsMessage_PlayerAllIn::InternalSwap(AllInShowCardsMessage_PlayerAllIn* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AllInShowCardsMessage_PlayerAllIn, allincard2_) + + sizeof(AllInShowCardsMessage_PlayerAllIn::allincard2_) + - PROTOBUF_FIELD_OFFSET(AllInShowCardsMessage_PlayerAllIn, playerid_)>( + reinterpret_cast(&playerid_), + reinterpret_cast(&other->playerid_)); +} + +std::string AllInShowCardsMessage_PlayerAllIn::GetTypeName() const { + return "AllInShowCardsMessage.PlayerAllIn"; +} + + +// =================================================================== + +void AllInShowCardsMessage::InitAsDefaultInstance() { +} +class AllInShowCardsMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +AllInShowCardsMessage::AllInShowCardsMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena), + playersallin_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:AllInShowCardsMessage) +} +AllInShowCardsMessage::AllInShowCardsMessage(const AllInShowCardsMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_), + playersallin_(from.playersallin_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + gameid_ = from.gameid_; + // @@protoc_insertion_point(copy_constructor:AllInShowCardsMessage) +} + +void AllInShowCardsMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AllInShowCardsMessage_pokerth_2eproto.base); + gameid_ = 0u; +} + +AllInShowCardsMessage::~AllInShowCardsMessage() { + // @@protoc_insertion_point(destructor:AllInShowCardsMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void AllInShowCardsMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void AllInShowCardsMessage::ArenaDtor(void* object) { + AllInShowCardsMessage* _this = reinterpret_cast< AllInShowCardsMessage* >(object); + (void)_this; +} +void AllInShowCardsMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AllInShowCardsMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AllInShowCardsMessage& AllInShowCardsMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AllInShowCardsMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void AllInShowCardsMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:AllInShowCardsMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + playersallin_.Clear(); + gameid_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* AllInShowCardsMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_playersallin(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* AllInShowCardsMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:AllInShowCardsMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; + for (unsigned int i = 0, + n = static_cast(this->_internal_playersallin_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, this->_internal_playersallin(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:AllInShowCardsMessage) + return target; +} + +size_t AllInShowCardsMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:AllInShowCardsMessage) + size_t total_size = 0; + + // required uint32 gameId = 1; + if (_internal_has_gameid()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; + total_size += 1UL * this->_internal_playersallin_size(); + for (const auto& msg : this->playersallin_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AllInShowCardsMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void AllInShowCardsMessage::MergeFrom(const AllInShowCardsMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:AllInShowCardsMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + playersallin_.MergeFrom(from.playersallin_); + if (from._internal_has_gameid()) { + _internal_set_gameid(from._internal_gameid()); + } +} + +void AllInShowCardsMessage::CopyFrom(const AllInShowCardsMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:AllInShowCardsMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AllInShowCardsMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(playersallin_)) return false; + return true; +} + +void AllInShowCardsMessage::InternalSwap(AllInShowCardsMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + playersallin_.InternalSwap(&other->playersallin_); + swap(gameid_, other->gameid_); +} + +std::string AllInShowCardsMessage::GetTypeName() const { + return "AllInShowCardsMessage"; +} + + +// =================================================================== + +void EndOfHandShowCardsMessage::InitAsDefaultInstance() { +} +class EndOfHandShowCardsMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +EndOfHandShowCardsMessage::EndOfHandShowCardsMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena), + playerresults_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:EndOfHandShowCardsMessage) +} +EndOfHandShowCardsMessage::EndOfHandShowCardsMessage(const EndOfHandShowCardsMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_), + playerresults_(from.playerresults_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + gameid_ = from.gameid_; + // @@protoc_insertion_point(copy_constructor:EndOfHandShowCardsMessage) +} + +void EndOfHandShowCardsMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EndOfHandShowCardsMessage_pokerth_2eproto.base); + gameid_ = 0u; +} + +EndOfHandShowCardsMessage::~EndOfHandShowCardsMessage() { + // @@protoc_insertion_point(destructor:EndOfHandShowCardsMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void EndOfHandShowCardsMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void EndOfHandShowCardsMessage::ArenaDtor(void* object) { + EndOfHandShowCardsMessage* _this = reinterpret_cast< EndOfHandShowCardsMessage* >(object); + (void)_this; +} +void EndOfHandShowCardsMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void EndOfHandShowCardsMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const EndOfHandShowCardsMessage& EndOfHandShowCardsMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EndOfHandShowCardsMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void EndOfHandShowCardsMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:EndOfHandShowCardsMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + playerresults_.Clear(); + gameid_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* EndOfHandShowCardsMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .PlayerResult playerResults = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_playerresults(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* EndOfHandShowCardsMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:EndOfHandShowCardsMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // repeated .PlayerResult playerResults = 2; + for (unsigned int i = 0, + n = static_cast(this->_internal_playerresults_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, this->_internal_playerresults(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:EndOfHandShowCardsMessage) + return target; +} + +size_t EndOfHandShowCardsMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:EndOfHandShowCardsMessage) + size_t total_size = 0; + + // required uint32 gameId = 1; + if (_internal_has_gameid()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .PlayerResult playerResults = 2; + total_size += 1UL * this->_internal_playerresults_size(); + for (const auto& msg : this->playerresults_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EndOfHandShowCardsMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void EndOfHandShowCardsMessage::MergeFrom(const EndOfHandShowCardsMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:EndOfHandShowCardsMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + playerresults_.MergeFrom(from.playerresults_); + if (from._internal_has_gameid()) { + _internal_set_gameid(from._internal_gameid()); + } +} + +void EndOfHandShowCardsMessage::CopyFrom(const EndOfHandShowCardsMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:EndOfHandShowCardsMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EndOfHandShowCardsMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(playerresults_)) return false; + return true; +} + +void EndOfHandShowCardsMessage::InternalSwap(EndOfHandShowCardsMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + playerresults_.InternalSwap(&other->playerresults_); + swap(gameid_, other->gameid_); +} + +std::string EndOfHandShowCardsMessage::GetTypeName() const { + return "EndOfHandShowCardsMessage"; +} + + +// =================================================================== + +void EndOfHandHideCardsMessage::InitAsDefaultInstance() { +} +class EndOfHandHideCardsMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_moneywon(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_playermoney(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x0000000f) ^ 0x0000000f) != 0; + } +}; + +EndOfHandHideCardsMessage::EndOfHandHideCardsMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:EndOfHandHideCardsMessage) +} +EndOfHandHideCardsMessage::EndOfHandHideCardsMessage(const EndOfHandHideCardsMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&playermoney_) - + reinterpret_cast(&gameid_)) + sizeof(playermoney_)); + // @@protoc_insertion_point(copy_constructor:EndOfHandHideCardsMessage) +} + +void EndOfHandHideCardsMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playermoney_) - + reinterpret_cast(&gameid_)) + sizeof(playermoney_)); +} + +EndOfHandHideCardsMessage::~EndOfHandHideCardsMessage() { + // @@protoc_insertion_point(destructor:EndOfHandHideCardsMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void EndOfHandHideCardsMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void EndOfHandHideCardsMessage::ArenaDtor(void* object) { + EndOfHandHideCardsMessage* _this = reinterpret_cast< EndOfHandHideCardsMessage* >(object); + (void)_this; +} +void EndOfHandHideCardsMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void EndOfHandHideCardsMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const EndOfHandHideCardsMessage& EndOfHandHideCardsMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EndOfHandHideCardsMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void EndOfHandHideCardsMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:EndOfHandHideCardsMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playermoney_) - + reinterpret_cast(&gameid_)) + sizeof(playermoney_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* EndOfHandHideCardsMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 moneyWon = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_moneywon(&has_bits); + moneywon_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerMoney = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + _Internal::set_has_playermoney(&has_bits); + playermoney_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* EndOfHandHideCardsMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:EndOfHandHideCardsMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 playerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_playerid(), target); + } + + // required uint32 moneyWon = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_moneywon(), target); + } + + // required uint32 playerMoney = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_playermoney(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:EndOfHandHideCardsMessage) + return target; +} + +size_t EndOfHandHideCardsMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:EndOfHandHideCardsMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_playerid()) { + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + if (_internal_has_moneywon()) { + // required uint32 moneyWon = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_moneywon()); + } + + if (_internal_has_playermoney()) { + // required uint32 playerMoney = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playermoney()); + } + + return total_size; +} +size_t EndOfHandHideCardsMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:EndOfHandHideCardsMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + // required uint32 moneyWon = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_moneywon()); + + // required uint32 playerMoney = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playermoney()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EndOfHandHideCardsMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void EndOfHandHideCardsMessage::MergeFrom(const EndOfHandHideCardsMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:EndOfHandHideCardsMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + playerid_ = from.playerid_; + } + if (cached_has_bits & 0x00000004u) { + moneywon_ = from.moneywon_; + } + if (cached_has_bits & 0x00000008u) { + playermoney_ = from.playermoney_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EndOfHandHideCardsMessage::CopyFrom(const EndOfHandHideCardsMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:EndOfHandHideCardsMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EndOfHandHideCardsMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void EndOfHandHideCardsMessage::InternalSwap(EndOfHandHideCardsMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(EndOfHandHideCardsMessage, playermoney_) + + sizeof(EndOfHandHideCardsMessage::playermoney_) + - PROTOBUF_FIELD_OFFSET(EndOfHandHideCardsMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string EndOfHandHideCardsMessage::GetTypeName() const { + return "EndOfHandHideCardsMessage"; +} + + +// =================================================================== + +void ShowMyCardsRequestMessage::InitAsDefaultInstance() { +} +class ShowMyCardsRequestMessage::_Internal { + public: +}; + +ShowMyCardsRequestMessage::ShowMyCardsRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:ShowMyCardsRequestMessage) +} +ShowMyCardsRequestMessage::ShowMyCardsRequestMessage(const ShowMyCardsRequestMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite() { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:ShowMyCardsRequestMessage) +} + +void ShowMyCardsRequestMessage::SharedCtor() { +} + +ShowMyCardsRequestMessage::~ShowMyCardsRequestMessage() { + // @@protoc_insertion_point(destructor:ShowMyCardsRequestMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void ShowMyCardsRequestMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void ShowMyCardsRequestMessage::ArenaDtor(void* object) { + ShowMyCardsRequestMessage* _this = reinterpret_cast< ShowMyCardsRequestMessage* >(object); + (void)_this; +} +void ShowMyCardsRequestMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ShowMyCardsRequestMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ShowMyCardsRequestMessage& ShowMyCardsRequestMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ShowMyCardsRequestMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void ShowMyCardsRequestMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:ShowMyCardsRequestMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +const char* ShowMyCardsRequestMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ShowMyCardsRequestMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:ShowMyCardsRequestMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:ShowMyCardsRequestMessage) + return target; +} + +size_t ShowMyCardsRequestMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:ShowMyCardsRequestMessage) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ShowMyCardsRequestMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void ShowMyCardsRequestMessage::MergeFrom(const ShowMyCardsRequestMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:ShowMyCardsRequestMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void ShowMyCardsRequestMessage::CopyFrom(const ShowMyCardsRequestMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:ShowMyCardsRequestMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ShowMyCardsRequestMessage::IsInitialized() const { + return true; +} + +void ShowMyCardsRequestMessage::InternalSwap(ShowMyCardsRequestMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +std::string ShowMyCardsRequestMessage::GetTypeName() const { + return "ShowMyCardsRequestMessage"; +} + + +// =================================================================== + +void AfterHandShowCardsMessage::InitAsDefaultInstance() { + ::_AfterHandShowCardsMessage_default_instance_._instance.get_mutable()->playerresult_ = const_cast< ::PlayerResult*>( + ::PlayerResult::internal_default_instance()); +} +class AfterHandShowCardsMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static const ::PlayerResult& playerresult(const AfterHandShowCardsMessage* msg); + static void set_has_playerresult(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +const ::PlayerResult& +AfterHandShowCardsMessage::_Internal::playerresult(const AfterHandShowCardsMessage* msg) { + return *msg->playerresult_; +} +AfterHandShowCardsMessage::AfterHandShowCardsMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:AfterHandShowCardsMessage) +} +AfterHandShowCardsMessage::AfterHandShowCardsMessage(const AfterHandShowCardsMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from._internal_has_playerresult()) { + playerresult_ = new ::PlayerResult(*from.playerresult_); + } else { + playerresult_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:AfterHandShowCardsMessage) +} + +void AfterHandShowCardsMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AfterHandShowCardsMessage_pokerth_2eproto.base); + playerresult_ = nullptr; +} + +AfterHandShowCardsMessage::~AfterHandShowCardsMessage() { + // @@protoc_insertion_point(destructor:AfterHandShowCardsMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void AfterHandShowCardsMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + if (this != internal_default_instance()) delete playerresult_; +} + +void AfterHandShowCardsMessage::ArenaDtor(void* object) { + AfterHandShowCardsMessage* _this = reinterpret_cast< AfterHandShowCardsMessage* >(object); + (void)_this; +} +void AfterHandShowCardsMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AfterHandShowCardsMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AfterHandShowCardsMessage& AfterHandShowCardsMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AfterHandShowCardsMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void AfterHandShowCardsMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:AfterHandShowCardsMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(playerresult_ != nullptr); + playerresult_->Clear(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* AfterHandShowCardsMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required .PlayerResult playerResult = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_playerresult(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* AfterHandShowCardsMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:AfterHandShowCardsMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required .PlayerResult playerResult = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::playerresult(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:AfterHandShowCardsMessage) + return target; +} + +size_t AfterHandShowCardsMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:AfterHandShowCardsMessage) + size_t total_size = 0; + + // required .PlayerResult playerResult = 1; + if (_internal_has_playerresult()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *playerresult_); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AfterHandShowCardsMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void AfterHandShowCardsMessage::MergeFrom(const AfterHandShowCardsMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:AfterHandShowCardsMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_playerresult()) { + _internal_mutable_playerresult()->::PlayerResult::MergeFrom(from._internal_playerresult()); + } +} + +void AfterHandShowCardsMessage::CopyFrom(const AfterHandShowCardsMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:AfterHandShowCardsMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AfterHandShowCardsMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + if (_internal_has_playerresult()) { + if (!playerresult_->IsInitialized()) return false; + } + return true; +} + +void AfterHandShowCardsMessage::InternalSwap(AfterHandShowCardsMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(playerresult_, other->playerresult_); +} + +std::string AfterHandShowCardsMessage::GetTypeName() const { + return "AfterHandShowCardsMessage"; +} + + +// =================================================================== + +void EndOfGameMessage::InitAsDefaultInstance() { +} +class EndOfGameMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_winnerplayerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +EndOfGameMessage::EndOfGameMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:EndOfGameMessage) +} +EndOfGameMessage::EndOfGameMessage(const EndOfGameMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&winnerplayerid_) - + reinterpret_cast(&gameid_)) + sizeof(winnerplayerid_)); + // @@protoc_insertion_point(copy_constructor:EndOfGameMessage) +} + +void EndOfGameMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&winnerplayerid_) - + reinterpret_cast(&gameid_)) + sizeof(winnerplayerid_)); +} + +EndOfGameMessage::~EndOfGameMessage() { + // @@protoc_insertion_point(destructor:EndOfGameMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void EndOfGameMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void EndOfGameMessage::ArenaDtor(void* object) { + EndOfGameMessage* _this = reinterpret_cast< EndOfGameMessage* >(object); + (void)_this; +} +void EndOfGameMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void EndOfGameMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const EndOfGameMessage& EndOfGameMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EndOfGameMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void EndOfGameMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:EndOfGameMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&winnerplayerid_) - + reinterpret_cast(&gameid_)) + sizeof(winnerplayerid_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* EndOfGameMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 winnerPlayerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_winnerplayerid(&has_bits); + winnerplayerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* EndOfGameMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:EndOfGameMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 winnerPlayerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_winnerplayerid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:EndOfGameMessage) + return target; +} + +size_t EndOfGameMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:EndOfGameMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_winnerplayerid()) { + // required uint32 winnerPlayerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_winnerplayerid()); + } + + return total_size; +} +size_t EndOfGameMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:EndOfGameMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 winnerPlayerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_winnerplayerid()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EndOfGameMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void EndOfGameMessage::MergeFrom(const EndOfGameMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:EndOfGameMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + winnerplayerid_ = from.winnerplayerid_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EndOfGameMessage::CopyFrom(const EndOfGameMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:EndOfGameMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EndOfGameMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void EndOfGameMessage::InternalSwap(EndOfGameMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(EndOfGameMessage, winnerplayerid_) + + sizeof(EndOfGameMessage::winnerplayerid_) + - PROTOBUF_FIELD_OFFSET(EndOfGameMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string EndOfGameMessage::GetTypeName() const { + return "EndOfGameMessage"; +} + + +// =================================================================== + +void PlayerIdChangedMessage::InitAsDefaultInstance() { +} +class PlayerIdChangedMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_oldplayerid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_newplayerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +PlayerIdChangedMessage::PlayerIdChangedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:PlayerIdChangedMessage) +} +PlayerIdChangedMessage::PlayerIdChangedMessage(const PlayerIdChangedMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&oldplayerid_, &from.oldplayerid_, + static_cast(reinterpret_cast(&newplayerid_) - + reinterpret_cast(&oldplayerid_)) + sizeof(newplayerid_)); + // @@protoc_insertion_point(copy_constructor:PlayerIdChangedMessage) +} + +void PlayerIdChangedMessage::SharedCtor() { + ::memset(&oldplayerid_, 0, static_cast( + reinterpret_cast(&newplayerid_) - + reinterpret_cast(&oldplayerid_)) + sizeof(newplayerid_)); +} + +PlayerIdChangedMessage::~PlayerIdChangedMessage() { + // @@protoc_insertion_point(destructor:PlayerIdChangedMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void PlayerIdChangedMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void PlayerIdChangedMessage::ArenaDtor(void* object) { + PlayerIdChangedMessage* _this = reinterpret_cast< PlayerIdChangedMessage* >(object); + (void)_this; +} +void PlayerIdChangedMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PlayerIdChangedMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PlayerIdChangedMessage& PlayerIdChangedMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PlayerIdChangedMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void PlayerIdChangedMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:PlayerIdChangedMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&oldplayerid_, 0, static_cast( + reinterpret_cast(&newplayerid_) - + reinterpret_cast(&oldplayerid_)) + sizeof(newplayerid_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* PlayerIdChangedMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 oldPlayerId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_oldplayerid(&has_bits); + oldplayerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 newPlayerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_newplayerid(&has_bits); + newplayerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* PlayerIdChangedMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:PlayerIdChangedMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 oldPlayerId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_oldplayerid(), target); + } + + // required uint32 newPlayerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_newplayerid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:PlayerIdChangedMessage) + return target; +} + +size_t PlayerIdChangedMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:PlayerIdChangedMessage) + size_t total_size = 0; + + if (_internal_has_oldplayerid()) { + // required uint32 oldPlayerId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_oldplayerid()); + } + + if (_internal_has_newplayerid()) { + // required uint32 newPlayerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_newplayerid()); + } + + return total_size; +} +size_t PlayerIdChangedMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:PlayerIdChangedMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 oldPlayerId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_oldplayerid()); + + // required uint32 newPlayerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_newplayerid()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PlayerIdChangedMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void PlayerIdChangedMessage::MergeFrom(const PlayerIdChangedMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:PlayerIdChangedMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + oldplayerid_ = from.oldplayerid_; + } + if (cached_has_bits & 0x00000002u) { + newplayerid_ = from.newplayerid_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void PlayerIdChangedMessage::CopyFrom(const PlayerIdChangedMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:PlayerIdChangedMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlayerIdChangedMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void PlayerIdChangedMessage::InternalSwap(PlayerIdChangedMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PlayerIdChangedMessage, newplayerid_) + + sizeof(PlayerIdChangedMessage::newplayerid_) + - PROTOBUF_FIELD_OFFSET(PlayerIdChangedMessage, oldplayerid_)>( + reinterpret_cast(&oldplayerid_), + reinterpret_cast(&other->oldplayerid_)); +} + +std::string PlayerIdChangedMessage::GetTypeName() const { + return "PlayerIdChangedMessage"; +} + + +// =================================================================== + +void AskKickPlayerMessage::InitAsDefaultInstance() { +} +class AskKickPlayerMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +AskKickPlayerMessage::AskKickPlayerMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:AskKickPlayerMessage) +} +AskKickPlayerMessage::AskKickPlayerMessage(const AskKickPlayerMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); + // @@protoc_insertion_point(copy_constructor:AskKickPlayerMessage) +} + +void AskKickPlayerMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); +} + +AskKickPlayerMessage::~AskKickPlayerMessage() { + // @@protoc_insertion_point(destructor:AskKickPlayerMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void AskKickPlayerMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void AskKickPlayerMessage::ArenaDtor(void* object) { + AskKickPlayerMessage* _this = reinterpret_cast< AskKickPlayerMessage* >(object); + (void)_this; +} +void AskKickPlayerMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AskKickPlayerMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AskKickPlayerMessage& AskKickPlayerMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AskKickPlayerMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void AskKickPlayerMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:AskKickPlayerMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&playerid_) - + reinterpret_cast(&gameid_)) + sizeof(playerid_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* AskKickPlayerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* AskKickPlayerMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:AskKickPlayerMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 playerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_playerid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:AskKickPlayerMessage) + return target; +} + +size_t AskKickPlayerMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:AskKickPlayerMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_playerid()) { + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + return total_size; +} +size_t AskKickPlayerMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:AskKickPlayerMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AskKickPlayerMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void AskKickPlayerMessage::MergeFrom(const AskKickPlayerMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:AskKickPlayerMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + playerid_ = from.playerid_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void AskKickPlayerMessage::CopyFrom(const AskKickPlayerMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:AskKickPlayerMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AskKickPlayerMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void AskKickPlayerMessage::InternalSwap(AskKickPlayerMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AskKickPlayerMessage, playerid_) + + sizeof(AskKickPlayerMessage::playerid_) + - PROTOBUF_FIELD_OFFSET(AskKickPlayerMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string AskKickPlayerMessage::GetTypeName() const { + return "AskKickPlayerMessage"; +} + + +// =================================================================== + +void AskKickDeniedMessage::InitAsDefaultInstance() { +} +class AskKickDeniedMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_kickdeniedreason(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; + } +}; + +AskKickDeniedMessage::AskKickDeniedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:AskKickDeniedMessage) +} +AskKickDeniedMessage::AskKickDeniedMessage(const AskKickDeniedMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&kickdeniedreason_) - + reinterpret_cast(&gameid_)) + sizeof(kickdeniedreason_)); + // @@protoc_insertion_point(copy_constructor:AskKickDeniedMessage) +} + +void AskKickDeniedMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&kickdeniedreason_) - + reinterpret_cast(&gameid_)) + sizeof(kickdeniedreason_)); +} + +AskKickDeniedMessage::~AskKickDeniedMessage() { + // @@protoc_insertion_point(destructor:AskKickDeniedMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void AskKickDeniedMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void AskKickDeniedMessage::ArenaDtor(void* object) { + AskKickDeniedMessage* _this = reinterpret_cast< AskKickDeniedMessage* >(object); + (void)_this; +} +void AskKickDeniedMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AskKickDeniedMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AskKickDeniedMessage& AskKickDeniedMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AskKickDeniedMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void AskKickDeniedMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:AskKickDeniedMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&kickdeniedreason_) - + reinterpret_cast(&gameid_)) + sizeof(kickdeniedreason_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* AskKickDeniedMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 playerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::AskKickDeniedMessage_KickDeniedReason_IsValid(val))) { + _internal_set_kickdeniedreason(static_cast<::AskKickDeniedMessage_KickDeniedReason>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* AskKickDeniedMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:AskKickDeniedMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 playerId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_playerid(), target); + } + + // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 3, this->_internal_kickdeniedreason(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:AskKickDeniedMessage) + return target; +} + +size_t AskKickDeniedMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:AskKickDeniedMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_playerid()) { + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + if (_internal_has_kickdeniedreason()) { + // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_kickdeniedreason()); + } + return total_size; +} +size_t AskKickDeniedMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:AskKickDeniedMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 playerId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + + // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_kickdeniedreason()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AskKickDeniedMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void AskKickDeniedMessage::MergeFrom(const AskKickDeniedMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:AskKickDeniedMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + playerid_ = from.playerid_; + } + if (cached_has_bits & 0x00000004u) { + kickdeniedreason_ = from.kickdeniedreason_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void AskKickDeniedMessage::CopyFrom(const AskKickDeniedMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:AskKickDeniedMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AskKickDeniedMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void AskKickDeniedMessage::InternalSwap(AskKickDeniedMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AskKickDeniedMessage, kickdeniedreason_) + + sizeof(AskKickDeniedMessage::kickdeniedreason_) + - PROTOBUF_FIELD_OFFSET(AskKickDeniedMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string AskKickDeniedMessage::GetTypeName() const { + return "AskKickDeniedMessage"; +} + + +// =================================================================== + +void StartKickPetitionMessage::InitAsDefaultInstance() { +} +class StartKickPetitionMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_petitionid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_proposingplayerid(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_kickplayerid(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_kicktimeoutsec(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static void set_has_numvotesneededtokick(HasBits* has_bits) { + (*has_bits)[0] |= 32u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x0000003f) ^ 0x0000003f) != 0; + } +}; + +StartKickPetitionMessage::StartKickPetitionMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:StartKickPetitionMessage) +} +StartKickPetitionMessage::StartKickPetitionMessage(const StartKickPetitionMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&numvotesneededtokick_) - + reinterpret_cast(&gameid_)) + sizeof(numvotesneededtokick_)); + // @@protoc_insertion_point(copy_constructor:StartKickPetitionMessage) +} + +void StartKickPetitionMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&numvotesneededtokick_) - + reinterpret_cast(&gameid_)) + sizeof(numvotesneededtokick_)); +} + +StartKickPetitionMessage::~StartKickPetitionMessage() { + // @@protoc_insertion_point(destructor:StartKickPetitionMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void StartKickPetitionMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void StartKickPetitionMessage::ArenaDtor(void* object) { + StartKickPetitionMessage* _this = reinterpret_cast< StartKickPetitionMessage* >(object); + (void)_this; +} +void StartKickPetitionMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void StartKickPetitionMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const StartKickPetitionMessage& StartKickPetitionMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StartKickPetitionMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void StartKickPetitionMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:StartKickPetitionMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000003fu) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&numvotesneededtokick_) - + reinterpret_cast(&gameid_)) + sizeof(numvotesneededtokick_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* StartKickPetitionMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 petitionId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_petitionid(&has_bits); + petitionid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 proposingPlayerId = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_proposingplayerid(&has_bits); + proposingplayerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 kickPlayerId = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + _Internal::set_has_kickplayerid(&has_bits); + kickplayerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 kickTimeoutSec = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + _Internal::set_has_kicktimeoutsec(&has_bits); + kicktimeoutsec_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 numVotesNeededToKick = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + _Internal::set_has_numvotesneededtokick(&has_bits); + numvotesneededtokick_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* StartKickPetitionMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:StartKickPetitionMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 petitionId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_petitionid(), target); + } + + // required uint32 proposingPlayerId = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_proposingplayerid(), target); + } + + // required uint32 kickPlayerId = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_kickplayerid(), target); + } + + // required uint32 kickTimeoutSec = 5; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_kicktimeoutsec(), target); + } + + // required uint32 numVotesNeededToKick = 6; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_numvotesneededtokick(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:StartKickPetitionMessage) + return target; +} + +size_t StartKickPetitionMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:StartKickPetitionMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_petitionid()) { + // required uint32 petitionId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_petitionid()); + } + + if (_internal_has_proposingplayerid()) { + // required uint32 proposingPlayerId = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_proposingplayerid()); + } + + if (_internal_has_kickplayerid()) { + // required uint32 kickPlayerId = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_kickplayerid()); + } + + if (_internal_has_kicktimeoutsec()) { + // required uint32 kickTimeoutSec = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_kicktimeoutsec()); + } + + if (_internal_has_numvotesneededtokick()) { + // required uint32 numVotesNeededToKick = 6; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_numvotesneededtokick()); + } + return total_size; +} +size_t StartKickPetitionMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:StartKickPetitionMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x0000003f) ^ 0x0000003f) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 petitionId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_petitionid()); + + // required uint32 proposingPlayerId = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_proposingplayerid()); + + // required uint32 kickPlayerId = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_kickplayerid()); + + // required uint32 kickTimeoutSec = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_kicktimeoutsec()); + + // required uint32 numVotesNeededToKick = 6; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_numvotesneededtokick()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StartKickPetitionMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void StartKickPetitionMessage::MergeFrom(const StartKickPetitionMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:StartKickPetitionMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000003fu) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + petitionid_ = from.petitionid_; + } + if (cached_has_bits & 0x00000004u) { + proposingplayerid_ = from.proposingplayerid_; + } + if (cached_has_bits & 0x00000008u) { + kickplayerid_ = from.kickplayerid_; + } + if (cached_has_bits & 0x00000010u) { + kicktimeoutsec_ = from.kicktimeoutsec_; + } + if (cached_has_bits & 0x00000020u) { + numvotesneededtokick_ = from.numvotesneededtokick_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void StartKickPetitionMessage::CopyFrom(const StartKickPetitionMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:StartKickPetitionMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StartKickPetitionMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void StartKickPetitionMessage::InternalSwap(StartKickPetitionMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(StartKickPetitionMessage, numvotesneededtokick_) + + sizeof(StartKickPetitionMessage::numvotesneededtokick_) + - PROTOBUF_FIELD_OFFSET(StartKickPetitionMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string StartKickPetitionMessage::GetTypeName() const { + return "StartKickPetitionMessage"; +} + + +// =================================================================== + +void VoteKickRequestMessage::InitAsDefaultInstance() { +} +class VoteKickRequestMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_petitionid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_votekick(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; + } +}; + +VoteKickRequestMessage::VoteKickRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:VoteKickRequestMessage) +} +VoteKickRequestMessage::VoteKickRequestMessage(const VoteKickRequestMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&votekick_) - + reinterpret_cast(&gameid_)) + sizeof(votekick_)); + // @@protoc_insertion_point(copy_constructor:VoteKickRequestMessage) +} + +void VoteKickRequestMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&votekick_) - + reinterpret_cast(&gameid_)) + sizeof(votekick_)); +} + +VoteKickRequestMessage::~VoteKickRequestMessage() { + // @@protoc_insertion_point(destructor:VoteKickRequestMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void VoteKickRequestMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void VoteKickRequestMessage::ArenaDtor(void* object) { + VoteKickRequestMessage* _this = reinterpret_cast< VoteKickRequestMessage* >(object); + (void)_this; +} +void VoteKickRequestMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void VoteKickRequestMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const VoteKickRequestMessage& VoteKickRequestMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VoteKickRequestMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void VoteKickRequestMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:VoteKickRequestMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&votekick_) - + reinterpret_cast(&gameid_)) + sizeof(votekick_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* VoteKickRequestMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 petitionId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_petitionid(&has_bits); + petitionid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required bool voteKick = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_votekick(&has_bits); + votekick_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* VoteKickRequestMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:VoteKickRequestMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 petitionId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_petitionid(), target); + } + + // required bool voteKick = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_votekick(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:VoteKickRequestMessage) + return target; +} + +size_t VoteKickRequestMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:VoteKickRequestMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_petitionid()) { + // required uint32 petitionId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_petitionid()); + } + + if (_internal_has_votekick()) { + // required bool voteKick = 3; + total_size += 1 + 1; + } + + return total_size; +} +size_t VoteKickRequestMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:VoteKickRequestMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 petitionId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_petitionid()); + + // required bool voteKick = 3; + total_size += 1 + 1; + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void VoteKickRequestMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void VoteKickRequestMessage::MergeFrom(const VoteKickRequestMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:VoteKickRequestMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + petitionid_ = from.petitionid_; + } + if (cached_has_bits & 0x00000004u) { + votekick_ = from.votekick_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void VoteKickRequestMessage::CopyFrom(const VoteKickRequestMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:VoteKickRequestMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VoteKickRequestMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void VoteKickRequestMessage::InternalSwap(VoteKickRequestMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(VoteKickRequestMessage, votekick_) + + sizeof(VoteKickRequestMessage::votekick_) + - PROTOBUF_FIELD_OFFSET(VoteKickRequestMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string VoteKickRequestMessage::GetTypeName() const { + return "VoteKickRequestMessage"; +} + + +// =================================================================== + +void VoteKickReplyMessage::InitAsDefaultInstance() { +} +class VoteKickReplyMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_petitionid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_votekickreplytype(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; + } +}; + +VoteKickReplyMessage::VoteKickReplyMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:VoteKickReplyMessage) +} +VoteKickReplyMessage::VoteKickReplyMessage(const VoteKickReplyMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&votekickreplytype_) - + reinterpret_cast(&gameid_)) + sizeof(votekickreplytype_)); + // @@protoc_insertion_point(copy_constructor:VoteKickReplyMessage) +} + +void VoteKickReplyMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&votekickreplytype_) - + reinterpret_cast(&gameid_)) + sizeof(votekickreplytype_)); +} + +VoteKickReplyMessage::~VoteKickReplyMessage() { + // @@protoc_insertion_point(destructor:VoteKickReplyMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void VoteKickReplyMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void VoteKickReplyMessage::ArenaDtor(void* object) { + VoteKickReplyMessage* _this = reinterpret_cast< VoteKickReplyMessage* >(object); + (void)_this; +} +void VoteKickReplyMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void VoteKickReplyMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const VoteKickReplyMessage& VoteKickReplyMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VoteKickReplyMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void VoteKickReplyMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:VoteKickReplyMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&votekickreplytype_) - + reinterpret_cast(&gameid_)) + sizeof(votekickreplytype_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* VoteKickReplyMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 petitionId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_petitionid(&has_bits); + petitionid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::VoteKickReplyMessage_VoteKickReplyType_IsValid(val))) { + _internal_set_votekickreplytype(static_cast<::VoteKickReplyMessage_VoteKickReplyType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* VoteKickReplyMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:VoteKickReplyMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 petitionId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_petitionid(), target); + } + + // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 3, this->_internal_votekickreplytype(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:VoteKickReplyMessage) + return target; +} + +size_t VoteKickReplyMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:VoteKickReplyMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_petitionid()) { + // required uint32 petitionId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_petitionid()); + } + + if (_internal_has_votekickreplytype()) { + // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_votekickreplytype()); + } + return total_size; +} +size_t VoteKickReplyMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:VoteKickReplyMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 petitionId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_petitionid()); + + // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_votekickreplytype()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void VoteKickReplyMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void VoteKickReplyMessage::MergeFrom(const VoteKickReplyMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:VoteKickReplyMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + petitionid_ = from.petitionid_; + } + if (cached_has_bits & 0x00000004u) { + votekickreplytype_ = from.votekickreplytype_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void VoteKickReplyMessage::CopyFrom(const VoteKickReplyMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:VoteKickReplyMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VoteKickReplyMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void VoteKickReplyMessage::InternalSwap(VoteKickReplyMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(VoteKickReplyMessage, votekickreplytype_) + + sizeof(VoteKickReplyMessage::votekickreplytype_) + - PROTOBUF_FIELD_OFFSET(VoteKickReplyMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string VoteKickReplyMessage::GetTypeName() const { + return "VoteKickReplyMessage"; +} + + +// =================================================================== + +void KickPetitionUpdateMessage::InitAsDefaultInstance() { +} +class KickPetitionUpdateMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_petitionid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_numvotesagainstkicking(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_numvotesinfavourofkicking(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_numvotesneededtokick(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x0000001f) ^ 0x0000001f) != 0; + } +}; + +KickPetitionUpdateMessage::KickPetitionUpdateMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:KickPetitionUpdateMessage) +} +KickPetitionUpdateMessage::KickPetitionUpdateMessage(const KickPetitionUpdateMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&numvotesneededtokick_) - + reinterpret_cast(&gameid_)) + sizeof(numvotesneededtokick_)); + // @@protoc_insertion_point(copy_constructor:KickPetitionUpdateMessage) +} + +void KickPetitionUpdateMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&numvotesneededtokick_) - + reinterpret_cast(&gameid_)) + sizeof(numvotesneededtokick_)); +} + +KickPetitionUpdateMessage::~KickPetitionUpdateMessage() { + // @@protoc_insertion_point(destructor:KickPetitionUpdateMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void KickPetitionUpdateMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void KickPetitionUpdateMessage::ArenaDtor(void* object) { + KickPetitionUpdateMessage* _this = reinterpret_cast< KickPetitionUpdateMessage* >(object); + (void)_this; +} +void KickPetitionUpdateMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void KickPetitionUpdateMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const KickPetitionUpdateMessage& KickPetitionUpdateMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_KickPetitionUpdateMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void KickPetitionUpdateMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:KickPetitionUpdateMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&numvotesneededtokick_) - + reinterpret_cast(&gameid_)) + sizeof(numvotesneededtokick_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* KickPetitionUpdateMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 petitionId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_petitionid(&has_bits); + petitionid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 numVotesAgainstKicking = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_numvotesagainstkicking(&has_bits); + numvotesagainstkicking_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 numVotesInFavourOfKicking = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + _Internal::set_has_numvotesinfavourofkicking(&has_bits); + numvotesinfavourofkicking_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 numVotesNeededToKick = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + _Internal::set_has_numvotesneededtokick(&has_bits); + numvotesneededtokick_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* KickPetitionUpdateMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:KickPetitionUpdateMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 petitionId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_petitionid(), target); + } + + // required uint32 numVotesAgainstKicking = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_numvotesagainstkicking(), target); + } + + // required uint32 numVotesInFavourOfKicking = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_numvotesinfavourofkicking(), target); + } + + // required uint32 numVotesNeededToKick = 5; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_numvotesneededtokick(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:KickPetitionUpdateMessage) + return target; +} + +size_t KickPetitionUpdateMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:KickPetitionUpdateMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_petitionid()) { + // required uint32 petitionId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_petitionid()); + } + + if (_internal_has_numvotesagainstkicking()) { + // required uint32 numVotesAgainstKicking = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_numvotesagainstkicking()); + } + + if (_internal_has_numvotesinfavourofkicking()) { + // required uint32 numVotesInFavourOfKicking = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_numvotesinfavourofkicking()); + } + + if (_internal_has_numvotesneededtokick()) { + // required uint32 numVotesNeededToKick = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_numvotesneededtokick()); + } + return total_size; +} +size_t KickPetitionUpdateMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:KickPetitionUpdateMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 petitionId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_petitionid()); + + // required uint32 numVotesAgainstKicking = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_numvotesagainstkicking()); + + // required uint32 numVotesInFavourOfKicking = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_numvotesinfavourofkicking()); + + // required uint32 numVotesNeededToKick = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_numvotesneededtokick()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void KickPetitionUpdateMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void KickPetitionUpdateMessage::MergeFrom(const KickPetitionUpdateMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:KickPetitionUpdateMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + petitionid_ = from.petitionid_; + } + if (cached_has_bits & 0x00000004u) { + numvotesagainstkicking_ = from.numvotesagainstkicking_; + } + if (cached_has_bits & 0x00000008u) { + numvotesinfavourofkicking_ = from.numvotesinfavourofkicking_; + } + if (cached_has_bits & 0x00000010u) { + numvotesneededtokick_ = from.numvotesneededtokick_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void KickPetitionUpdateMessage::CopyFrom(const KickPetitionUpdateMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:KickPetitionUpdateMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool KickPetitionUpdateMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void KickPetitionUpdateMessage::InternalSwap(KickPetitionUpdateMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(KickPetitionUpdateMessage, numvotesneededtokick_) + + sizeof(KickPetitionUpdateMessage::numvotesneededtokick_) + - PROTOBUF_FIELD_OFFSET(KickPetitionUpdateMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string KickPetitionUpdateMessage::GetTypeName() const { + return "KickPetitionUpdateMessage"; +} + + +// =================================================================== + +void EndKickPetitionMessage::InitAsDefaultInstance() { +} +class EndKickPetitionMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_petitionid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_numvotesagainstkicking(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_numvotesinfavourofkicking(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_resultplayerkicked(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static void set_has_petitionendreason(HasBits* has_bits) { + (*has_bits)[0] |= 32u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x0000003f) ^ 0x0000003f) != 0; + } +}; + +EndKickPetitionMessage::EndKickPetitionMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:EndKickPetitionMessage) +} +EndKickPetitionMessage::EndKickPetitionMessage(const EndKickPetitionMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&petitionendreason_) - + reinterpret_cast(&gameid_)) + sizeof(petitionendreason_)); + // @@protoc_insertion_point(copy_constructor:EndKickPetitionMessage) +} + +void EndKickPetitionMessage::SharedCtor() { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&petitionendreason_) - + reinterpret_cast(&gameid_)) + sizeof(petitionendreason_)); +} + +EndKickPetitionMessage::~EndKickPetitionMessage() { + // @@protoc_insertion_point(destructor:EndKickPetitionMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void EndKickPetitionMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void EndKickPetitionMessage::ArenaDtor(void* object) { + EndKickPetitionMessage* _this = reinterpret_cast< EndKickPetitionMessage* >(object); + (void)_this; +} +void EndKickPetitionMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void EndKickPetitionMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const EndKickPetitionMessage& EndKickPetitionMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EndKickPetitionMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void EndKickPetitionMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:EndKickPetitionMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000003fu) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&petitionendreason_) - + reinterpret_cast(&gameid_)) + sizeof(petitionendreason_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* EndKickPetitionMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 petitionId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_petitionid(&has_bits); + petitionid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 numVotesAgainstKicking = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_numvotesagainstkicking(&has_bits); + numvotesagainstkicking_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 numVotesInFavourOfKicking = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + _Internal::set_has_numvotesinfavourofkicking(&has_bits); + numvotesinfavourofkicking_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required uint32 resultPlayerKicked = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + _Internal::set_has_resultplayerkicked(&has_bits); + resultplayerkicked_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::EndKickPetitionMessage_PetitionEndReason_IsValid(val))) { + _internal_set_petitionendreason(static_cast<::EndKickPetitionMessage_PetitionEndReason>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(6, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* EndKickPetitionMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:EndKickPetitionMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 gameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // required uint32 petitionId = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_petitionid(), target); + } + + // required uint32 numVotesAgainstKicking = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_numvotesagainstkicking(), target); + } + + // required uint32 numVotesInFavourOfKicking = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_numvotesinfavourofkicking(), target); + } + + // required uint32 resultPlayerKicked = 5; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_resultplayerkicked(), target); + } + + // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 6, this->_internal_petitionendreason(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:EndKickPetitionMessage) + return target; +} + +size_t EndKickPetitionMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:EndKickPetitionMessage) + size_t total_size = 0; + + if (_internal_has_gameid()) { + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + if (_internal_has_petitionid()) { + // required uint32 petitionId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_petitionid()); + } + + if (_internal_has_numvotesagainstkicking()) { + // required uint32 numVotesAgainstKicking = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_numvotesagainstkicking()); + } + + if (_internal_has_numvotesinfavourofkicking()) { + // required uint32 numVotesInFavourOfKicking = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_numvotesinfavourofkicking()); + } + + if (_internal_has_resultplayerkicked()) { + // required uint32 resultPlayerKicked = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_resultplayerkicked()); + } + + if (_internal_has_petitionendreason()) { + // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_petitionendreason()); + } + return total_size; +} +size_t EndKickPetitionMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:EndKickPetitionMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x0000003f) ^ 0x0000003f) == 0) { // All required fields are present. + // required uint32 gameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + + // required uint32 petitionId = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_petitionid()); + + // required uint32 numVotesAgainstKicking = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_numvotesagainstkicking()); + + // required uint32 numVotesInFavourOfKicking = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_numvotesinfavourofkicking()); + + // required uint32 resultPlayerKicked = 5; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_resultplayerkicked()); + + // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_petitionendreason()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EndKickPetitionMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void EndKickPetitionMessage::MergeFrom(const EndKickPetitionMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:EndKickPetitionMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000003fu) { + if (cached_has_bits & 0x00000001u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000002u) { + petitionid_ = from.petitionid_; + } + if (cached_has_bits & 0x00000004u) { + numvotesagainstkicking_ = from.numvotesagainstkicking_; + } + if (cached_has_bits & 0x00000008u) { + numvotesinfavourofkicking_ = from.numvotesinfavourofkicking_; + } + if (cached_has_bits & 0x00000010u) { + resultplayerkicked_ = from.resultplayerkicked_; + } + if (cached_has_bits & 0x00000020u) { + petitionendreason_ = from.petitionendreason_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EndKickPetitionMessage::CopyFrom(const EndKickPetitionMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:EndKickPetitionMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EndKickPetitionMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void EndKickPetitionMessage::InternalSwap(EndKickPetitionMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(EndKickPetitionMessage, petitionendreason_) + + sizeof(EndKickPetitionMessage::petitionendreason_) + - PROTOBUF_FIELD_OFFSET(EndKickPetitionMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string EndKickPetitionMessage::GetTypeName() const { + return "EndKickPetitionMessage"; +} + + +// =================================================================== + +void StatisticsMessage_StatisticsData::InitAsDefaultInstance() { +} +class StatisticsMessage_StatisticsData::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_statisticstype(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_statisticsvalue(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +StatisticsMessage_StatisticsData::StatisticsMessage_StatisticsData(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:StatisticsMessage.StatisticsData) +} +StatisticsMessage_StatisticsData::StatisticsMessage_StatisticsData(const StatisticsMessage_StatisticsData& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&statisticsvalue_, &from.statisticsvalue_, + static_cast(reinterpret_cast(&statisticstype_) - + reinterpret_cast(&statisticsvalue_)) + sizeof(statisticstype_)); + // @@protoc_insertion_point(copy_constructor:StatisticsMessage.StatisticsData) +} + +void StatisticsMessage_StatisticsData::SharedCtor() { + statisticsvalue_ = 0u; + statisticstype_ = 1; +} + +StatisticsMessage_StatisticsData::~StatisticsMessage_StatisticsData() { + // @@protoc_insertion_point(destructor:StatisticsMessage.StatisticsData) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void StatisticsMessage_StatisticsData::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void StatisticsMessage_StatisticsData::ArenaDtor(void* object) { + StatisticsMessage_StatisticsData* _this = reinterpret_cast< StatisticsMessage_StatisticsData* >(object); + (void)_this; +} +void StatisticsMessage_StatisticsData::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void StatisticsMessage_StatisticsData::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const StatisticsMessage_StatisticsData& StatisticsMessage_StatisticsData::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StatisticsMessage_StatisticsData_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void StatisticsMessage_StatisticsData::Clear() { +// @@protoc_insertion_point(message_clear_start:StatisticsMessage.StatisticsData) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + statisticsvalue_ = 0u; + statisticstype_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* StatisticsMessage_StatisticsData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::StatisticsMessage_StatisticsData_StatisticsType_IsValid(val))) { + _internal_set_statisticstype(static_cast<::StatisticsMessage_StatisticsData_StatisticsType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // required uint32 statisticsValue = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_statisticsvalue(&has_bits); + statisticsvalue_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* StatisticsMessage_StatisticsData::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:StatisticsMessage.StatisticsData) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 1, this->_internal_statisticstype(), target); + } + + // required uint32 statisticsValue = 2; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_statisticsvalue(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:StatisticsMessage.StatisticsData) + return target; +} + +size_t StatisticsMessage_StatisticsData::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:StatisticsMessage.StatisticsData) + size_t total_size = 0; + + if (_internal_has_statisticsvalue()) { + // required uint32 statisticsValue = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_statisticsvalue()); + } + + if (_internal_has_statisticstype()) { + // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_statisticstype()); + } + + return total_size; +} +size_t StatisticsMessage_StatisticsData::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:StatisticsMessage.StatisticsData) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 statisticsValue = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_statisticsvalue()); + + // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_statisticstype()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StatisticsMessage_StatisticsData::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void StatisticsMessage_StatisticsData::MergeFrom(const StatisticsMessage_StatisticsData& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:StatisticsMessage.StatisticsData) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + statisticsvalue_ = from.statisticsvalue_; + } + if (cached_has_bits & 0x00000002u) { + statisticstype_ = from.statisticstype_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void StatisticsMessage_StatisticsData::CopyFrom(const StatisticsMessage_StatisticsData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:StatisticsMessage.StatisticsData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StatisticsMessage_StatisticsData::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void StatisticsMessage_StatisticsData::InternalSwap(StatisticsMessage_StatisticsData* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(statisticsvalue_, other->statisticsvalue_); + swap(statisticstype_, other->statisticstype_); +} + +std::string StatisticsMessage_StatisticsData::GetTypeName() const { + return "StatisticsMessage.StatisticsData"; +} + + +// =================================================================== + +void StatisticsMessage::InitAsDefaultInstance() { +} +class StatisticsMessage::_Internal { + public: +}; + +StatisticsMessage::StatisticsMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena), + statisticsdata_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:StatisticsMessage) +} +StatisticsMessage::StatisticsMessage(const StatisticsMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + statisticsdata_(from.statisticsdata_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:StatisticsMessage) +} + +void StatisticsMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StatisticsMessage_pokerth_2eproto.base); +} + +StatisticsMessage::~StatisticsMessage() { + // @@protoc_insertion_point(destructor:StatisticsMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void StatisticsMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void StatisticsMessage::ArenaDtor(void* object) { + StatisticsMessage* _this = reinterpret_cast< StatisticsMessage* >(object); + (void)_this; +} +void StatisticsMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void StatisticsMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const StatisticsMessage& StatisticsMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StatisticsMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void StatisticsMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:StatisticsMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + statisticsdata_.Clear(); + _internal_metadata_.Clear(); +} + +const char* StatisticsMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .StatisticsMessage.StatisticsData statisticsData = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_statisticsdata(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* StatisticsMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:StatisticsMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .StatisticsMessage.StatisticsData statisticsData = 1; + for (unsigned int i = 0, + n = static_cast(this->_internal_statisticsdata_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_statisticsdata(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:StatisticsMessage) + return target; +} + +size_t StatisticsMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:StatisticsMessage) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .StatisticsMessage.StatisticsData statisticsData = 1; + total_size += 1UL * this->_internal_statisticsdata_size(); + for (const auto& msg : this->statisticsdata_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StatisticsMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void StatisticsMessage::MergeFrom(const StatisticsMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:StatisticsMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + statisticsdata_.MergeFrom(from.statisticsdata_); +} + +void StatisticsMessage::CopyFrom(const StatisticsMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:StatisticsMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StatisticsMessage::IsInitialized() const { + if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(statisticsdata_)) return false; + return true; +} + +void StatisticsMessage::InternalSwap(StatisticsMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + statisticsdata_.InternalSwap(&other->statisticsdata_); +} + +std::string StatisticsMessage::GetTypeName() const { + return "StatisticsMessage"; +} + + +// =================================================================== + +void ChatRequestMessage::InitAsDefaultInstance() { +} +class ChatRequestMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_targetgameid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_targetplayerid(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_chattext(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +ChatRequestMessage::ChatRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:ChatRequestMessage) +} +ChatRequestMessage::ChatRequestMessage(const ChatRequestMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + chattext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_chattext()) { + chattext_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_chattext(), + GetArena()); + } + ::memcpy(&targetgameid_, &from.targetgameid_, + static_cast(reinterpret_cast(&targetplayerid_) - + reinterpret_cast(&targetgameid_)) + sizeof(targetplayerid_)); + // @@protoc_insertion_point(copy_constructor:ChatRequestMessage) +} + +void ChatRequestMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ChatRequestMessage_pokerth_2eproto.base); + chattext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&targetgameid_, 0, static_cast( + reinterpret_cast(&targetplayerid_) - + reinterpret_cast(&targetgameid_)) + sizeof(targetplayerid_)); +} + +ChatRequestMessage::~ChatRequestMessage() { + // @@protoc_insertion_point(destructor:ChatRequestMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void ChatRequestMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + chattext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ChatRequestMessage::ArenaDtor(void* object) { + ChatRequestMessage* _this = reinterpret_cast< ChatRequestMessage* >(object); + (void)_this; +} +void ChatRequestMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ChatRequestMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ChatRequestMessage& ChatRequestMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ChatRequestMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void ChatRequestMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:ChatRequestMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + chattext_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000006u) { + ::memset(&targetgameid_, 0, static_cast( + reinterpret_cast(&targetplayerid_) - + reinterpret_cast(&targetgameid_)) + sizeof(targetplayerid_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* ChatRequestMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // optional uint32 targetGameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_targetgameid(&has_bits); + targetgameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional uint32 targetPlayerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_targetplayerid(&has_bits); + targetplayerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required string chatText = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_chattext(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ChatRequestMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:ChatRequestMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 targetGameId = 1; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_targetgameid(), target); + } + + // optional uint32 targetPlayerId = 2; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_targetplayerid(), target); + } + + // required string chatText = 3; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteStringMaybeAliased( + 3, this->_internal_chattext(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:ChatRequestMessage) + return target; +} + +size_t ChatRequestMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:ChatRequestMessage) + size_t total_size = 0; + + // required string chatText = 3; + if (_internal_has_chattext()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_chattext()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000006u) { + // optional uint32 targetGameId = 1; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_targetgameid()); + } + + // optional uint32 targetPlayerId = 2; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_targetplayerid()); + } + + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ChatRequestMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void ChatRequestMessage::MergeFrom(const ChatRequestMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:ChatRequestMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + _internal_set_chattext(from._internal_chattext()); + } + if (cached_has_bits & 0x00000002u) { + targetgameid_ = from.targetgameid_; + } + if (cached_has_bits & 0x00000004u) { + targetplayerid_ = from.targetplayerid_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void ChatRequestMessage::CopyFrom(const ChatRequestMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:ChatRequestMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ChatRequestMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void ChatRequestMessage::InternalSwap(ChatRequestMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + chattext_.Swap(&other->chattext_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ChatRequestMessage, targetplayerid_) + + sizeof(ChatRequestMessage::targetplayerid_) + - PROTOBUF_FIELD_OFFSET(ChatRequestMessage, targetgameid_)>( + reinterpret_cast(&targetgameid_), + reinterpret_cast(&other->targetgameid_)); +} + +std::string ChatRequestMessage::GetTypeName() const { + return "ChatRequestMessage"; +} + + +// =================================================================== + +void ChatMessage::InitAsDefaultInstance() { +} +class ChatMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_gameid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_playerid(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_chattype(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_chattext(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000009) ^ 0x00000009) != 0; + } +}; + +ChatMessage::ChatMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:ChatMessage) +} +ChatMessage::ChatMessage(const ChatMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + chattext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_chattext()) { + chattext_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_chattext(), + GetArena()); + } + ::memcpy(&gameid_, &from.gameid_, + static_cast(reinterpret_cast(&chattype_) - + reinterpret_cast(&gameid_)) + sizeof(chattype_)); + // @@protoc_insertion_point(copy_constructor:ChatMessage) +} + +void ChatMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ChatMessage_pokerth_2eproto.base); + chattext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&chattype_) - + reinterpret_cast(&gameid_)) + sizeof(chattype_)); +} + +ChatMessage::~ChatMessage() { + // @@protoc_insertion_point(destructor:ChatMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void ChatMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + chattext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ChatMessage::ArenaDtor(void* object) { + ChatMessage* _this = reinterpret_cast< ChatMessage* >(object); + (void)_this; +} +void ChatMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ChatMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ChatMessage& ChatMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ChatMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void ChatMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:ChatMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + chattext_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x0000000eu) { + ::memset(&gameid_, 0, static_cast( + reinterpret_cast(&chattype_) - + reinterpret_cast(&gameid_)) + sizeof(chattype_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* ChatMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // optional uint32 gameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_gameid(&has_bits); + gameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional uint32 playerId = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_playerid(&has_bits); + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .ChatMessage.ChatType chatType = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::ChatMessage_ChatType_IsValid(val))) { + _internal_set_chattype(static_cast<::ChatMessage_ChatType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // required string chatText = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_chattext(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ChatMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:ChatMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 gameId = 1; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_gameid(), target); + } + + // optional uint32 playerId = 2; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_playerid(), target); + } + + // required .ChatMessage.ChatType chatType = 3; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 3, this->_internal_chattype(), target); + } + + // required string chatText = 4; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteStringMaybeAliased( + 4, this->_internal_chattext(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:ChatMessage) + return target; +} + +size_t ChatMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:ChatMessage) + size_t total_size = 0; + + if (_internal_has_chattext()) { + // required string chatText = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_chattext()); + } + + if (_internal_has_chattype()) { + // required .ChatMessage.ChatType chatType = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_chattype()); + } + + return total_size; +} +size_t ChatMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:ChatMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000009) ^ 0x00000009) == 0) { // All required fields are present. + // required string chatText = 4; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_chattext()); + + // required .ChatMessage.ChatType chatType = 3; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_chattype()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000006u) { + // optional uint32 gameId = 1; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_gameid()); + } + + // optional uint32 playerId = 2; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_playerid()); + } + + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ChatMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void ChatMessage::MergeFrom(const ChatMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:ChatMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { + if (cached_has_bits & 0x00000001u) { + _internal_set_chattext(from._internal_chattext()); + } + if (cached_has_bits & 0x00000002u) { + gameid_ = from.gameid_; + } + if (cached_has_bits & 0x00000004u) { + playerid_ = from.playerid_; + } + if (cached_has_bits & 0x00000008u) { + chattype_ = from.chattype_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void ChatMessage::CopyFrom(const ChatMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:ChatMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ChatMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void ChatMessage::InternalSwap(ChatMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + chattext_.Swap(&other->chattext_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ChatMessage, chattype_) + + sizeof(ChatMessage::chattype_) + - PROTOBUF_FIELD_OFFSET(ChatMessage, gameid_)>( + reinterpret_cast(&gameid_), + reinterpret_cast(&other->gameid_)); +} + +std::string ChatMessage::GetTypeName() const { + return "ChatMessage"; +} + + +// =================================================================== + +void ChatRejectMessage::InitAsDefaultInstance() { +} +class ChatRejectMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_chattext(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +ChatRejectMessage::ChatRejectMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:ChatRejectMessage) +} +ChatRejectMessage::ChatRejectMessage(const ChatRejectMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + chattext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_chattext()) { + chattext_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_chattext(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:ChatRejectMessage) +} + +void ChatRejectMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ChatRejectMessage_pokerth_2eproto.base); + chattext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +ChatRejectMessage::~ChatRejectMessage() { + // @@protoc_insertion_point(destructor:ChatRejectMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void ChatRejectMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + chattext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ChatRejectMessage::ArenaDtor(void* object) { + ChatRejectMessage* _this = reinterpret_cast< ChatRejectMessage* >(object); + (void)_this; +} +void ChatRejectMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ChatRejectMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ChatRejectMessage& ChatRejectMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ChatRejectMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void ChatRejectMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:ChatRejectMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + chattext_.ClearNonDefaultToEmpty(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* ChatRejectMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required string chatText = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_chattext(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ChatRejectMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:ChatRejectMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required string chatText = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteStringMaybeAliased( + 1, this->_internal_chattext(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:ChatRejectMessage) + return target; +} + +size_t ChatRejectMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:ChatRejectMessage) + size_t total_size = 0; + + // required string chatText = 1; + if (_internal_has_chattext()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_chattext()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ChatRejectMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void ChatRejectMessage::MergeFrom(const ChatRejectMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:ChatRejectMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_chattext()) { + _internal_set_chattext(from._internal_chattext()); + } +} + +void ChatRejectMessage::CopyFrom(const ChatRejectMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:ChatRejectMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ChatRejectMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void ChatRejectMessage::InternalSwap(ChatRejectMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + chattext_.Swap(&other->chattext_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +std::string ChatRejectMessage::GetTypeName() const { + return "ChatRejectMessage"; +} + + +// =================================================================== + +void DialogMessage::InitAsDefaultInstance() { +} +class DialogMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_notificationtext(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +DialogMessage::DialogMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:DialogMessage) +} +DialogMessage::DialogMessage(const DialogMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + notificationtext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_notificationtext()) { + notificationtext_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_notificationtext(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:DialogMessage) +} + +void DialogMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DialogMessage_pokerth_2eproto.base); + notificationtext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +DialogMessage::~DialogMessage() { + // @@protoc_insertion_point(destructor:DialogMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void DialogMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + notificationtext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void DialogMessage::ArenaDtor(void* object) { + DialogMessage* _this = reinterpret_cast< DialogMessage* >(object); + (void)_this; +} +void DialogMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void DialogMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DialogMessage& DialogMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DialogMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void DialogMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:DialogMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + notificationtext_.ClearNonDefaultToEmpty(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* DialogMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required string notificationText = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_notificationtext(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* DialogMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:DialogMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required string notificationText = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteStringMaybeAliased( + 1, this->_internal_notificationtext(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:DialogMessage) + return target; +} + +size_t DialogMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:DialogMessage) + size_t total_size = 0; + + // required string notificationText = 1; + if (_internal_has_notificationtext()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_notificationtext()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DialogMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void DialogMessage::MergeFrom(const DialogMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:DialogMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_notificationtext()) { + _internal_set_notificationtext(from._internal_notificationtext()); + } +} + +void DialogMessage::CopyFrom(const DialogMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:DialogMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DialogMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void DialogMessage::InternalSwap(DialogMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + notificationtext_.Swap(&other->notificationtext_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +std::string DialogMessage::GetTypeName() const { + return "DialogMessage"; +} + + +// =================================================================== + +void TimeoutWarningMessage::InitAsDefaultInstance() { +} +class TimeoutWarningMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_timeoutreason(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_remainingseconds(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +TimeoutWarningMessage::TimeoutWarningMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:TimeoutWarningMessage) +} +TimeoutWarningMessage::TimeoutWarningMessage(const TimeoutWarningMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&timeoutreason_, &from.timeoutreason_, + static_cast(reinterpret_cast(&remainingseconds_) - + reinterpret_cast(&timeoutreason_)) + sizeof(remainingseconds_)); + // @@protoc_insertion_point(copy_constructor:TimeoutWarningMessage) +} + +void TimeoutWarningMessage::SharedCtor() { + ::memset(&timeoutreason_, 0, static_cast( + reinterpret_cast(&remainingseconds_) - + reinterpret_cast(&timeoutreason_)) + sizeof(remainingseconds_)); +} + +TimeoutWarningMessage::~TimeoutWarningMessage() { + // @@protoc_insertion_point(destructor:TimeoutWarningMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void TimeoutWarningMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void TimeoutWarningMessage::ArenaDtor(void* object) { + TimeoutWarningMessage* _this = reinterpret_cast< TimeoutWarningMessage* >(object); + (void)_this; +} +void TimeoutWarningMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void TimeoutWarningMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TimeoutWarningMessage& TimeoutWarningMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TimeoutWarningMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void TimeoutWarningMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:TimeoutWarningMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&timeoutreason_, 0, static_cast( + reinterpret_cast(&remainingseconds_) - + reinterpret_cast(&timeoutreason_)) + sizeof(remainingseconds_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* TimeoutWarningMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::TimeoutWarningMessage_TimeoutReason_IsValid(val))) { + _internal_set_timeoutreason(static_cast<::TimeoutWarningMessage_TimeoutReason>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // required uint32 remainingSeconds = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_remainingseconds(&has_bits); + remainingseconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* TimeoutWarningMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:TimeoutWarningMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 1, this->_internal_timeoutreason(), target); + } + + // required uint32 remainingSeconds = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_remainingseconds(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:TimeoutWarningMessage) + return target; +} + +size_t TimeoutWarningMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:TimeoutWarningMessage) + size_t total_size = 0; + + if (_internal_has_timeoutreason()) { + // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_timeoutreason()); + } + + if (_internal_has_remainingseconds()) { + // required uint32 remainingSeconds = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_remainingseconds()); + } + + return total_size; +} +size_t TimeoutWarningMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:TimeoutWarningMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_timeoutreason()); + + // required uint32 remainingSeconds = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_remainingseconds()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TimeoutWarningMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void TimeoutWarningMessage::MergeFrom(const TimeoutWarningMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:TimeoutWarningMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + timeoutreason_ = from.timeoutreason_; + } + if (cached_has_bits & 0x00000002u) { + remainingseconds_ = from.remainingseconds_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TimeoutWarningMessage::CopyFrom(const TimeoutWarningMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:TimeoutWarningMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TimeoutWarningMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void TimeoutWarningMessage::InternalSwap(TimeoutWarningMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(TimeoutWarningMessage, remainingseconds_) + + sizeof(TimeoutWarningMessage::remainingseconds_) + - PROTOBUF_FIELD_OFFSET(TimeoutWarningMessage, timeoutreason_)>( + reinterpret_cast(&timeoutreason_), + reinterpret_cast(&other->timeoutreason_)); +} + +std::string TimeoutWarningMessage::GetTypeName() const { + return "TimeoutWarningMessage"; +} + + +// =================================================================== + +void ResetTimeoutMessage::InitAsDefaultInstance() { +} +class ResetTimeoutMessage::_Internal { + public: +}; + +ResetTimeoutMessage::ResetTimeoutMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:ResetTimeoutMessage) +} +ResetTimeoutMessage::ResetTimeoutMessage(const ResetTimeoutMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite() { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:ResetTimeoutMessage) +} + +void ResetTimeoutMessage::SharedCtor() { +} + +ResetTimeoutMessage::~ResetTimeoutMessage() { + // @@protoc_insertion_point(destructor:ResetTimeoutMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void ResetTimeoutMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void ResetTimeoutMessage::ArenaDtor(void* object) { + ResetTimeoutMessage* _this = reinterpret_cast< ResetTimeoutMessage* >(object); + (void)_this; +} +void ResetTimeoutMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ResetTimeoutMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ResetTimeoutMessage& ResetTimeoutMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ResetTimeoutMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void ResetTimeoutMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:ResetTimeoutMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +const char* ResetTimeoutMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ResetTimeoutMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:ResetTimeoutMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:ResetTimeoutMessage) + return target; +} + +size_t ResetTimeoutMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:ResetTimeoutMessage) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ResetTimeoutMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void ResetTimeoutMessage::MergeFrom(const ResetTimeoutMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:ResetTimeoutMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void ResetTimeoutMessage::CopyFrom(const ResetTimeoutMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:ResetTimeoutMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResetTimeoutMessage::IsInitialized() const { + return true; +} + +void ResetTimeoutMessage::InternalSwap(ResetTimeoutMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +std::string ResetTimeoutMessage::GetTypeName() const { + return "ResetTimeoutMessage"; +} + + +// =================================================================== + +void ReportAvatarMessage::InitAsDefaultInstance() { +} +class ReportAvatarMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_reportedplayerid(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_reportedavatarhash(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +ReportAvatarMessage::ReportAvatarMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:ReportAvatarMessage) +} +ReportAvatarMessage::ReportAvatarMessage(const ReportAvatarMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + reportedavatarhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_reportedavatarhash()) { + reportedavatarhash_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_reportedavatarhash(), + GetArena()); + } + reportedplayerid_ = from.reportedplayerid_; + // @@protoc_insertion_point(copy_constructor:ReportAvatarMessage) +} + +void ReportAvatarMessage::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ReportAvatarMessage_pokerth_2eproto.base); + reportedavatarhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + reportedplayerid_ = 0u; +} + +ReportAvatarMessage::~ReportAvatarMessage() { + // @@protoc_insertion_point(destructor:ReportAvatarMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void ReportAvatarMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + reportedavatarhash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ReportAvatarMessage::ArenaDtor(void* object) { + ReportAvatarMessage* _this = reinterpret_cast< ReportAvatarMessage* >(object); + (void)_this; +} +void ReportAvatarMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ReportAvatarMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ReportAvatarMessage& ReportAvatarMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ReportAvatarMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void ReportAvatarMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:ReportAvatarMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + reportedavatarhash_.ClearNonDefaultToEmpty(); + } + reportedplayerid_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* ReportAvatarMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 reportedPlayerId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_reportedplayerid(&has_bits); + reportedplayerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required bytes reportedAvatarHash = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_reportedavatarhash(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ReportAvatarMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:ReportAvatarMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 reportedPlayerId = 1; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_reportedplayerid(), target); + } + + // required bytes reportedAvatarHash = 2; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteBytesMaybeAliased( + 2, this->_internal_reportedavatarhash(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:ReportAvatarMessage) + return target; +} + +size_t ReportAvatarMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:ReportAvatarMessage) + size_t total_size = 0; + + if (_internal_has_reportedavatarhash()) { + // required bytes reportedAvatarHash = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_reportedavatarhash()); + } + + if (_internal_has_reportedplayerid()) { + // required uint32 reportedPlayerId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_reportedplayerid()); + } + + return total_size; +} +size_t ReportAvatarMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:ReportAvatarMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required bytes reportedAvatarHash = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_reportedavatarhash()); + + // required uint32 reportedPlayerId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_reportedplayerid()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ReportAvatarMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void ReportAvatarMessage::MergeFrom(const ReportAvatarMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:ReportAvatarMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + _internal_set_reportedavatarhash(from._internal_reportedavatarhash()); + } + if (cached_has_bits & 0x00000002u) { + reportedplayerid_ = from.reportedplayerid_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void ReportAvatarMessage::CopyFrom(const ReportAvatarMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:ReportAvatarMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReportAvatarMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void ReportAvatarMessage::InternalSwap(ReportAvatarMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + reportedavatarhash_.Swap(&other->reportedavatarhash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(reportedplayerid_, other->reportedplayerid_); +} + +std::string ReportAvatarMessage::GetTypeName() const { + return "ReportAvatarMessage"; +} + + +// =================================================================== + +void ReportAvatarAckMessage::InitAsDefaultInstance() { +} +class ReportAvatarAckMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_reportedplayerid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_reportavatarresult(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +ReportAvatarAckMessage::ReportAvatarAckMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:ReportAvatarAckMessage) +} +ReportAvatarAckMessage::ReportAvatarAckMessage(const ReportAvatarAckMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&reportedplayerid_, &from.reportedplayerid_, + static_cast(reinterpret_cast(&reportavatarresult_) - + reinterpret_cast(&reportedplayerid_)) + sizeof(reportavatarresult_)); + // @@protoc_insertion_point(copy_constructor:ReportAvatarAckMessage) +} + +void ReportAvatarAckMessage::SharedCtor() { + ::memset(&reportedplayerid_, 0, static_cast( + reinterpret_cast(&reportavatarresult_) - + reinterpret_cast(&reportedplayerid_)) + sizeof(reportavatarresult_)); +} + +ReportAvatarAckMessage::~ReportAvatarAckMessage() { + // @@protoc_insertion_point(destructor:ReportAvatarAckMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void ReportAvatarAckMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void ReportAvatarAckMessage::ArenaDtor(void* object) { + ReportAvatarAckMessage* _this = reinterpret_cast< ReportAvatarAckMessage* >(object); + (void)_this; +} +void ReportAvatarAckMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ReportAvatarAckMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ReportAvatarAckMessage& ReportAvatarAckMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ReportAvatarAckMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void ReportAvatarAckMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:ReportAvatarAckMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&reportedplayerid_, 0, static_cast( + reinterpret_cast(&reportavatarresult_) - + reinterpret_cast(&reportedplayerid_)) + sizeof(reportavatarresult_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* ReportAvatarAckMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 reportedPlayerId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_reportedplayerid(&has_bits); + reportedplayerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::ReportAvatarAckMessage_ReportAvatarResult_IsValid(val))) { + _internal_set_reportavatarresult(static_cast<::ReportAvatarAckMessage_ReportAvatarResult>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ReportAvatarAckMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:ReportAvatarAckMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 reportedPlayerId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_reportedplayerid(), target); + } + + // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_reportavatarresult(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:ReportAvatarAckMessage) + return target; +} + +size_t ReportAvatarAckMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:ReportAvatarAckMessage) + size_t total_size = 0; + + if (_internal_has_reportedplayerid()) { + // required uint32 reportedPlayerId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_reportedplayerid()); + } + + if (_internal_has_reportavatarresult()) { + // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_reportavatarresult()); + } + + return total_size; +} +size_t ReportAvatarAckMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:ReportAvatarAckMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 reportedPlayerId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_reportedplayerid()); + + // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_reportavatarresult()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ReportAvatarAckMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void ReportAvatarAckMessage::MergeFrom(const ReportAvatarAckMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:ReportAvatarAckMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + reportedplayerid_ = from.reportedplayerid_; + } + if (cached_has_bits & 0x00000002u) { + reportavatarresult_ = from.reportavatarresult_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void ReportAvatarAckMessage::CopyFrom(const ReportAvatarAckMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:ReportAvatarAckMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReportAvatarAckMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void ReportAvatarAckMessage::InternalSwap(ReportAvatarAckMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ReportAvatarAckMessage, reportavatarresult_) + + sizeof(ReportAvatarAckMessage::reportavatarresult_) + - PROTOBUF_FIELD_OFFSET(ReportAvatarAckMessage, reportedplayerid_)>( + reinterpret_cast(&reportedplayerid_), + reinterpret_cast(&other->reportedplayerid_)); +} + +std::string ReportAvatarAckMessage::GetTypeName() const { + return "ReportAvatarAckMessage"; +} + + +// =================================================================== + +void ReportGameMessage::InitAsDefaultInstance() { +} +class ReportGameMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_reportedgameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +ReportGameMessage::ReportGameMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:ReportGameMessage) +} +ReportGameMessage::ReportGameMessage(const ReportGameMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + reportedgameid_ = from.reportedgameid_; + // @@protoc_insertion_point(copy_constructor:ReportGameMessage) +} + +void ReportGameMessage::SharedCtor() { + reportedgameid_ = 0u; +} + +ReportGameMessage::~ReportGameMessage() { + // @@protoc_insertion_point(destructor:ReportGameMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void ReportGameMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void ReportGameMessage::ArenaDtor(void* object) { + ReportGameMessage* _this = reinterpret_cast< ReportGameMessage* >(object); + (void)_this; +} +void ReportGameMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ReportGameMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ReportGameMessage& ReportGameMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ReportGameMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void ReportGameMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:ReportGameMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + reportedgameid_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* ReportGameMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 reportedGameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_reportedgameid(&has_bits); + reportedgameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ReportGameMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:ReportGameMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 reportedGameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_reportedgameid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:ReportGameMessage) + return target; +} + +size_t ReportGameMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:ReportGameMessage) + size_t total_size = 0; + + // required uint32 reportedGameId = 1; + if (_internal_has_reportedgameid()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_reportedgameid()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ReportGameMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void ReportGameMessage::MergeFrom(const ReportGameMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:ReportGameMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_reportedgameid()) { + _internal_set_reportedgameid(from._internal_reportedgameid()); + } +} + +void ReportGameMessage::CopyFrom(const ReportGameMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:ReportGameMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReportGameMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void ReportGameMessage::InternalSwap(ReportGameMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(reportedgameid_, other->reportedgameid_); +} + +std::string ReportGameMessage::GetTypeName() const { + return "ReportGameMessage"; +} + + +// =================================================================== + +void ReportGameAckMessage::InitAsDefaultInstance() { +} +class ReportGameAckMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_reportedgameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_reportgameresult(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +ReportGameAckMessage::ReportGameAckMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:ReportGameAckMessage) +} +ReportGameAckMessage::ReportGameAckMessage(const ReportGameAckMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&reportedgameid_, &from.reportedgameid_, + static_cast(reinterpret_cast(&reportgameresult_) - + reinterpret_cast(&reportedgameid_)) + sizeof(reportgameresult_)); + // @@protoc_insertion_point(copy_constructor:ReportGameAckMessage) +} + +void ReportGameAckMessage::SharedCtor() { + ::memset(&reportedgameid_, 0, static_cast( + reinterpret_cast(&reportgameresult_) - + reinterpret_cast(&reportedgameid_)) + sizeof(reportgameresult_)); +} + +ReportGameAckMessage::~ReportGameAckMessage() { + // @@protoc_insertion_point(destructor:ReportGameAckMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void ReportGameAckMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void ReportGameAckMessage::ArenaDtor(void* object) { + ReportGameAckMessage* _this = reinterpret_cast< ReportGameAckMessage* >(object); + (void)_this; +} +void ReportGameAckMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ReportGameAckMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ReportGameAckMessage& ReportGameAckMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ReportGameAckMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void ReportGameAckMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:ReportGameAckMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&reportedgameid_, 0, static_cast( + reinterpret_cast(&reportgameresult_) - + reinterpret_cast(&reportedgameid_)) + sizeof(reportgameresult_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* ReportGameAckMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 reportedGameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_reportedgameid(&has_bits); + reportedgameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::ReportGameAckMessage_ReportGameResult_IsValid(val))) { + _internal_set_reportgameresult(static_cast<::ReportGameAckMessage_ReportGameResult>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ReportGameAckMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:ReportGameAckMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 reportedGameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_reportedgameid(), target); + } + + // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_reportgameresult(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:ReportGameAckMessage) + return target; +} + +size_t ReportGameAckMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:ReportGameAckMessage) + size_t total_size = 0; + + if (_internal_has_reportedgameid()) { + // required uint32 reportedGameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_reportedgameid()); + } + + if (_internal_has_reportgameresult()) { + // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_reportgameresult()); + } + + return total_size; +} +size_t ReportGameAckMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:ReportGameAckMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 reportedGameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_reportedgameid()); + + // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_reportgameresult()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ReportGameAckMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void ReportGameAckMessage::MergeFrom(const ReportGameAckMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:ReportGameAckMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + reportedgameid_ = from.reportedgameid_; + } + if (cached_has_bits & 0x00000002u) { + reportgameresult_ = from.reportgameresult_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void ReportGameAckMessage::CopyFrom(const ReportGameAckMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:ReportGameAckMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReportGameAckMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void ReportGameAckMessage::InternalSwap(ReportGameAckMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ReportGameAckMessage, reportgameresult_) + + sizeof(ReportGameAckMessage::reportgameresult_) + - PROTOBUF_FIELD_OFFSET(ReportGameAckMessage, reportedgameid_)>( + reinterpret_cast(&reportedgameid_), + reinterpret_cast(&other->reportedgameid_)); +} + +std::string ReportGameAckMessage::GetTypeName() const { + return "ReportGameAckMessage"; +} + + +// =================================================================== + +void ErrorMessage::InitAsDefaultInstance() { +} +class ErrorMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_errorreason(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +ErrorMessage::ErrorMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:ErrorMessage) +} +ErrorMessage::ErrorMessage(const ErrorMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + errorreason_ = from.errorreason_; + // @@protoc_insertion_point(copy_constructor:ErrorMessage) +} + +void ErrorMessage::SharedCtor() { + errorreason_ = 0; +} + +ErrorMessage::~ErrorMessage() { + // @@protoc_insertion_point(destructor:ErrorMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void ErrorMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void ErrorMessage::ArenaDtor(void* object) { + ErrorMessage* _this = reinterpret_cast< ErrorMessage* >(object); + (void)_this; +} +void ErrorMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ErrorMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ErrorMessage& ErrorMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ErrorMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void ErrorMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:ErrorMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + errorreason_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* ErrorMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required .ErrorMessage.ErrorReason errorReason = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::ErrorMessage_ErrorReason_IsValid(val))) { + _internal_set_errorreason(static_cast<::ErrorMessage_ErrorReason>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ErrorMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:ErrorMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required .ErrorMessage.ErrorReason errorReason = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 1, this->_internal_errorreason(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:ErrorMessage) + return target; +} + +size_t ErrorMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:ErrorMessage) + size_t total_size = 0; + + // required .ErrorMessage.ErrorReason errorReason = 1; + if (_internal_has_errorreason()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_errorreason()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ErrorMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void ErrorMessage::MergeFrom(const ErrorMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:ErrorMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_errorreason()) { + _internal_set_errorreason(from._internal_errorreason()); + } +} + +void ErrorMessage::CopyFrom(const ErrorMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:ErrorMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ErrorMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void ErrorMessage::InternalSwap(ErrorMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(errorreason_, other->errorreason_); +} + +std::string ErrorMessage::GetTypeName() const { + return "ErrorMessage"; +} + + +// =================================================================== + +void AdminRemoveGameMessage::InitAsDefaultInstance() { +} +class AdminRemoveGameMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_removegameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +AdminRemoveGameMessage::AdminRemoveGameMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:AdminRemoveGameMessage) +} +AdminRemoveGameMessage::AdminRemoveGameMessage(const AdminRemoveGameMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + removegameid_ = from.removegameid_; + // @@protoc_insertion_point(copy_constructor:AdminRemoveGameMessage) +} + +void AdminRemoveGameMessage::SharedCtor() { + removegameid_ = 0u; +} + +AdminRemoveGameMessage::~AdminRemoveGameMessage() { + // @@protoc_insertion_point(destructor:AdminRemoveGameMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void AdminRemoveGameMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void AdminRemoveGameMessage::ArenaDtor(void* object) { + AdminRemoveGameMessage* _this = reinterpret_cast< AdminRemoveGameMessage* >(object); + (void)_this; +} +void AdminRemoveGameMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AdminRemoveGameMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AdminRemoveGameMessage& AdminRemoveGameMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AdminRemoveGameMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void AdminRemoveGameMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:AdminRemoveGameMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + removegameid_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* AdminRemoveGameMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 removeGameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_removegameid(&has_bits); + removegameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* AdminRemoveGameMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:AdminRemoveGameMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 removeGameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_removegameid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:AdminRemoveGameMessage) + return target; +} + +size_t AdminRemoveGameMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:AdminRemoveGameMessage) + size_t total_size = 0; + + // required uint32 removeGameId = 1; + if (_internal_has_removegameid()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_removegameid()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AdminRemoveGameMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void AdminRemoveGameMessage::MergeFrom(const AdminRemoveGameMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:AdminRemoveGameMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_removegameid()) { + _internal_set_removegameid(from._internal_removegameid()); + } +} + +void AdminRemoveGameMessage::CopyFrom(const AdminRemoveGameMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:AdminRemoveGameMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AdminRemoveGameMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void AdminRemoveGameMessage::InternalSwap(AdminRemoveGameMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(removegameid_, other->removegameid_); +} + +std::string AdminRemoveGameMessage::GetTypeName() const { + return "AdminRemoveGameMessage"; +} + + +// =================================================================== + +void AdminRemoveGameAckMessage::InitAsDefaultInstance() { +} +class AdminRemoveGameAckMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_removegameid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_removegameresult(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +AdminRemoveGameAckMessage::AdminRemoveGameAckMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:AdminRemoveGameAckMessage) +} +AdminRemoveGameAckMessage::AdminRemoveGameAckMessage(const AdminRemoveGameAckMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&removegameid_, &from.removegameid_, + static_cast(reinterpret_cast(&removegameresult_) - + reinterpret_cast(&removegameid_)) + sizeof(removegameresult_)); + // @@protoc_insertion_point(copy_constructor:AdminRemoveGameAckMessage) +} + +void AdminRemoveGameAckMessage::SharedCtor() { + ::memset(&removegameid_, 0, static_cast( + reinterpret_cast(&removegameresult_) - + reinterpret_cast(&removegameid_)) + sizeof(removegameresult_)); +} + +AdminRemoveGameAckMessage::~AdminRemoveGameAckMessage() { + // @@protoc_insertion_point(destructor:AdminRemoveGameAckMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void AdminRemoveGameAckMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void AdminRemoveGameAckMessage::ArenaDtor(void* object) { + AdminRemoveGameAckMessage* _this = reinterpret_cast< AdminRemoveGameAckMessage* >(object); + (void)_this; +} +void AdminRemoveGameAckMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AdminRemoveGameAckMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AdminRemoveGameAckMessage& AdminRemoveGameAckMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AdminRemoveGameAckMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void AdminRemoveGameAckMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:AdminRemoveGameAckMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&removegameid_, 0, static_cast( + reinterpret_cast(&removegameresult_) - + reinterpret_cast(&removegameid_)) + sizeof(removegameresult_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* AdminRemoveGameAckMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 removeGameId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_removegameid(&has_bits); + removegameid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::AdminRemoveGameAckMessage_AdminRemoveGameResult_IsValid(val))) { + _internal_set_removegameresult(static_cast<::AdminRemoveGameAckMessage_AdminRemoveGameResult>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* AdminRemoveGameAckMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:AdminRemoveGameAckMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 removeGameId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_removegameid(), target); + } + + // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_removegameresult(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:AdminRemoveGameAckMessage) + return target; +} + +size_t AdminRemoveGameAckMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:AdminRemoveGameAckMessage) + size_t total_size = 0; + + if (_internal_has_removegameid()) { + // required uint32 removeGameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_removegameid()); + } + + if (_internal_has_removegameresult()) { + // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_removegameresult()); + } + + return total_size; +} +size_t AdminRemoveGameAckMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:AdminRemoveGameAckMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 removeGameId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_removegameid()); + + // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_removegameresult()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AdminRemoveGameAckMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void AdminRemoveGameAckMessage::MergeFrom(const AdminRemoveGameAckMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:AdminRemoveGameAckMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + removegameid_ = from.removegameid_; + } + if (cached_has_bits & 0x00000002u) { + removegameresult_ = from.removegameresult_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void AdminRemoveGameAckMessage::CopyFrom(const AdminRemoveGameAckMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:AdminRemoveGameAckMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AdminRemoveGameAckMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void AdminRemoveGameAckMessage::InternalSwap(AdminRemoveGameAckMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AdminRemoveGameAckMessage, removegameresult_) + + sizeof(AdminRemoveGameAckMessage::removegameresult_) + - PROTOBUF_FIELD_OFFSET(AdminRemoveGameAckMessage, removegameid_)>( + reinterpret_cast(&removegameid_), + reinterpret_cast(&other->removegameid_)); +} + +std::string AdminRemoveGameAckMessage::GetTypeName() const { + return "AdminRemoveGameAckMessage"; +} + + +// =================================================================== + +void AdminBanPlayerMessage::InitAsDefaultInstance() { +} +class AdminBanPlayerMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_banplayerid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; + } +}; + +AdminBanPlayerMessage::AdminBanPlayerMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:AdminBanPlayerMessage) +} +AdminBanPlayerMessage::AdminBanPlayerMessage(const AdminBanPlayerMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + banplayerid_ = from.banplayerid_; + // @@protoc_insertion_point(copy_constructor:AdminBanPlayerMessage) +} + +void AdminBanPlayerMessage::SharedCtor() { + banplayerid_ = 0u; +} + +AdminBanPlayerMessage::~AdminBanPlayerMessage() { + // @@protoc_insertion_point(destructor:AdminBanPlayerMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void AdminBanPlayerMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void AdminBanPlayerMessage::ArenaDtor(void* object) { + AdminBanPlayerMessage* _this = reinterpret_cast< AdminBanPlayerMessage* >(object); + (void)_this; +} +void AdminBanPlayerMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AdminBanPlayerMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AdminBanPlayerMessage& AdminBanPlayerMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AdminBanPlayerMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void AdminBanPlayerMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:AdminBanPlayerMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + banplayerid_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* AdminBanPlayerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 banPlayerId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_banplayerid(&has_bits); + banplayerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* AdminBanPlayerMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:AdminBanPlayerMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 banPlayerId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_banplayerid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:AdminBanPlayerMessage) + return target; +} + +size_t AdminBanPlayerMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:AdminBanPlayerMessage) + size_t total_size = 0; + + // required uint32 banPlayerId = 1; + if (_internal_has_banplayerid()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_banplayerid()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AdminBanPlayerMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void AdminBanPlayerMessage::MergeFrom(const AdminBanPlayerMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:AdminBanPlayerMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_banplayerid()) { + _internal_set_banplayerid(from._internal_banplayerid()); + } +} + +void AdminBanPlayerMessage::CopyFrom(const AdminBanPlayerMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:AdminBanPlayerMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AdminBanPlayerMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void AdminBanPlayerMessage::InternalSwap(AdminBanPlayerMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(banplayerid_, other->banplayerid_); +} + +std::string AdminBanPlayerMessage::GetTypeName() const { + return "AdminBanPlayerMessage"; +} + + +// =================================================================== + +void AdminBanPlayerAckMessage::InitAsDefaultInstance() { +} +class AdminBanPlayerAckMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_banplayerid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_banplayerresult(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; + } +}; + +AdminBanPlayerAckMessage::AdminBanPlayerAckMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:AdminBanPlayerAckMessage) +} +AdminBanPlayerAckMessage::AdminBanPlayerAckMessage(const AdminBanPlayerAckMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&banplayerid_, &from.banplayerid_, + static_cast(reinterpret_cast(&banplayerresult_) - + reinterpret_cast(&banplayerid_)) + sizeof(banplayerresult_)); + // @@protoc_insertion_point(copy_constructor:AdminBanPlayerAckMessage) +} + +void AdminBanPlayerAckMessage::SharedCtor() { + ::memset(&banplayerid_, 0, static_cast( + reinterpret_cast(&banplayerresult_) - + reinterpret_cast(&banplayerid_)) + sizeof(banplayerresult_)); +} + +AdminBanPlayerAckMessage::~AdminBanPlayerAckMessage() { + // @@protoc_insertion_point(destructor:AdminBanPlayerAckMessage) + SharedDtor(); + _internal_metadata_.Delete(); +} + +void AdminBanPlayerAckMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void AdminBanPlayerAckMessage::ArenaDtor(void* object) { + AdminBanPlayerAckMessage* _this = reinterpret_cast< AdminBanPlayerAckMessage* >(object); + (void)_this; +} +void AdminBanPlayerAckMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AdminBanPlayerAckMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AdminBanPlayerAckMessage& AdminBanPlayerAckMessage::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AdminBanPlayerAckMessage_pokerth_2eproto.base); + return *internal_default_instance(); +} + + +void AdminBanPlayerAckMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:AdminBanPlayerAckMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + ::memset(&banplayerid_, 0, static_cast( + reinterpret_cast(&banplayerresult_) - + reinterpret_cast(&banplayerid_)) + sizeof(banplayerresult_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* AdminBanPlayerAckMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + _Internal::HasBits has_bits{}; + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // required uint32 banPlayerId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_banplayerid(&has_bits); + banplayerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::AdminBanPlayerAckMessage_AdminBanPlayerResult_IsValid(val))) { + _internal_set_banplayerresult(static_cast<::AdminBanPlayerAckMessage_AdminBanPlayerResult>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + _has_bits_.Or(has_bits); + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* AdminBanPlayerAckMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:AdminBanPlayerAckMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required uint32 banPlayerId = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_banplayerid(), target); + } + + // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_banplayerresult(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:AdminBanPlayerAckMessage) + return target; +} + +size_t AdminBanPlayerAckMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:AdminBanPlayerAckMessage) + size_t total_size = 0; + + if (_internal_has_banplayerid()) { + // required uint32 banPlayerId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_banplayerid()); + } + + if (_internal_has_banplayerresult()) { + // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_banplayerresult()); + } + + return total_size; +} +size_t AdminBanPlayerAckMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:AdminBanPlayerAckMessage) + size_t total_size = 0; + + if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + // required uint32 banPlayerId = 1; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_banplayerid()); + + // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_banplayerresult()); + + } else { + total_size += RequiredFieldsByteSizeFallback(); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AdminBanPlayerAckMessage::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void AdminBanPlayerAckMessage::MergeFrom(const AdminBanPlayerAckMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:AdminBanPlayerAckMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + banplayerid_ = from.banplayerid_; + } + if (cached_has_bits & 0x00000002u) { + banplayerresult_ = from.banplayerresult_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void AdminBanPlayerAckMessage::CopyFrom(const AdminBanPlayerAckMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:AdminBanPlayerAckMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AdminBanPlayerAckMessage::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void AdminBanPlayerAckMessage::InternalSwap(AdminBanPlayerAckMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AdminBanPlayerAckMessage, banplayerresult_) + + sizeof(AdminBanPlayerAckMessage::banplayerresult_) + - PROTOBUF_FIELD_OFFSET(AdminBanPlayerAckMessage, banplayerid_)>( + reinterpret_cast(&banplayerid_), + reinterpret_cast(&other->banplayerid_)); +} + +std::string AdminBanPlayerAckMessage::GetTypeName() const { + return "AdminBanPlayerAckMessage"; +} + + +// =================================================================== + +void PokerTHMessage::InitAsDefaultInstance() { + ::_PokerTHMessage_default_instance_._instance.get_mutable()->announcemessage_ = const_cast< ::AnnounceMessage*>( + ::AnnounceMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->initmessage_ = const_cast< ::InitMessage*>( + ::InitMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->authserverchallengemessage_ = const_cast< ::AuthServerChallengeMessage*>( + ::AuthServerChallengeMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->authclientresponsemessage_ = const_cast< ::AuthClientResponseMessage*>( + ::AuthClientResponseMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->authserververificationmessage_ = const_cast< ::AuthServerVerificationMessage*>( + ::AuthServerVerificationMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->initackmessage_ = const_cast< ::InitAckMessage*>( + ::InitAckMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->avatarrequestmessage_ = const_cast< ::AvatarRequestMessage*>( + ::AvatarRequestMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->avatarheadermessage_ = const_cast< ::AvatarHeaderMessage*>( + ::AvatarHeaderMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->avatardatamessage_ = const_cast< ::AvatarDataMessage*>( + ::AvatarDataMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->avatarendmessage_ = const_cast< ::AvatarEndMessage*>( + ::AvatarEndMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->unknownavatarmessage_ = const_cast< ::UnknownAvatarMessage*>( + ::UnknownAvatarMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->playerlistmessage_ = const_cast< ::PlayerListMessage*>( + ::PlayerListMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->gamelistnewmessage_ = const_cast< ::GameListNewMessage*>( + ::GameListNewMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->gamelistupdatemessage_ = const_cast< ::GameListUpdateMessage*>( + ::GameListUpdateMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->gamelistplayerjoinedmessage_ = const_cast< ::GameListPlayerJoinedMessage*>( + ::GameListPlayerJoinedMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->gamelistplayerleftmessage_ = const_cast< ::GameListPlayerLeftMessage*>( + ::GameListPlayerLeftMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->gamelistadminchangedmessage_ = const_cast< ::GameListAdminChangedMessage*>( + ::GameListAdminChangedMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->playerinforequestmessage_ = const_cast< ::PlayerInfoRequestMessage*>( + ::PlayerInfoRequestMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->playerinforeplymessage_ = const_cast< ::PlayerInfoReplyMessage*>( + ::PlayerInfoReplyMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->subscriptionrequestmessage_ = const_cast< ::SubscriptionRequestMessage*>( + ::SubscriptionRequestMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->joinexistinggamemessage_ = const_cast< ::JoinExistingGameMessage*>( + ::JoinExistingGameMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->joinnewgamemessage_ = const_cast< ::JoinNewGameMessage*>( + ::JoinNewGameMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->rejoinexistinggamemessage_ = const_cast< ::RejoinExistingGameMessage*>( + ::RejoinExistingGameMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->joingameackmessage_ = const_cast< ::JoinGameAckMessage*>( + ::JoinGameAckMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->joingamefailedmessage_ = const_cast< ::JoinGameFailedMessage*>( + ::JoinGameFailedMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->gameplayerjoinedmessage_ = const_cast< ::GamePlayerJoinedMessage*>( + ::GamePlayerJoinedMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->gameplayerleftmessage_ = const_cast< ::GamePlayerLeftMessage*>( + ::GamePlayerLeftMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->gameadminchangedmessage_ = const_cast< ::GameAdminChangedMessage*>( + ::GameAdminChangedMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->removedfromgamemessage_ = const_cast< ::RemovedFromGameMessage*>( + ::RemovedFromGameMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->kickplayerrequestmessage_ = const_cast< ::KickPlayerRequestMessage*>( + ::KickPlayerRequestMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->leavegamerequestmessage_ = const_cast< ::LeaveGameRequestMessage*>( + ::LeaveGameRequestMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->inviteplayertogamemessage_ = const_cast< ::InvitePlayerToGameMessage*>( + ::InvitePlayerToGameMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->invitenotifymessage_ = const_cast< ::InviteNotifyMessage*>( + ::InviteNotifyMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->rejectgameinvitationmessage_ = const_cast< ::RejectGameInvitationMessage*>( + ::RejectGameInvitationMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->rejectinvnotifymessage_ = const_cast< ::RejectInvNotifyMessage*>( + ::RejectInvNotifyMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->starteventmessage_ = const_cast< ::StartEventMessage*>( + ::StartEventMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->starteventackmessage_ = const_cast< ::StartEventAckMessage*>( + ::StartEventAckMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->gamestartinitialmessage_ = const_cast< ::GameStartInitialMessage*>( + ::GameStartInitialMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->gamestartrejoinmessage_ = const_cast< ::GameStartRejoinMessage*>( + ::GameStartRejoinMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->handstartmessage_ = const_cast< ::HandStartMessage*>( + ::HandStartMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->playersturnmessage_ = const_cast< ::PlayersTurnMessage*>( + ::PlayersTurnMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->myactionrequestmessage_ = const_cast< ::MyActionRequestMessage*>( + ::MyActionRequestMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->youractionrejectedmessage_ = const_cast< ::YourActionRejectedMessage*>( + ::YourActionRejectedMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->playersactiondonemessage_ = const_cast< ::PlayersActionDoneMessage*>( + ::PlayersActionDoneMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->dealflopcardsmessage_ = const_cast< ::DealFlopCardsMessage*>( + ::DealFlopCardsMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->dealturncardmessage_ = const_cast< ::DealTurnCardMessage*>( + ::DealTurnCardMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->dealrivercardmessage_ = const_cast< ::DealRiverCardMessage*>( + ::DealRiverCardMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->allinshowcardsmessage_ = const_cast< ::AllInShowCardsMessage*>( + ::AllInShowCardsMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->endofhandshowcardsmessage_ = const_cast< ::EndOfHandShowCardsMessage*>( + ::EndOfHandShowCardsMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->endofhandhidecardsmessage_ = const_cast< ::EndOfHandHideCardsMessage*>( + ::EndOfHandHideCardsMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->showmycardsrequestmessage_ = const_cast< ::ShowMyCardsRequestMessage*>( + ::ShowMyCardsRequestMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->afterhandshowcardsmessage_ = const_cast< ::AfterHandShowCardsMessage*>( + ::AfterHandShowCardsMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->endofgamemessage_ = const_cast< ::EndOfGameMessage*>( + ::EndOfGameMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->playeridchangedmessage_ = const_cast< ::PlayerIdChangedMessage*>( + ::PlayerIdChangedMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->askkickplayermessage_ = const_cast< ::AskKickPlayerMessage*>( + ::AskKickPlayerMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->askkickdeniedmessage_ = const_cast< ::AskKickDeniedMessage*>( + ::AskKickDeniedMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->startkickpetitionmessage_ = const_cast< ::StartKickPetitionMessage*>( + ::StartKickPetitionMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->votekickrequestmessage_ = const_cast< ::VoteKickRequestMessage*>( + ::VoteKickRequestMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->votekickreplymessage_ = const_cast< ::VoteKickReplyMessage*>( + ::VoteKickReplyMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->kickpetitionupdatemessage_ = const_cast< ::KickPetitionUpdateMessage*>( + ::KickPetitionUpdateMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->endkickpetitionmessage_ = const_cast< ::EndKickPetitionMessage*>( + ::EndKickPetitionMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->statisticsmessage_ = const_cast< ::StatisticsMessage*>( + ::StatisticsMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->chatrequestmessage_ = const_cast< ::ChatRequestMessage*>( + ::ChatRequestMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->chatmessage_ = const_cast< ::ChatMessage*>( + ::ChatMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->chatrejectmessage_ = const_cast< ::ChatRejectMessage*>( + ::ChatRejectMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->dialogmessage_ = const_cast< ::DialogMessage*>( + ::DialogMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->timeoutwarningmessage_ = const_cast< ::TimeoutWarningMessage*>( + ::TimeoutWarningMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->resettimeoutmessage_ = const_cast< ::ResetTimeoutMessage*>( + ::ResetTimeoutMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->reportavatarmessage_ = const_cast< ::ReportAvatarMessage*>( + ::ReportAvatarMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->reportavatarackmessage_ = const_cast< ::ReportAvatarAckMessage*>( + ::ReportAvatarAckMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->reportgamemessage_ = const_cast< ::ReportGameMessage*>( + ::ReportGameMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->reportgameackmessage_ = const_cast< ::ReportGameAckMessage*>( + ::ReportGameAckMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->errormessage_ = const_cast< ::ErrorMessage*>( + ::ErrorMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->adminremovegamemessage_ = const_cast< ::AdminRemoveGameMessage*>( + ::AdminRemoveGameMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->adminremovegameackmessage_ = const_cast< ::AdminRemoveGameAckMessage*>( + ::AdminRemoveGameAckMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->adminbanplayermessage_ = const_cast< ::AdminBanPlayerMessage*>( + ::AdminBanPlayerMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->adminbanplayerackmessage_ = const_cast< ::AdminBanPlayerAckMessage*>( + ::AdminBanPlayerAckMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->gamelistspectatorjoinedmessage_ = const_cast< ::GameListSpectatorJoinedMessage*>( + ::GameListSpectatorJoinedMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->gamelistspectatorleftmessage_ = const_cast< ::GameListSpectatorLeftMessage*>( + ::GameListSpectatorLeftMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->gamespectatorjoinedmessage_ = const_cast< ::GameSpectatorJoinedMessage*>( + ::GameSpectatorJoinedMessage::internal_default_instance()); + ::_PokerTHMessage_default_instance_._instance.get_mutable()->gamespectatorleftmessage_ = const_cast< ::GameSpectatorLeftMessage*>( + ::GameSpectatorLeftMessage::internal_default_instance()); +} +class PokerTHMessage::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_messagetype(HasBits* has_bits) { + (*has_bits)[2] |= 131072u; + } + static const ::AnnounceMessage& announcemessage(const PokerTHMessage* msg); + static void set_has_announcemessage(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::InitMessage& initmessage(const PokerTHMessage* msg); + static void set_has_initmessage(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static const ::AuthServerChallengeMessage& authserverchallengemessage(const PokerTHMessage* msg); + static void set_has_authserverchallengemessage(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static const ::AuthClientResponseMessage& authclientresponsemessage(const PokerTHMessage* msg); + static void set_has_authclientresponsemessage(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static const ::AuthServerVerificationMessage& authserververificationmessage(const PokerTHMessage* msg); + static void set_has_authserververificationmessage(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static const ::InitAckMessage& initackmessage(const PokerTHMessage* msg); + static void set_has_initackmessage(HasBits* has_bits) { + (*has_bits)[0] |= 32u; + } + static const ::AvatarRequestMessage& avatarrequestmessage(const PokerTHMessage* msg); + static void set_has_avatarrequestmessage(HasBits* has_bits) { + (*has_bits)[0] |= 64u; + } + static const ::AvatarHeaderMessage& avatarheadermessage(const PokerTHMessage* msg); + static void set_has_avatarheadermessage(HasBits* has_bits) { + (*has_bits)[0] |= 128u; + } + static const ::AvatarDataMessage& avatardatamessage(const PokerTHMessage* msg); + static void set_has_avatardatamessage(HasBits* has_bits) { + (*has_bits)[0] |= 256u; + } + static const ::AvatarEndMessage& avatarendmessage(const PokerTHMessage* msg); + static void set_has_avatarendmessage(HasBits* has_bits) { + (*has_bits)[0] |= 512u; + } + static const ::UnknownAvatarMessage& unknownavatarmessage(const PokerTHMessage* msg); + static void set_has_unknownavatarmessage(HasBits* has_bits) { + (*has_bits)[0] |= 1024u; + } + static const ::PlayerListMessage& playerlistmessage(const PokerTHMessage* msg); + static void set_has_playerlistmessage(HasBits* has_bits) { + (*has_bits)[0] |= 2048u; + } + static const ::GameListNewMessage& gamelistnewmessage(const PokerTHMessage* msg); + static void set_has_gamelistnewmessage(HasBits* has_bits) { + (*has_bits)[0] |= 4096u; + } + static const ::GameListUpdateMessage& gamelistupdatemessage(const PokerTHMessage* msg); + static void set_has_gamelistupdatemessage(HasBits* has_bits) { + (*has_bits)[0] |= 8192u; + } + static const ::GameListPlayerJoinedMessage& gamelistplayerjoinedmessage(const PokerTHMessage* msg); + static void set_has_gamelistplayerjoinedmessage(HasBits* has_bits) { + (*has_bits)[0] |= 16384u; + } + static const ::GameListPlayerLeftMessage& gamelistplayerleftmessage(const PokerTHMessage* msg); + static void set_has_gamelistplayerleftmessage(HasBits* has_bits) { + (*has_bits)[0] |= 32768u; + } + static const ::GameListAdminChangedMessage& gamelistadminchangedmessage(const PokerTHMessage* msg); + static void set_has_gamelistadminchangedmessage(HasBits* has_bits) { + (*has_bits)[0] |= 65536u; + } + static const ::PlayerInfoRequestMessage& playerinforequestmessage(const PokerTHMessage* msg); + static void set_has_playerinforequestmessage(HasBits* has_bits) { + (*has_bits)[0] |= 131072u; + } + static const ::PlayerInfoReplyMessage& playerinforeplymessage(const PokerTHMessage* msg); + static void set_has_playerinforeplymessage(HasBits* has_bits) { + (*has_bits)[0] |= 262144u; + } + static const ::SubscriptionRequestMessage& subscriptionrequestmessage(const PokerTHMessage* msg); + static void set_has_subscriptionrequestmessage(HasBits* has_bits) { + (*has_bits)[0] |= 524288u; + } + static const ::JoinExistingGameMessage& joinexistinggamemessage(const PokerTHMessage* msg); + static void set_has_joinexistinggamemessage(HasBits* has_bits) { + (*has_bits)[0] |= 1048576u; + } + static const ::JoinNewGameMessage& joinnewgamemessage(const PokerTHMessage* msg); + static void set_has_joinnewgamemessage(HasBits* has_bits) { + (*has_bits)[0] |= 2097152u; + } + static const ::RejoinExistingGameMessage& rejoinexistinggamemessage(const PokerTHMessage* msg); + static void set_has_rejoinexistinggamemessage(HasBits* has_bits) { + (*has_bits)[0] |= 4194304u; + } + static const ::JoinGameAckMessage& joingameackmessage(const PokerTHMessage* msg); + static void set_has_joingameackmessage(HasBits* has_bits) { + (*has_bits)[0] |= 8388608u; + } + static const ::JoinGameFailedMessage& joingamefailedmessage(const PokerTHMessage* msg); + static void set_has_joingamefailedmessage(HasBits* has_bits) { + (*has_bits)[0] |= 16777216u; + } + static const ::GamePlayerJoinedMessage& gameplayerjoinedmessage(const PokerTHMessage* msg); + static void set_has_gameplayerjoinedmessage(HasBits* has_bits) { + (*has_bits)[0] |= 33554432u; + } + static const ::GamePlayerLeftMessage& gameplayerleftmessage(const PokerTHMessage* msg); + static void set_has_gameplayerleftmessage(HasBits* has_bits) { + (*has_bits)[0] |= 67108864u; + } + static const ::GameAdminChangedMessage& gameadminchangedmessage(const PokerTHMessage* msg); + static void set_has_gameadminchangedmessage(HasBits* has_bits) { + (*has_bits)[0] |= 134217728u; + } + static const ::RemovedFromGameMessage& removedfromgamemessage(const PokerTHMessage* msg); + static void set_has_removedfromgamemessage(HasBits* has_bits) { + (*has_bits)[0] |= 268435456u; + } + static const ::KickPlayerRequestMessage& kickplayerrequestmessage(const PokerTHMessage* msg); + static void set_has_kickplayerrequestmessage(HasBits* has_bits) { + (*has_bits)[0] |= 536870912u; + } + static const ::LeaveGameRequestMessage& leavegamerequestmessage(const PokerTHMessage* msg); + static void set_has_leavegamerequestmessage(HasBits* has_bits) { + (*has_bits)[0] |= 1073741824u; + } + static const ::InvitePlayerToGameMessage& inviteplayertogamemessage(const PokerTHMessage* msg); + static void set_has_inviteplayertogamemessage(HasBits* has_bits) { + (*has_bits)[0] |= 2147483648u; + } + static const ::InviteNotifyMessage& invitenotifymessage(const PokerTHMessage* msg); + static void set_has_invitenotifymessage(HasBits* has_bits) { + (*has_bits)[1] |= 1u; + } + static const ::RejectGameInvitationMessage& rejectgameinvitationmessage(const PokerTHMessage* msg); + static void set_has_rejectgameinvitationmessage(HasBits* has_bits) { + (*has_bits)[1] |= 2u; + } + static const ::RejectInvNotifyMessage& rejectinvnotifymessage(const PokerTHMessage* msg); + static void set_has_rejectinvnotifymessage(HasBits* has_bits) { + (*has_bits)[1] |= 4u; + } + static const ::StartEventMessage& starteventmessage(const PokerTHMessage* msg); + static void set_has_starteventmessage(HasBits* has_bits) { + (*has_bits)[1] |= 8u; + } + static const ::StartEventAckMessage& starteventackmessage(const PokerTHMessage* msg); + static void set_has_starteventackmessage(HasBits* has_bits) { + (*has_bits)[1] |= 16u; + } + static const ::GameStartInitialMessage& gamestartinitialmessage(const PokerTHMessage* msg); + static void set_has_gamestartinitialmessage(HasBits* has_bits) { + (*has_bits)[1] |= 32u; + } + static const ::GameStartRejoinMessage& gamestartrejoinmessage(const PokerTHMessage* msg); + static void set_has_gamestartrejoinmessage(HasBits* has_bits) { + (*has_bits)[1] |= 64u; + } + static const ::HandStartMessage& handstartmessage(const PokerTHMessage* msg); + static void set_has_handstartmessage(HasBits* has_bits) { + (*has_bits)[1] |= 128u; + } + static const ::PlayersTurnMessage& playersturnmessage(const PokerTHMessage* msg); + static void set_has_playersturnmessage(HasBits* has_bits) { + (*has_bits)[1] |= 256u; + } + static const ::MyActionRequestMessage& myactionrequestmessage(const PokerTHMessage* msg); + static void set_has_myactionrequestmessage(HasBits* has_bits) { + (*has_bits)[1] |= 512u; + } + static const ::YourActionRejectedMessage& youractionrejectedmessage(const PokerTHMessage* msg); + static void set_has_youractionrejectedmessage(HasBits* has_bits) { + (*has_bits)[1] |= 1024u; + } + static const ::PlayersActionDoneMessage& playersactiondonemessage(const PokerTHMessage* msg); + static void set_has_playersactiondonemessage(HasBits* has_bits) { + (*has_bits)[1] |= 2048u; + } + static const ::DealFlopCardsMessage& dealflopcardsmessage(const PokerTHMessage* msg); + static void set_has_dealflopcardsmessage(HasBits* has_bits) { + (*has_bits)[1] |= 4096u; + } + static const ::DealTurnCardMessage& dealturncardmessage(const PokerTHMessage* msg); + static void set_has_dealturncardmessage(HasBits* has_bits) { + (*has_bits)[1] |= 8192u; + } + static const ::DealRiverCardMessage& dealrivercardmessage(const PokerTHMessage* msg); + static void set_has_dealrivercardmessage(HasBits* has_bits) { + (*has_bits)[1] |= 16384u; + } + static const ::AllInShowCardsMessage& allinshowcardsmessage(const PokerTHMessage* msg); + static void set_has_allinshowcardsmessage(HasBits* has_bits) { + (*has_bits)[1] |= 32768u; + } + static const ::EndOfHandShowCardsMessage& endofhandshowcardsmessage(const PokerTHMessage* msg); + static void set_has_endofhandshowcardsmessage(HasBits* has_bits) { + (*has_bits)[1] |= 65536u; + } + static const ::EndOfHandHideCardsMessage& endofhandhidecardsmessage(const PokerTHMessage* msg); + static void set_has_endofhandhidecardsmessage(HasBits* has_bits) { + (*has_bits)[1] |= 131072u; + } + static const ::ShowMyCardsRequestMessage& showmycardsrequestmessage(const PokerTHMessage* msg); + static void set_has_showmycardsrequestmessage(HasBits* has_bits) { + (*has_bits)[1] |= 262144u; + } + static const ::AfterHandShowCardsMessage& afterhandshowcardsmessage(const PokerTHMessage* msg); + static void set_has_afterhandshowcardsmessage(HasBits* has_bits) { + (*has_bits)[1] |= 524288u; + } + static const ::EndOfGameMessage& endofgamemessage(const PokerTHMessage* msg); + static void set_has_endofgamemessage(HasBits* has_bits) { + (*has_bits)[1] |= 1048576u; + } + static const ::PlayerIdChangedMessage& playeridchangedmessage(const PokerTHMessage* msg); + static void set_has_playeridchangedmessage(HasBits* has_bits) { + (*has_bits)[1] |= 2097152u; + } + static const ::AskKickPlayerMessage& askkickplayermessage(const PokerTHMessage* msg); + static void set_has_askkickplayermessage(HasBits* has_bits) { + (*has_bits)[1] |= 4194304u; + } + static const ::AskKickDeniedMessage& askkickdeniedmessage(const PokerTHMessage* msg); + static void set_has_askkickdeniedmessage(HasBits* has_bits) { + (*has_bits)[1] |= 8388608u; + } + static const ::StartKickPetitionMessage& startkickpetitionmessage(const PokerTHMessage* msg); + static void set_has_startkickpetitionmessage(HasBits* has_bits) { + (*has_bits)[1] |= 16777216u; + } + static const ::VoteKickRequestMessage& votekickrequestmessage(const PokerTHMessage* msg); + static void set_has_votekickrequestmessage(HasBits* has_bits) { + (*has_bits)[1] |= 33554432u; + } + static const ::VoteKickReplyMessage& votekickreplymessage(const PokerTHMessage* msg); + static void set_has_votekickreplymessage(HasBits* has_bits) { + (*has_bits)[1] |= 67108864u; + } + static const ::KickPetitionUpdateMessage& kickpetitionupdatemessage(const PokerTHMessage* msg); + static void set_has_kickpetitionupdatemessage(HasBits* has_bits) { + (*has_bits)[1] |= 134217728u; + } + static const ::EndKickPetitionMessage& endkickpetitionmessage(const PokerTHMessage* msg); + static void set_has_endkickpetitionmessage(HasBits* has_bits) { + (*has_bits)[1] |= 268435456u; + } + static const ::StatisticsMessage& statisticsmessage(const PokerTHMessage* msg); + static void set_has_statisticsmessage(HasBits* has_bits) { + (*has_bits)[1] |= 536870912u; + } + static const ::ChatRequestMessage& chatrequestmessage(const PokerTHMessage* msg); + static void set_has_chatrequestmessage(HasBits* has_bits) { + (*has_bits)[1] |= 1073741824u; + } + static const ::ChatMessage& chatmessage(const PokerTHMessage* msg); + static void set_has_chatmessage(HasBits* has_bits) { + (*has_bits)[1] |= 2147483648u; + } + static const ::ChatRejectMessage& chatrejectmessage(const PokerTHMessage* msg); + static void set_has_chatrejectmessage(HasBits* has_bits) { + (*has_bits)[2] |= 1u; + } + static const ::DialogMessage& dialogmessage(const PokerTHMessage* msg); + static void set_has_dialogmessage(HasBits* has_bits) { + (*has_bits)[2] |= 2u; + } + static const ::TimeoutWarningMessage& timeoutwarningmessage(const PokerTHMessage* msg); + static void set_has_timeoutwarningmessage(HasBits* has_bits) { + (*has_bits)[2] |= 4u; + } + static const ::ResetTimeoutMessage& resettimeoutmessage(const PokerTHMessage* msg); + static void set_has_resettimeoutmessage(HasBits* has_bits) { + (*has_bits)[2] |= 8u; + } + static const ::ReportAvatarMessage& reportavatarmessage(const PokerTHMessage* msg); + static void set_has_reportavatarmessage(HasBits* has_bits) { + (*has_bits)[2] |= 16u; + } + static const ::ReportAvatarAckMessage& reportavatarackmessage(const PokerTHMessage* msg); + static void set_has_reportavatarackmessage(HasBits* has_bits) { + (*has_bits)[2] |= 32u; + } + static const ::ReportGameMessage& reportgamemessage(const PokerTHMessage* msg); + static void set_has_reportgamemessage(HasBits* has_bits) { + (*has_bits)[2] |= 64u; + } + static const ::ReportGameAckMessage& reportgameackmessage(const PokerTHMessage* msg); + static void set_has_reportgameackmessage(HasBits* has_bits) { + (*has_bits)[2] |= 128u; + } + static const ::ErrorMessage& errormessage(const PokerTHMessage* msg); + static void set_has_errormessage(HasBits* has_bits) { + (*has_bits)[2] |= 256u; + } + static const ::AdminRemoveGameMessage& adminremovegamemessage(const PokerTHMessage* msg); + static void set_has_adminremovegamemessage(HasBits* has_bits) { + (*has_bits)[2] |= 512u; + } + static const ::AdminRemoveGameAckMessage& adminremovegameackmessage(const PokerTHMessage* msg); + static void set_has_adminremovegameackmessage(HasBits* has_bits) { + (*has_bits)[2] |= 1024u; + } + static const ::AdminBanPlayerMessage& adminbanplayermessage(const PokerTHMessage* msg); + static void set_has_adminbanplayermessage(HasBits* has_bits) { + (*has_bits)[2] |= 2048u; + } + static const ::AdminBanPlayerAckMessage& adminbanplayerackmessage(const PokerTHMessage* msg); + static void set_has_adminbanplayerackmessage(HasBits* has_bits) { + (*has_bits)[2] |= 4096u; + } + static const ::GameListSpectatorJoinedMessage& gamelistspectatorjoinedmessage(const PokerTHMessage* msg); + static void set_has_gamelistspectatorjoinedmessage(HasBits* has_bits) { + (*has_bits)[2] |= 8192u; + } + static const ::GameListSpectatorLeftMessage& gamelistspectatorleftmessage(const PokerTHMessage* msg); + static void set_has_gamelistspectatorleftmessage(HasBits* has_bits) { + (*has_bits)[2] |= 16384u; + } + static const ::GameSpectatorJoinedMessage& gamespectatorjoinedmessage(const PokerTHMessage* msg); + static void set_has_gamespectatorjoinedmessage(HasBits* has_bits) { + (*has_bits)[2] |= 32768u; + } + static const ::GameSpectatorLeftMessage& gamespectatorleftmessage(const PokerTHMessage* msg); + static void set_has_gamespectatorleftmessage(HasBits* has_bits) { + (*has_bits)[2] |= 65536u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[2] & 0x00020000) ^ 0x00020000) != 0; + } +}; + +const ::AnnounceMessage& +PokerTHMessage::_Internal::announcemessage(const PokerTHMessage* msg) { + return *msg->announcemessage_; +} +const ::InitMessage& +PokerTHMessage::_Internal::initmessage(const PokerTHMessage* msg) { + return *msg->initmessage_; +} +const ::AuthServerChallengeMessage& +PokerTHMessage::_Internal::authserverchallengemessage(const PokerTHMessage* msg) { + return *msg->authserverchallengemessage_; +} +const ::AuthClientResponseMessage& +PokerTHMessage::_Internal::authclientresponsemessage(const PokerTHMessage* msg) { + return *msg->authclientresponsemessage_; +} +const ::AuthServerVerificationMessage& +PokerTHMessage::_Internal::authserververificationmessage(const PokerTHMessage* msg) { + return *msg->authserververificationmessage_; +} +const ::InitAckMessage& +PokerTHMessage::_Internal::initackmessage(const PokerTHMessage* msg) { + return *msg->initackmessage_; +} +const ::AvatarRequestMessage& +PokerTHMessage::_Internal::avatarrequestmessage(const PokerTHMessage* msg) { + return *msg->avatarrequestmessage_; +} +const ::AvatarHeaderMessage& +PokerTHMessage::_Internal::avatarheadermessage(const PokerTHMessage* msg) { + return *msg->avatarheadermessage_; +} +const ::AvatarDataMessage& +PokerTHMessage::_Internal::avatardatamessage(const PokerTHMessage* msg) { + return *msg->avatardatamessage_; +} +const ::AvatarEndMessage& +PokerTHMessage::_Internal::avatarendmessage(const PokerTHMessage* msg) { + return *msg->avatarendmessage_; +} +const ::UnknownAvatarMessage& +PokerTHMessage::_Internal::unknownavatarmessage(const PokerTHMessage* msg) { + return *msg->unknownavatarmessage_; +} +const ::PlayerListMessage& +PokerTHMessage::_Internal::playerlistmessage(const PokerTHMessage* msg) { + return *msg->playerlistmessage_; +} +const ::GameListNewMessage& +PokerTHMessage::_Internal::gamelistnewmessage(const PokerTHMessage* msg) { + return *msg->gamelistnewmessage_; +} +const ::GameListUpdateMessage& +PokerTHMessage::_Internal::gamelistupdatemessage(const PokerTHMessage* msg) { + return *msg->gamelistupdatemessage_; +} +const ::GameListPlayerJoinedMessage& +PokerTHMessage::_Internal::gamelistplayerjoinedmessage(const PokerTHMessage* msg) { + return *msg->gamelistplayerjoinedmessage_; +} +const ::GameListPlayerLeftMessage& +PokerTHMessage::_Internal::gamelistplayerleftmessage(const PokerTHMessage* msg) { + return *msg->gamelistplayerleftmessage_; +} +const ::GameListAdminChangedMessage& +PokerTHMessage::_Internal::gamelistadminchangedmessage(const PokerTHMessage* msg) { + return *msg->gamelistadminchangedmessage_; +} +const ::PlayerInfoRequestMessage& +PokerTHMessage::_Internal::playerinforequestmessage(const PokerTHMessage* msg) { + return *msg->playerinforequestmessage_; +} +const ::PlayerInfoReplyMessage& +PokerTHMessage::_Internal::playerinforeplymessage(const PokerTHMessage* msg) { + return *msg->playerinforeplymessage_; +} +const ::SubscriptionRequestMessage& +PokerTHMessage::_Internal::subscriptionrequestmessage(const PokerTHMessage* msg) { + return *msg->subscriptionrequestmessage_; +} +const ::JoinExistingGameMessage& +PokerTHMessage::_Internal::joinexistinggamemessage(const PokerTHMessage* msg) { + return *msg->joinexistinggamemessage_; +} +const ::JoinNewGameMessage& +PokerTHMessage::_Internal::joinnewgamemessage(const PokerTHMessage* msg) { + return *msg->joinnewgamemessage_; +} +const ::RejoinExistingGameMessage& +PokerTHMessage::_Internal::rejoinexistinggamemessage(const PokerTHMessage* msg) { + return *msg->rejoinexistinggamemessage_; +} +const ::JoinGameAckMessage& +PokerTHMessage::_Internal::joingameackmessage(const PokerTHMessage* msg) { + return *msg->joingameackmessage_; +} +const ::JoinGameFailedMessage& +PokerTHMessage::_Internal::joingamefailedmessage(const PokerTHMessage* msg) { + return *msg->joingamefailedmessage_; +} +const ::GamePlayerJoinedMessage& +PokerTHMessage::_Internal::gameplayerjoinedmessage(const PokerTHMessage* msg) { + return *msg->gameplayerjoinedmessage_; +} +const ::GamePlayerLeftMessage& +PokerTHMessage::_Internal::gameplayerleftmessage(const PokerTHMessage* msg) { + return *msg->gameplayerleftmessage_; +} +const ::GameAdminChangedMessage& +PokerTHMessage::_Internal::gameadminchangedmessage(const PokerTHMessage* msg) { + return *msg->gameadminchangedmessage_; +} +const ::RemovedFromGameMessage& +PokerTHMessage::_Internal::removedfromgamemessage(const PokerTHMessage* msg) { + return *msg->removedfromgamemessage_; +} +const ::KickPlayerRequestMessage& +PokerTHMessage::_Internal::kickplayerrequestmessage(const PokerTHMessage* msg) { + return *msg->kickplayerrequestmessage_; +} +const ::LeaveGameRequestMessage& +PokerTHMessage::_Internal::leavegamerequestmessage(const PokerTHMessage* msg) { + return *msg->leavegamerequestmessage_; +} +const ::InvitePlayerToGameMessage& +PokerTHMessage::_Internal::inviteplayertogamemessage(const PokerTHMessage* msg) { + return *msg->inviteplayertogamemessage_; +} +const ::InviteNotifyMessage& +PokerTHMessage::_Internal::invitenotifymessage(const PokerTHMessage* msg) { + return *msg->invitenotifymessage_; +} +const ::RejectGameInvitationMessage& +PokerTHMessage::_Internal::rejectgameinvitationmessage(const PokerTHMessage* msg) { + return *msg->rejectgameinvitationmessage_; +} +const ::RejectInvNotifyMessage& +PokerTHMessage::_Internal::rejectinvnotifymessage(const PokerTHMessage* msg) { + return *msg->rejectinvnotifymessage_; +} +const ::StartEventMessage& +PokerTHMessage::_Internal::starteventmessage(const PokerTHMessage* msg) { + return *msg->starteventmessage_; +} +const ::StartEventAckMessage& +PokerTHMessage::_Internal::starteventackmessage(const PokerTHMessage* msg) { + return *msg->starteventackmessage_; +} +const ::GameStartInitialMessage& +PokerTHMessage::_Internal::gamestartinitialmessage(const PokerTHMessage* msg) { + return *msg->gamestartinitialmessage_; +} +const ::GameStartRejoinMessage& +PokerTHMessage::_Internal::gamestartrejoinmessage(const PokerTHMessage* msg) { + return *msg->gamestartrejoinmessage_; +} +const ::HandStartMessage& +PokerTHMessage::_Internal::handstartmessage(const PokerTHMessage* msg) { + return *msg->handstartmessage_; +} +const ::PlayersTurnMessage& +PokerTHMessage::_Internal::playersturnmessage(const PokerTHMessage* msg) { + return *msg->playersturnmessage_; +} +const ::MyActionRequestMessage& +PokerTHMessage::_Internal::myactionrequestmessage(const PokerTHMessage* msg) { + return *msg->myactionrequestmessage_; +} +const ::YourActionRejectedMessage& +PokerTHMessage::_Internal::youractionrejectedmessage(const PokerTHMessage* msg) { + return *msg->youractionrejectedmessage_; +} +const ::PlayersActionDoneMessage& +PokerTHMessage::_Internal::playersactiondonemessage(const PokerTHMessage* msg) { + return *msg->playersactiondonemessage_; +} +const ::DealFlopCardsMessage& +PokerTHMessage::_Internal::dealflopcardsmessage(const PokerTHMessage* msg) { + return *msg->dealflopcardsmessage_; +} +const ::DealTurnCardMessage& +PokerTHMessage::_Internal::dealturncardmessage(const PokerTHMessage* msg) { + return *msg->dealturncardmessage_; +} +const ::DealRiverCardMessage& +PokerTHMessage::_Internal::dealrivercardmessage(const PokerTHMessage* msg) { + return *msg->dealrivercardmessage_; +} +const ::AllInShowCardsMessage& +PokerTHMessage::_Internal::allinshowcardsmessage(const PokerTHMessage* msg) { + return *msg->allinshowcardsmessage_; +} +const ::EndOfHandShowCardsMessage& +PokerTHMessage::_Internal::endofhandshowcardsmessage(const PokerTHMessage* msg) { + return *msg->endofhandshowcardsmessage_; +} +const ::EndOfHandHideCardsMessage& +PokerTHMessage::_Internal::endofhandhidecardsmessage(const PokerTHMessage* msg) { + return *msg->endofhandhidecardsmessage_; +} +const ::ShowMyCardsRequestMessage& +PokerTHMessage::_Internal::showmycardsrequestmessage(const PokerTHMessage* msg) { + return *msg->showmycardsrequestmessage_; +} +const ::AfterHandShowCardsMessage& +PokerTHMessage::_Internal::afterhandshowcardsmessage(const PokerTHMessage* msg) { + return *msg->afterhandshowcardsmessage_; +} +const ::EndOfGameMessage& +PokerTHMessage::_Internal::endofgamemessage(const PokerTHMessage* msg) { + return *msg->endofgamemessage_; +} +const ::PlayerIdChangedMessage& +PokerTHMessage::_Internal::playeridchangedmessage(const PokerTHMessage* msg) { + return *msg->playeridchangedmessage_; +} +const ::AskKickPlayerMessage& +PokerTHMessage::_Internal::askkickplayermessage(const PokerTHMessage* msg) { + return *msg->askkickplayermessage_; +} +const ::AskKickDeniedMessage& +PokerTHMessage::_Internal::askkickdeniedmessage(const PokerTHMessage* msg) { + return *msg->askkickdeniedmessage_; +} +const ::StartKickPetitionMessage& +PokerTHMessage::_Internal::startkickpetitionmessage(const PokerTHMessage* msg) { + return *msg->startkickpetitionmessage_; +} +const ::VoteKickRequestMessage& +PokerTHMessage::_Internal::votekickrequestmessage(const PokerTHMessage* msg) { + return *msg->votekickrequestmessage_; +} +const ::VoteKickReplyMessage& +PokerTHMessage::_Internal::votekickreplymessage(const PokerTHMessage* msg) { + return *msg->votekickreplymessage_; +} +const ::KickPetitionUpdateMessage& +PokerTHMessage::_Internal::kickpetitionupdatemessage(const PokerTHMessage* msg) { + return *msg->kickpetitionupdatemessage_; +} +const ::EndKickPetitionMessage& +PokerTHMessage::_Internal::endkickpetitionmessage(const PokerTHMessage* msg) { + return *msg->endkickpetitionmessage_; +} +const ::StatisticsMessage& +PokerTHMessage::_Internal::statisticsmessage(const PokerTHMessage* msg) { + return *msg->statisticsmessage_; +} +const ::ChatRequestMessage& +PokerTHMessage::_Internal::chatrequestmessage(const PokerTHMessage* msg) { + return *msg->chatrequestmessage_; +} +const ::ChatMessage& +PokerTHMessage::_Internal::chatmessage(const PokerTHMessage* msg) { + return *msg->chatmessage_; +} +const ::ChatRejectMessage& +PokerTHMessage::_Internal::chatrejectmessage(const PokerTHMessage* msg) { + return *msg->chatrejectmessage_; +} +const ::DialogMessage& +PokerTHMessage::_Internal::dialogmessage(const PokerTHMessage* msg) { + return *msg->dialogmessage_; +} +const ::TimeoutWarningMessage& +PokerTHMessage::_Internal::timeoutwarningmessage(const PokerTHMessage* msg) { + return *msg->timeoutwarningmessage_; +} +const ::ResetTimeoutMessage& +PokerTHMessage::_Internal::resettimeoutmessage(const PokerTHMessage* msg) { + return *msg->resettimeoutmessage_; +} +const ::ReportAvatarMessage& +PokerTHMessage::_Internal::reportavatarmessage(const PokerTHMessage* msg) { + return *msg->reportavatarmessage_; +} +const ::ReportAvatarAckMessage& +PokerTHMessage::_Internal::reportavatarackmessage(const PokerTHMessage* msg) { + return *msg->reportavatarackmessage_; +} +const ::ReportGameMessage& +PokerTHMessage::_Internal::reportgamemessage(const PokerTHMessage* msg) { + return *msg->reportgamemessage_; +} +const ::ReportGameAckMessage& +PokerTHMessage::_Internal::reportgameackmessage(const PokerTHMessage* msg) { + return *msg->reportgameackmessage_; +} +const ::ErrorMessage& +PokerTHMessage::_Internal::errormessage(const PokerTHMessage* msg) { + return *msg->errormessage_; +} +const ::AdminRemoveGameMessage& +PokerTHMessage::_Internal::adminremovegamemessage(const PokerTHMessage* msg) { + return *msg->adminremovegamemessage_; +} +const ::AdminRemoveGameAckMessage& +PokerTHMessage::_Internal::adminremovegameackmessage(const PokerTHMessage* msg) { + return *msg->adminremovegameackmessage_; +} +const ::AdminBanPlayerMessage& +PokerTHMessage::_Internal::adminbanplayermessage(const PokerTHMessage* msg) { + return *msg->adminbanplayermessage_; +} +const ::AdminBanPlayerAckMessage& +PokerTHMessage::_Internal::adminbanplayerackmessage(const PokerTHMessage* msg) { + return *msg->adminbanplayerackmessage_; +} +const ::GameListSpectatorJoinedMessage& +PokerTHMessage::_Internal::gamelistspectatorjoinedmessage(const PokerTHMessage* msg) { + return *msg->gamelistspectatorjoinedmessage_; +} +const ::GameListSpectatorLeftMessage& +PokerTHMessage::_Internal::gamelistspectatorleftmessage(const PokerTHMessage* msg) { + return *msg->gamelistspectatorleftmessage_; +} +const ::GameSpectatorJoinedMessage& +PokerTHMessage::_Internal::gamespectatorjoinedmessage(const PokerTHMessage* msg) { + return *msg->gamespectatorjoinedmessage_; +} +const ::GameSpectatorLeftMessage& +PokerTHMessage::_Internal::gamespectatorleftmessage(const PokerTHMessage* msg) { + return *msg->gamespectatorleftmessage_; +} +PokerTHMessage::PokerTHMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:PokerTHMessage) +} +PokerTHMessage::PokerTHMessage(const PokerTHMessage& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from._internal_has_announcemessage()) { + announcemessage_ = new ::AnnounceMessage(*from.announcemessage_); + } else { + announcemessage_ = nullptr; + } + if (from._internal_has_initmessage()) { + initmessage_ = new ::InitMessage(*from.initmessage_); + } else { + initmessage_ = nullptr; + } + if (from._internal_has_authserverchallengemessage()) { + authserverchallengemessage_ = new ::AuthServerChallengeMessage(*from.authserverchallengemessage_); + } else { + authserverchallengemessage_ = nullptr; + } + if (from._internal_has_authclientresponsemessage()) { + authclientresponsemessage_ = new ::AuthClientResponseMessage(*from.authclientresponsemessage_); + } else { + authclientresponsemessage_ = nullptr; + } + if (from._internal_has_authserververificationmessage()) { + authserververificationmessage_ = new ::AuthServerVerificationMessage(*from.authserververificationmessage_); + } else { + authserververificationmessage_ = nullptr; + } + if (from._internal_has_initackmessage()) { + initackmessage_ = new ::InitAckMessage(*from.initackmessage_); + } else { + initackmessage_ = nullptr; + } + if (from._internal_has_avatarrequestmessage()) { + avatarrequestmessage_ = new ::AvatarRequestMessage(*from.avatarrequestmessage_); + } else { + avatarrequestmessage_ = nullptr; + } + if (from._internal_has_avatarheadermessage()) { + avatarheadermessage_ = new ::AvatarHeaderMessage(*from.avatarheadermessage_); + } else { + avatarheadermessage_ = nullptr; + } + if (from._internal_has_avatardatamessage()) { + avatardatamessage_ = new ::AvatarDataMessage(*from.avatardatamessage_); + } else { + avatardatamessage_ = nullptr; + } + if (from._internal_has_avatarendmessage()) { + avatarendmessage_ = new ::AvatarEndMessage(*from.avatarendmessage_); + } else { + avatarendmessage_ = nullptr; + } + if (from._internal_has_unknownavatarmessage()) { + unknownavatarmessage_ = new ::UnknownAvatarMessage(*from.unknownavatarmessage_); + } else { + unknownavatarmessage_ = nullptr; + } + if (from._internal_has_playerlistmessage()) { + playerlistmessage_ = new ::PlayerListMessage(*from.playerlistmessage_); + } else { + playerlistmessage_ = nullptr; + } + if (from._internal_has_gamelistnewmessage()) { + gamelistnewmessage_ = new ::GameListNewMessage(*from.gamelistnewmessage_); + } else { + gamelistnewmessage_ = nullptr; + } + if (from._internal_has_gamelistupdatemessage()) { + gamelistupdatemessage_ = new ::GameListUpdateMessage(*from.gamelistupdatemessage_); + } else { + gamelistupdatemessage_ = nullptr; + } + if (from._internal_has_gamelistplayerjoinedmessage()) { + gamelistplayerjoinedmessage_ = new ::GameListPlayerJoinedMessage(*from.gamelistplayerjoinedmessage_); + } else { + gamelistplayerjoinedmessage_ = nullptr; + } + if (from._internal_has_gamelistplayerleftmessage()) { + gamelistplayerleftmessage_ = new ::GameListPlayerLeftMessage(*from.gamelistplayerleftmessage_); + } else { + gamelistplayerleftmessage_ = nullptr; + } + if (from._internal_has_gamelistadminchangedmessage()) { + gamelistadminchangedmessage_ = new ::GameListAdminChangedMessage(*from.gamelistadminchangedmessage_); + } else { + gamelistadminchangedmessage_ = nullptr; + } + if (from._internal_has_playerinforequestmessage()) { + playerinforequestmessage_ = new ::PlayerInfoRequestMessage(*from.playerinforequestmessage_); + } else { + playerinforequestmessage_ = nullptr; + } + if (from._internal_has_playerinforeplymessage()) { + playerinforeplymessage_ = new ::PlayerInfoReplyMessage(*from.playerinforeplymessage_); + } else { + playerinforeplymessage_ = nullptr; + } + if (from._internal_has_subscriptionrequestmessage()) { + subscriptionrequestmessage_ = new ::SubscriptionRequestMessage(*from.subscriptionrequestmessage_); + } else { + subscriptionrequestmessage_ = nullptr; + } + if (from._internal_has_joinexistinggamemessage()) { + joinexistinggamemessage_ = new ::JoinExistingGameMessage(*from.joinexistinggamemessage_); + } else { + joinexistinggamemessage_ = nullptr; + } + if (from._internal_has_joinnewgamemessage()) { + joinnewgamemessage_ = new ::JoinNewGameMessage(*from.joinnewgamemessage_); + } else { + joinnewgamemessage_ = nullptr; + } + if (from._internal_has_rejoinexistinggamemessage()) { + rejoinexistinggamemessage_ = new ::RejoinExistingGameMessage(*from.rejoinexistinggamemessage_); + } else { + rejoinexistinggamemessage_ = nullptr; + } + if (from._internal_has_joingameackmessage()) { + joingameackmessage_ = new ::JoinGameAckMessage(*from.joingameackmessage_); + } else { + joingameackmessage_ = nullptr; + } + if (from._internal_has_joingamefailedmessage()) { + joingamefailedmessage_ = new ::JoinGameFailedMessage(*from.joingamefailedmessage_); + } else { + joingamefailedmessage_ = nullptr; + } + if (from._internal_has_gameplayerjoinedmessage()) { + gameplayerjoinedmessage_ = new ::GamePlayerJoinedMessage(*from.gameplayerjoinedmessage_); + } else { + gameplayerjoinedmessage_ = nullptr; + } + if (from._internal_has_gameplayerleftmessage()) { + gameplayerleftmessage_ = new ::GamePlayerLeftMessage(*from.gameplayerleftmessage_); + } else { + gameplayerleftmessage_ = nullptr; + } + if (from._internal_has_gameadminchangedmessage()) { + gameadminchangedmessage_ = new ::GameAdminChangedMessage(*from.gameadminchangedmessage_); + } else { + gameadminchangedmessage_ = nullptr; + } + if (from._internal_has_removedfromgamemessage()) { + removedfromgamemessage_ = new ::RemovedFromGameMessage(*from.removedfromgamemessage_); + } else { + removedfromgamemessage_ = nullptr; + } + if (from._internal_has_kickplayerrequestmessage()) { + kickplayerrequestmessage_ = new ::KickPlayerRequestMessage(*from.kickplayerrequestmessage_); + } else { + kickplayerrequestmessage_ = nullptr; + } + if (from._internal_has_leavegamerequestmessage()) { + leavegamerequestmessage_ = new ::LeaveGameRequestMessage(*from.leavegamerequestmessage_); + } else { + leavegamerequestmessage_ = nullptr; + } + if (from._internal_has_inviteplayertogamemessage()) { + inviteplayertogamemessage_ = new ::InvitePlayerToGameMessage(*from.inviteplayertogamemessage_); + } else { + inviteplayertogamemessage_ = nullptr; + } + if (from._internal_has_invitenotifymessage()) { + invitenotifymessage_ = new ::InviteNotifyMessage(*from.invitenotifymessage_); + } else { + invitenotifymessage_ = nullptr; + } + if (from._internal_has_rejectgameinvitationmessage()) { + rejectgameinvitationmessage_ = new ::RejectGameInvitationMessage(*from.rejectgameinvitationmessage_); + } else { + rejectgameinvitationmessage_ = nullptr; + } + if (from._internal_has_rejectinvnotifymessage()) { + rejectinvnotifymessage_ = new ::RejectInvNotifyMessage(*from.rejectinvnotifymessage_); + } else { + rejectinvnotifymessage_ = nullptr; + } + if (from._internal_has_starteventmessage()) { + starteventmessage_ = new ::StartEventMessage(*from.starteventmessage_); + } else { + starteventmessage_ = nullptr; + } + if (from._internal_has_starteventackmessage()) { + starteventackmessage_ = new ::StartEventAckMessage(*from.starteventackmessage_); + } else { + starteventackmessage_ = nullptr; + } + if (from._internal_has_gamestartinitialmessage()) { + gamestartinitialmessage_ = new ::GameStartInitialMessage(*from.gamestartinitialmessage_); + } else { + gamestartinitialmessage_ = nullptr; + } + if (from._internal_has_gamestartrejoinmessage()) { + gamestartrejoinmessage_ = new ::GameStartRejoinMessage(*from.gamestartrejoinmessage_); + } else { + gamestartrejoinmessage_ = nullptr; + } + if (from._internal_has_handstartmessage()) { + handstartmessage_ = new ::HandStartMessage(*from.handstartmessage_); + } else { + handstartmessage_ = nullptr; + } + if (from._internal_has_playersturnmessage()) { + playersturnmessage_ = new ::PlayersTurnMessage(*from.playersturnmessage_); + } else { + playersturnmessage_ = nullptr; + } + if (from._internal_has_myactionrequestmessage()) { + myactionrequestmessage_ = new ::MyActionRequestMessage(*from.myactionrequestmessage_); + } else { + myactionrequestmessage_ = nullptr; + } + if (from._internal_has_youractionrejectedmessage()) { + youractionrejectedmessage_ = new ::YourActionRejectedMessage(*from.youractionrejectedmessage_); + } else { + youractionrejectedmessage_ = nullptr; + } + if (from._internal_has_playersactiondonemessage()) { + playersactiondonemessage_ = new ::PlayersActionDoneMessage(*from.playersactiondonemessage_); + } else { + playersactiondonemessage_ = nullptr; + } + if (from._internal_has_dealflopcardsmessage()) { + dealflopcardsmessage_ = new ::DealFlopCardsMessage(*from.dealflopcardsmessage_); + } else { + dealflopcardsmessage_ = nullptr; + } + if (from._internal_has_dealturncardmessage()) { + dealturncardmessage_ = new ::DealTurnCardMessage(*from.dealturncardmessage_); + } else { + dealturncardmessage_ = nullptr; + } + if (from._internal_has_dealrivercardmessage()) { + dealrivercardmessage_ = new ::DealRiverCardMessage(*from.dealrivercardmessage_); + } else { + dealrivercardmessage_ = nullptr; + } + if (from._internal_has_allinshowcardsmessage()) { + allinshowcardsmessage_ = new ::AllInShowCardsMessage(*from.allinshowcardsmessage_); + } else { + allinshowcardsmessage_ = nullptr; + } + if (from._internal_has_endofhandshowcardsmessage()) { + endofhandshowcardsmessage_ = new ::EndOfHandShowCardsMessage(*from.endofhandshowcardsmessage_); + } else { + endofhandshowcardsmessage_ = nullptr; + } + if (from._internal_has_endofhandhidecardsmessage()) { + endofhandhidecardsmessage_ = new ::EndOfHandHideCardsMessage(*from.endofhandhidecardsmessage_); + } else { + endofhandhidecardsmessage_ = nullptr; + } + if (from._internal_has_showmycardsrequestmessage()) { + showmycardsrequestmessage_ = new ::ShowMyCardsRequestMessage(*from.showmycardsrequestmessage_); + } else { + showmycardsrequestmessage_ = nullptr; + } + if (from._internal_has_afterhandshowcardsmessage()) { + afterhandshowcardsmessage_ = new ::AfterHandShowCardsMessage(*from.afterhandshowcardsmessage_); + } else { + afterhandshowcardsmessage_ = nullptr; + } + if (from._internal_has_endofgamemessage()) { + endofgamemessage_ = new ::EndOfGameMessage(*from.endofgamemessage_); + } else { + endofgamemessage_ = nullptr; + } + if (from._internal_has_playeridchangedmessage()) { + playeridchangedmessage_ = new ::PlayerIdChangedMessage(*from.playeridchangedmessage_); + } else { + playeridchangedmessage_ = nullptr; + } + if (from._internal_has_askkickplayermessage()) { + askkickplayermessage_ = new ::AskKickPlayerMessage(*from.askkickplayermessage_); + } else { + askkickplayermessage_ = nullptr; + } + if (from._internal_has_askkickdeniedmessage()) { + askkickdeniedmessage_ = new ::AskKickDeniedMessage(*from.askkickdeniedmessage_); + } else { + askkickdeniedmessage_ = nullptr; + } + if (from._internal_has_startkickpetitionmessage()) { + startkickpetitionmessage_ = new ::StartKickPetitionMessage(*from.startkickpetitionmessage_); + } else { + startkickpetitionmessage_ = nullptr; + } + if (from._internal_has_votekickrequestmessage()) { + votekickrequestmessage_ = new ::VoteKickRequestMessage(*from.votekickrequestmessage_); + } else { + votekickrequestmessage_ = nullptr; + } + if (from._internal_has_votekickreplymessage()) { + votekickreplymessage_ = new ::VoteKickReplyMessage(*from.votekickreplymessage_); + } else { + votekickreplymessage_ = nullptr; + } + if (from._internal_has_kickpetitionupdatemessage()) { + kickpetitionupdatemessage_ = new ::KickPetitionUpdateMessage(*from.kickpetitionupdatemessage_); + } else { + kickpetitionupdatemessage_ = nullptr; + } + if (from._internal_has_endkickpetitionmessage()) { + endkickpetitionmessage_ = new ::EndKickPetitionMessage(*from.endkickpetitionmessage_); + } else { + endkickpetitionmessage_ = nullptr; + } + if (from._internal_has_statisticsmessage()) { + statisticsmessage_ = new ::StatisticsMessage(*from.statisticsmessage_); + } else { + statisticsmessage_ = nullptr; + } + if (from._internal_has_chatrequestmessage()) { + chatrequestmessage_ = new ::ChatRequestMessage(*from.chatrequestmessage_); + } else { + chatrequestmessage_ = nullptr; + } + if (from._internal_has_chatmessage()) { + chatmessage_ = new ::ChatMessage(*from.chatmessage_); + } else { + chatmessage_ = nullptr; + } + if (from._internal_has_chatrejectmessage()) { + chatrejectmessage_ = new ::ChatRejectMessage(*from.chatrejectmessage_); + } else { + chatrejectmessage_ = nullptr; + } + if (from._internal_has_dialogmessage()) { + dialogmessage_ = new ::DialogMessage(*from.dialogmessage_); + } else { + dialogmessage_ = nullptr; + } + if (from._internal_has_timeoutwarningmessage()) { + timeoutwarningmessage_ = new ::TimeoutWarningMessage(*from.timeoutwarningmessage_); + } else { + timeoutwarningmessage_ = nullptr; + } + if (from._internal_has_resettimeoutmessage()) { + resettimeoutmessage_ = new ::ResetTimeoutMessage(*from.resettimeoutmessage_); + } else { + resettimeoutmessage_ = nullptr; + } + if (from._internal_has_reportavatarmessage()) { + reportavatarmessage_ = new ::ReportAvatarMessage(*from.reportavatarmessage_); + } else { + reportavatarmessage_ = nullptr; + } + if (from._internal_has_reportavatarackmessage()) { + reportavatarackmessage_ = new ::ReportAvatarAckMessage(*from.reportavatarackmessage_); + } else { + reportavatarackmessage_ = nullptr; + } + if (from._internal_has_reportgamemessage()) { + reportgamemessage_ = new ::ReportGameMessage(*from.reportgamemessage_); + } else { + reportgamemessage_ = nullptr; + } + if (from._internal_has_reportgameackmessage()) { + reportgameackmessage_ = new ::ReportGameAckMessage(*from.reportgameackmessage_); + } else { + reportgameackmessage_ = nullptr; + } + if (from._internal_has_errormessage()) { + errormessage_ = new ::ErrorMessage(*from.errormessage_); + } else { + errormessage_ = nullptr; + } + if (from._internal_has_adminremovegamemessage()) { + adminremovegamemessage_ = new ::AdminRemoveGameMessage(*from.adminremovegamemessage_); + } else { + adminremovegamemessage_ = nullptr; + } + if (from._internal_has_adminremovegameackmessage()) { + adminremovegameackmessage_ = new ::AdminRemoveGameAckMessage(*from.adminremovegameackmessage_); + } else { + adminremovegameackmessage_ = nullptr; + } + if (from._internal_has_adminbanplayermessage()) { + adminbanplayermessage_ = new ::AdminBanPlayerMessage(*from.adminbanplayermessage_); + } else { + adminbanplayermessage_ = nullptr; + } + if (from._internal_has_adminbanplayerackmessage()) { + adminbanplayerackmessage_ = new ::AdminBanPlayerAckMessage(*from.adminbanplayerackmessage_); + } else { + adminbanplayerackmessage_ = nullptr; + } + if (from._internal_has_gamelistspectatorjoinedmessage()) { + gamelistspectatorjoinedmessage_ = new ::GameListSpectatorJoinedMessage(*from.gamelistspectatorjoinedmessage_); + } else { + gamelistspectatorjoinedmessage_ = nullptr; + } + if (from._internal_has_gamelistspectatorleftmessage()) { + gamelistspectatorleftmessage_ = new ::GameListSpectatorLeftMessage(*from.gamelistspectatorleftmessage_); + } else { + gamelistspectatorleftmessage_ = nullptr; + } + if (from._internal_has_gamespectatorjoinedmessage()) { + gamespectatorjoinedmessage_ = new ::GameSpectatorJoinedMessage(*from.gamespectatorjoinedmessage_); + } else { + gamespectatorjoinedmessage_ = nullptr; + } + if (from._internal_has_gamespectatorleftmessage()) { + gamespectatorleftmessage_ = new ::GameSpectatorLeftMessage(*from.gamespectatorleftmessage_); + } else { + gamespectatorleftmessage_ = nullptr; + } + messagetype_ = from.messagetype_; + // @@protoc_insertion_point(copy_constructor:PokerTHMessage) +} + void PokerTHMessage::SharedCtor() { - _cached_size_ = 0; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PokerTHMessage_pokerth_2eproto.base); + ::memset(&announcemessage_, 0, static_cast( + reinterpret_cast(&gamespectatorleftmessage_) - + reinterpret_cast(&announcemessage_)) + sizeof(gamespectatorleftmessage_)); messagetype_ = 1; - announcemessage_ = NULL; - initmessage_ = NULL; - authserverchallengemessage_ = NULL; - authclientresponsemessage_ = NULL; - authserververificationmessage_ = NULL; - initackmessage_ = NULL; - avatarrequestmessage_ = NULL; - avatarheadermessage_ = NULL; - avatardatamessage_ = NULL; - avatarendmessage_ = NULL; - unknownavatarmessage_ = NULL; - playerlistmessage_ = NULL; - gamelistnewmessage_ = NULL; - gamelistupdatemessage_ = NULL; - gamelistplayerjoinedmessage_ = NULL; - gamelistplayerleftmessage_ = NULL; - gamelistadminchangedmessage_ = NULL; - playerinforequestmessage_ = NULL; - playerinforeplymessage_ = NULL; - subscriptionrequestmessage_ = NULL; - joinexistinggamemessage_ = NULL; - joinnewgamemessage_ = NULL; - rejoinexistinggamemessage_ = NULL; - joingameackmessage_ = NULL; - joingamefailedmessage_ = NULL; - gameplayerjoinedmessage_ = NULL; - gameplayerleftmessage_ = NULL; - gameadminchangedmessage_ = NULL; - removedfromgamemessage_ = NULL; - kickplayerrequestmessage_ = NULL; - leavegamerequestmessage_ = NULL; - inviteplayertogamemessage_ = NULL; - invitenotifymessage_ = NULL; - rejectgameinvitationmessage_ = NULL; - rejectinvnotifymessage_ = NULL; - starteventmessage_ = NULL; - starteventackmessage_ = NULL; - gamestartinitialmessage_ = NULL; - gamestartrejoinmessage_ = NULL; - handstartmessage_ = NULL; - playersturnmessage_ = NULL; - myactionrequestmessage_ = NULL; - youractionrejectedmessage_ = NULL; - playersactiondonemessage_ = NULL; - dealflopcardsmessage_ = NULL; - dealturncardmessage_ = NULL; - dealrivercardmessage_ = NULL; - allinshowcardsmessage_ = NULL; - endofhandshowcardsmessage_ = NULL; - endofhandhidecardsmessage_ = NULL; - showmycardsrequestmessage_ = NULL; - afterhandshowcardsmessage_ = NULL; - endofgamemessage_ = NULL; - playeridchangedmessage_ = NULL; - askkickplayermessage_ = NULL; - askkickdeniedmessage_ = NULL; - startkickpetitionmessage_ = NULL; - votekickrequestmessage_ = NULL; - votekickreplymessage_ = NULL; - kickpetitionupdatemessage_ = NULL; - endkickpetitionmessage_ = NULL; - statisticsmessage_ = NULL; - chatrequestmessage_ = NULL; - chatmessage_ = NULL; - chatrejectmessage_ = NULL; - dialogmessage_ = NULL; - timeoutwarningmessage_ = NULL; - resettimeoutmessage_ = NULL; - reportavatarmessage_ = NULL; - reportavatarackmessage_ = NULL; - reportgamemessage_ = NULL; - reportgameackmessage_ = NULL; - errormessage_ = NULL; - adminremovegamemessage_ = NULL; - adminremovegameackmessage_ = NULL; - adminbanplayermessage_ = NULL; - adminbanplayerackmessage_ = NULL; - gamelistspectatorjoinedmessage_ = NULL; - gamelistspectatorleftmessage_ = NULL; - gamespectatorjoinedmessage_ = NULL; - gamespectatorleftmessage_ = NULL; - gamestartreentrymessage_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } PokerTHMessage::~PokerTHMessage() { SharedDtor(); + _internal_metadata_.Delete(); } void PokerTHMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete announcemessage_; - delete initmessage_; - delete authserverchallengemessage_; - delete authclientresponsemessage_; - delete authserververificationmessage_; - delete initackmessage_; - delete avatarrequestmessage_; - delete avatarheadermessage_; - delete avatardatamessage_; - delete avatarendmessage_; - delete unknownavatarmessage_; - delete playerlistmessage_; - delete gamelistnewmessage_; - delete gamelistupdatemessage_; - delete gamelistplayerjoinedmessage_; - delete gamelistplayerleftmessage_; - delete gamelistadminchangedmessage_; - delete playerinforequestmessage_; - delete playerinforeplymessage_; - delete subscriptionrequestmessage_; - delete joinexistinggamemessage_; - delete joinnewgamemessage_; - delete rejoinexistinggamemessage_; - delete joingameackmessage_; - delete joingamefailedmessage_; - delete gameplayerjoinedmessage_; - delete gameplayerleftmessage_; - delete gameadminchangedmessage_; - delete removedfromgamemessage_; - delete kickplayerrequestmessage_; - delete leavegamerequestmessage_; - delete inviteplayertogamemessage_; - delete invitenotifymessage_; - delete rejectgameinvitationmessage_; - delete rejectinvnotifymessage_; - delete starteventmessage_; - delete starteventackmessage_; - delete gamestartinitialmessage_; - delete gamestartrejoinmessage_; - delete handstartmessage_; - delete playersturnmessage_; - delete myactionrequestmessage_; - delete youractionrejectedmessage_; - delete playersactiondonemessage_; - delete dealflopcardsmessage_; - delete dealturncardmessage_; - delete dealrivercardmessage_; - delete allinshowcardsmessage_; - delete endofhandshowcardsmessage_; - delete endofhandhidecardsmessage_; - delete showmycardsrequestmessage_; - delete afterhandshowcardsmessage_; - delete endofgamemessage_; - delete playeridchangedmessage_; - delete askkickplayermessage_; - delete askkickdeniedmessage_; - delete startkickpetitionmessage_; - delete votekickrequestmessage_; - delete votekickreplymessage_; - delete kickpetitionupdatemessage_; - delete endkickpetitionmessage_; - delete statisticsmessage_; - delete chatrequestmessage_; - delete chatmessage_; - delete chatrejectmessage_; - delete dialogmessage_; - delete timeoutwarningmessage_; - delete resettimeoutmessage_; - delete reportavatarmessage_; - delete reportavatarackmessage_; - delete reportgamemessage_; - delete reportgameackmessage_; - delete errormessage_; - delete adminremovegamemessage_; - delete adminremovegameackmessage_; - delete adminbanplayermessage_; - delete adminbanplayerackmessage_; - delete gamelistspectatorjoinedmessage_; - delete gamelistspectatorleftmessage_; - delete gamespectatorjoinedmessage_; - delete gamespectatorleftmessage_; - delete gamestartreentrymessage_; - } + GOOGLE_DCHECK(GetArena() == nullptr); + if (this != internal_default_instance()) delete announcemessage_; + if (this != internal_default_instance()) delete initmessage_; + if (this != internal_default_instance()) delete authserverchallengemessage_; + if (this != internal_default_instance()) delete authclientresponsemessage_; + if (this != internal_default_instance()) delete authserververificationmessage_; + if (this != internal_default_instance()) delete initackmessage_; + if (this != internal_default_instance()) delete avatarrequestmessage_; + if (this != internal_default_instance()) delete avatarheadermessage_; + if (this != internal_default_instance()) delete avatardatamessage_; + if (this != internal_default_instance()) delete avatarendmessage_; + if (this != internal_default_instance()) delete unknownavatarmessage_; + if (this != internal_default_instance()) delete playerlistmessage_; + if (this != internal_default_instance()) delete gamelistnewmessage_; + if (this != internal_default_instance()) delete gamelistupdatemessage_; + if (this != internal_default_instance()) delete gamelistplayerjoinedmessage_; + if (this != internal_default_instance()) delete gamelistplayerleftmessage_; + if (this != internal_default_instance()) delete gamelistadminchangedmessage_; + if (this != internal_default_instance()) delete playerinforequestmessage_; + if (this != internal_default_instance()) delete playerinforeplymessage_; + if (this != internal_default_instance()) delete subscriptionrequestmessage_; + if (this != internal_default_instance()) delete joinexistinggamemessage_; + if (this != internal_default_instance()) delete joinnewgamemessage_; + if (this != internal_default_instance()) delete rejoinexistinggamemessage_; + if (this != internal_default_instance()) delete joingameackmessage_; + if (this != internal_default_instance()) delete joingamefailedmessage_; + if (this != internal_default_instance()) delete gameplayerjoinedmessage_; + if (this != internal_default_instance()) delete gameplayerleftmessage_; + if (this != internal_default_instance()) delete gameadminchangedmessage_; + if (this != internal_default_instance()) delete removedfromgamemessage_; + if (this != internal_default_instance()) delete kickplayerrequestmessage_; + if (this != internal_default_instance()) delete leavegamerequestmessage_; + if (this != internal_default_instance()) delete inviteplayertogamemessage_; + if (this != internal_default_instance()) delete invitenotifymessage_; + if (this != internal_default_instance()) delete rejectgameinvitationmessage_; + if (this != internal_default_instance()) delete rejectinvnotifymessage_; + if (this != internal_default_instance()) delete starteventmessage_; + if (this != internal_default_instance()) delete starteventackmessage_; + if (this != internal_default_instance()) delete gamestartinitialmessage_; + if (this != internal_default_instance()) delete gamestartrejoinmessage_; + if (this != internal_default_instance()) delete handstartmessage_; + if (this != internal_default_instance()) delete playersturnmessage_; + if (this != internal_default_instance()) delete myactionrequestmessage_; + if (this != internal_default_instance()) delete youractionrejectedmessage_; + if (this != internal_default_instance()) delete playersactiondonemessage_; + if (this != internal_default_instance()) delete dealflopcardsmessage_; + if (this != internal_default_instance()) delete dealturncardmessage_; + if (this != internal_default_instance()) delete dealrivercardmessage_; + if (this != internal_default_instance()) delete allinshowcardsmessage_; + if (this != internal_default_instance()) delete endofhandshowcardsmessage_; + if (this != internal_default_instance()) delete endofhandhidecardsmessage_; + if (this != internal_default_instance()) delete showmycardsrequestmessage_; + if (this != internal_default_instance()) delete afterhandshowcardsmessage_; + if (this != internal_default_instance()) delete endofgamemessage_; + if (this != internal_default_instance()) delete playeridchangedmessage_; + if (this != internal_default_instance()) delete askkickplayermessage_; + if (this != internal_default_instance()) delete askkickdeniedmessage_; + if (this != internal_default_instance()) delete startkickpetitionmessage_; + if (this != internal_default_instance()) delete votekickrequestmessage_; + if (this != internal_default_instance()) delete votekickreplymessage_; + if (this != internal_default_instance()) delete kickpetitionupdatemessage_; + if (this != internal_default_instance()) delete endkickpetitionmessage_; + if (this != internal_default_instance()) delete statisticsmessage_; + if (this != internal_default_instance()) delete chatrequestmessage_; + if (this != internal_default_instance()) delete chatmessage_; + if (this != internal_default_instance()) delete chatrejectmessage_; + if (this != internal_default_instance()) delete dialogmessage_; + if (this != internal_default_instance()) delete timeoutwarningmessage_; + if (this != internal_default_instance()) delete resettimeoutmessage_; + if (this != internal_default_instance()) delete reportavatarmessage_; + if (this != internal_default_instance()) delete reportavatarackmessage_; + if (this != internal_default_instance()) delete reportgamemessage_; + if (this != internal_default_instance()) delete reportgameackmessage_; + if (this != internal_default_instance()) delete errormessage_; + if (this != internal_default_instance()) delete adminremovegamemessage_; + if (this != internal_default_instance()) delete adminremovegameackmessage_; + if (this != internal_default_instance()) delete adminbanplayermessage_; + if (this != internal_default_instance()) delete adminbanplayerackmessage_; + if (this != internal_default_instance()) delete gamelistspectatorjoinedmessage_; + if (this != internal_default_instance()) delete gamelistspectatorleftmessage_; + if (this != internal_default_instance()) delete gamespectatorjoinedmessage_; + if (this != internal_default_instance()) delete gamespectatorleftmessage_; } +void PokerTHMessage::ArenaDtor(void* object) { + PokerTHMessage* _this = reinterpret_cast< PokerTHMessage* >(object); + (void)_this; +} +void PokerTHMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void PokerTHMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const PokerTHMessage& PokerTHMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PokerTHMessage_pokerth_2eproto.base); + return *internal_default_instance(); } -PokerTHMessage* PokerTHMessage::default_instance_ = NULL; - -PokerTHMessage* PokerTHMessage::New() const { - return new PokerTHMessage; -} void PokerTHMessage::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { +// @@protoc_insertion_point(message_clear_start:PokerTHMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x000000ffu) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(announcemessage_ != nullptr); + announcemessage_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(initmessage_ != nullptr); + initmessage_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(authserverchallengemessage_ != nullptr); + authserverchallengemessage_->Clear(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(authclientresponsemessage_ != nullptr); + authclientresponsemessage_->Clear(); + } + if (cached_has_bits & 0x00000010u) { + GOOGLE_DCHECK(authserververificationmessage_ != nullptr); + authserververificationmessage_->Clear(); + } + if (cached_has_bits & 0x00000020u) { + GOOGLE_DCHECK(initackmessage_ != nullptr); + initackmessage_->Clear(); + } + if (cached_has_bits & 0x00000040u) { + GOOGLE_DCHECK(avatarrequestmessage_ != nullptr); + avatarrequestmessage_->Clear(); + } + if (cached_has_bits & 0x00000080u) { + GOOGLE_DCHECK(avatarheadermessage_ != nullptr); + avatarheadermessage_->Clear(); + } + } + if (cached_has_bits & 0x0000ff00u) { + if (cached_has_bits & 0x00000100u) { + GOOGLE_DCHECK(avatardatamessage_ != nullptr); + avatardatamessage_->Clear(); + } + if (cached_has_bits & 0x00000200u) { + GOOGLE_DCHECK(avatarendmessage_ != nullptr); + avatarendmessage_->Clear(); + } + if (cached_has_bits & 0x00000400u) { + GOOGLE_DCHECK(unknownavatarmessage_ != nullptr); + unknownavatarmessage_->Clear(); + } + if (cached_has_bits & 0x00000800u) { + GOOGLE_DCHECK(playerlistmessage_ != nullptr); + playerlistmessage_->Clear(); + } + if (cached_has_bits & 0x00001000u) { + GOOGLE_DCHECK(gamelistnewmessage_ != nullptr); + gamelistnewmessage_->Clear(); + } + if (cached_has_bits & 0x00002000u) { + GOOGLE_DCHECK(gamelistupdatemessage_ != nullptr); + gamelistupdatemessage_->Clear(); + } + if (cached_has_bits & 0x00004000u) { + GOOGLE_DCHECK(gamelistplayerjoinedmessage_ != nullptr); + gamelistplayerjoinedmessage_->Clear(); + } + if (cached_has_bits & 0x00008000u) { + GOOGLE_DCHECK(gamelistplayerleftmessage_ != nullptr); + gamelistplayerleftmessage_->Clear(); + } + } + if (cached_has_bits & 0x00ff0000u) { + if (cached_has_bits & 0x00010000u) { + GOOGLE_DCHECK(gamelistadminchangedmessage_ != nullptr); + gamelistadminchangedmessage_->Clear(); + } + if (cached_has_bits & 0x00020000u) { + GOOGLE_DCHECK(playerinforequestmessage_ != nullptr); + playerinforequestmessage_->Clear(); + } + if (cached_has_bits & 0x00040000u) { + GOOGLE_DCHECK(playerinforeplymessage_ != nullptr); + playerinforeplymessage_->Clear(); + } + if (cached_has_bits & 0x00080000u) { + GOOGLE_DCHECK(subscriptionrequestmessage_ != nullptr); + subscriptionrequestmessage_->Clear(); + } + if (cached_has_bits & 0x00100000u) { + GOOGLE_DCHECK(joinexistinggamemessage_ != nullptr); + joinexistinggamemessage_->Clear(); + } + if (cached_has_bits & 0x00200000u) { + GOOGLE_DCHECK(joinnewgamemessage_ != nullptr); + joinnewgamemessage_->Clear(); + } + if (cached_has_bits & 0x00400000u) { + GOOGLE_DCHECK(rejoinexistinggamemessage_ != nullptr); + rejoinexistinggamemessage_->Clear(); + } + if (cached_has_bits & 0x00800000u) { + GOOGLE_DCHECK(joingameackmessage_ != nullptr); + joingameackmessage_->Clear(); + } + } + if (cached_has_bits & 0xff000000u) { + if (cached_has_bits & 0x01000000u) { + GOOGLE_DCHECK(joingamefailedmessage_ != nullptr); + joingamefailedmessage_->Clear(); + } + if (cached_has_bits & 0x02000000u) { + GOOGLE_DCHECK(gameplayerjoinedmessage_ != nullptr); + gameplayerjoinedmessage_->Clear(); + } + if (cached_has_bits & 0x04000000u) { + GOOGLE_DCHECK(gameplayerleftmessage_ != nullptr); + gameplayerleftmessage_->Clear(); + } + if (cached_has_bits & 0x08000000u) { + GOOGLE_DCHECK(gameadminchangedmessage_ != nullptr); + gameadminchangedmessage_->Clear(); + } + if (cached_has_bits & 0x10000000u) { + GOOGLE_DCHECK(removedfromgamemessage_ != nullptr); + removedfromgamemessage_->Clear(); + } + if (cached_has_bits & 0x20000000u) { + GOOGLE_DCHECK(kickplayerrequestmessage_ != nullptr); + kickplayerrequestmessage_->Clear(); + } + if (cached_has_bits & 0x40000000u) { + GOOGLE_DCHECK(leavegamerequestmessage_ != nullptr); + leavegamerequestmessage_->Clear(); + } + if (cached_has_bits & 0x80000000u) { + GOOGLE_DCHECK(inviteplayertogamemessage_ != nullptr); + inviteplayertogamemessage_->Clear(); + } + } + cached_has_bits = _has_bits_[1]; + if (cached_has_bits & 0x000000ffu) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(invitenotifymessage_ != nullptr); + invitenotifymessage_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(rejectgameinvitationmessage_ != nullptr); + rejectgameinvitationmessage_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(rejectinvnotifymessage_ != nullptr); + rejectinvnotifymessage_->Clear(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(starteventmessage_ != nullptr); + starteventmessage_->Clear(); + } + if (cached_has_bits & 0x00000010u) { + GOOGLE_DCHECK(starteventackmessage_ != nullptr); + starteventackmessage_->Clear(); + } + if (cached_has_bits & 0x00000020u) { + GOOGLE_DCHECK(gamestartinitialmessage_ != nullptr); + gamestartinitialmessage_->Clear(); + } + if (cached_has_bits & 0x00000040u) { + GOOGLE_DCHECK(gamestartrejoinmessage_ != nullptr); + gamestartrejoinmessage_->Clear(); + } + if (cached_has_bits & 0x00000080u) { + GOOGLE_DCHECK(handstartmessage_ != nullptr); + handstartmessage_->Clear(); + } + } + if (cached_has_bits & 0x0000ff00u) { + if (cached_has_bits & 0x00000100u) { + GOOGLE_DCHECK(playersturnmessage_ != nullptr); + playersturnmessage_->Clear(); + } + if (cached_has_bits & 0x00000200u) { + GOOGLE_DCHECK(myactionrequestmessage_ != nullptr); + myactionrequestmessage_->Clear(); + } + if (cached_has_bits & 0x00000400u) { + GOOGLE_DCHECK(youractionrejectedmessage_ != nullptr); + youractionrejectedmessage_->Clear(); + } + if (cached_has_bits & 0x00000800u) { + GOOGLE_DCHECK(playersactiondonemessage_ != nullptr); + playersactiondonemessage_->Clear(); + } + if (cached_has_bits & 0x00001000u) { + GOOGLE_DCHECK(dealflopcardsmessage_ != nullptr); + dealflopcardsmessage_->Clear(); + } + if (cached_has_bits & 0x00002000u) { + GOOGLE_DCHECK(dealturncardmessage_ != nullptr); + dealturncardmessage_->Clear(); + } + if (cached_has_bits & 0x00004000u) { + GOOGLE_DCHECK(dealrivercardmessage_ != nullptr); + dealrivercardmessage_->Clear(); + } + if (cached_has_bits & 0x00008000u) { + GOOGLE_DCHECK(allinshowcardsmessage_ != nullptr); + allinshowcardsmessage_->Clear(); + } + } + if (cached_has_bits & 0x00ff0000u) { + if (cached_has_bits & 0x00010000u) { + GOOGLE_DCHECK(endofhandshowcardsmessage_ != nullptr); + endofhandshowcardsmessage_->Clear(); + } + if (cached_has_bits & 0x00020000u) { + GOOGLE_DCHECK(endofhandhidecardsmessage_ != nullptr); + endofhandhidecardsmessage_->Clear(); + } + if (cached_has_bits & 0x00040000u) { + GOOGLE_DCHECK(showmycardsrequestmessage_ != nullptr); + showmycardsrequestmessage_->Clear(); + } + if (cached_has_bits & 0x00080000u) { + GOOGLE_DCHECK(afterhandshowcardsmessage_ != nullptr); + afterhandshowcardsmessage_->Clear(); + } + if (cached_has_bits & 0x00100000u) { + GOOGLE_DCHECK(endofgamemessage_ != nullptr); + endofgamemessage_->Clear(); + } + if (cached_has_bits & 0x00200000u) { + GOOGLE_DCHECK(playeridchangedmessage_ != nullptr); + playeridchangedmessage_->Clear(); + } + if (cached_has_bits & 0x00400000u) { + GOOGLE_DCHECK(askkickplayermessage_ != nullptr); + askkickplayermessage_->Clear(); + } + if (cached_has_bits & 0x00800000u) { + GOOGLE_DCHECK(askkickdeniedmessage_ != nullptr); + askkickdeniedmessage_->Clear(); + } + } + if (cached_has_bits & 0xff000000u) { + if (cached_has_bits & 0x01000000u) { + GOOGLE_DCHECK(startkickpetitionmessage_ != nullptr); + startkickpetitionmessage_->Clear(); + } + if (cached_has_bits & 0x02000000u) { + GOOGLE_DCHECK(votekickrequestmessage_ != nullptr); + votekickrequestmessage_->Clear(); + } + if (cached_has_bits & 0x04000000u) { + GOOGLE_DCHECK(votekickreplymessage_ != nullptr); + votekickreplymessage_->Clear(); + } + if (cached_has_bits & 0x08000000u) { + GOOGLE_DCHECK(kickpetitionupdatemessage_ != nullptr); + kickpetitionupdatemessage_->Clear(); + } + if (cached_has_bits & 0x10000000u) { + GOOGLE_DCHECK(endkickpetitionmessage_ != nullptr); + endkickpetitionmessage_->Clear(); + } + if (cached_has_bits & 0x20000000u) { + GOOGLE_DCHECK(statisticsmessage_ != nullptr); + statisticsmessage_->Clear(); + } + if (cached_has_bits & 0x40000000u) { + GOOGLE_DCHECK(chatrequestmessage_ != nullptr); + chatrequestmessage_->Clear(); + } + if (cached_has_bits & 0x80000000u) { + GOOGLE_DCHECK(chatmessage_ != nullptr); + chatmessage_->Clear(); + } + } + cached_has_bits = _has_bits_[2]; + if (cached_has_bits & 0x000000ffu) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(chatrejectmessage_ != nullptr); + chatrejectmessage_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(dialogmessage_ != nullptr); + dialogmessage_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(timeoutwarningmessage_ != nullptr); + timeoutwarningmessage_->Clear(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(resettimeoutmessage_ != nullptr); + resettimeoutmessage_->Clear(); + } + if (cached_has_bits & 0x00000010u) { + GOOGLE_DCHECK(reportavatarmessage_ != nullptr); + reportavatarmessage_->Clear(); + } + if (cached_has_bits & 0x00000020u) { + GOOGLE_DCHECK(reportavatarackmessage_ != nullptr); + reportavatarackmessage_->Clear(); + } + if (cached_has_bits & 0x00000040u) { + GOOGLE_DCHECK(reportgamemessage_ != nullptr); + reportgamemessage_->Clear(); + } + if (cached_has_bits & 0x00000080u) { + GOOGLE_DCHECK(reportgameackmessage_ != nullptr); + reportgameackmessage_->Clear(); + } + } + if (cached_has_bits & 0x0000ff00u) { + if (cached_has_bits & 0x00000100u) { + GOOGLE_DCHECK(errormessage_ != nullptr); + errormessage_->Clear(); + } + if (cached_has_bits & 0x00000200u) { + GOOGLE_DCHECK(adminremovegamemessage_ != nullptr); + adminremovegamemessage_->Clear(); + } + if (cached_has_bits & 0x00000400u) { + GOOGLE_DCHECK(adminremovegameackmessage_ != nullptr); + adminremovegameackmessage_->Clear(); + } + if (cached_has_bits & 0x00000800u) { + GOOGLE_DCHECK(adminbanplayermessage_ != nullptr); + adminbanplayermessage_->Clear(); + } + if (cached_has_bits & 0x00001000u) { + GOOGLE_DCHECK(adminbanplayerackmessage_ != nullptr); + adminbanplayerackmessage_->Clear(); + } + if (cached_has_bits & 0x00002000u) { + GOOGLE_DCHECK(gamelistspectatorjoinedmessage_ != nullptr); + gamelistspectatorjoinedmessage_->Clear(); + } + if (cached_has_bits & 0x00004000u) { + GOOGLE_DCHECK(gamelistspectatorleftmessage_ != nullptr); + gamelistspectatorleftmessage_->Clear(); + } + if (cached_has_bits & 0x00008000u) { + GOOGLE_DCHECK(gamespectatorjoinedmessage_ != nullptr); + gamespectatorjoinedmessage_->Clear(); + } + } + if (cached_has_bits & 0x00030000u) { + if (cached_has_bits & 0x00010000u) { + GOOGLE_DCHECK(gamespectatorleftmessage_ != nullptr); + gamespectatorleftmessage_->Clear(); + } messagetype_ = 1; - if (has_announcemessage()) { - if (announcemessage_ != NULL) announcemessage_->::AnnounceMessage::Clear(); - } - if (has_initmessage()) { - if (initmessage_ != NULL) initmessage_->::InitMessage::Clear(); - } - if (has_authserverchallengemessage()) { - if (authserverchallengemessage_ != NULL) authserverchallengemessage_->::AuthServerChallengeMessage::Clear(); - } - if (has_authclientresponsemessage()) { - if (authclientresponsemessage_ != NULL) authclientresponsemessage_->::AuthClientResponseMessage::Clear(); - } - if (has_authserververificationmessage()) { - if (authserververificationmessage_ != NULL) authserververificationmessage_->::AuthServerVerificationMessage::Clear(); - } - if (has_initackmessage()) { - if (initackmessage_ != NULL) initackmessage_->::InitAckMessage::Clear(); - } - if (has_avatarrequestmessage()) { - if (avatarrequestmessage_ != NULL) avatarrequestmessage_->::AvatarRequestMessage::Clear(); - } } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (has_avatarheadermessage()) { - if (avatarheadermessage_ != NULL) avatarheadermessage_->::AvatarHeaderMessage::Clear(); - } - if (has_avatardatamessage()) { - if (avatardatamessage_ != NULL) avatardatamessage_->::AvatarDataMessage::Clear(); - } - if (has_avatarendmessage()) { - if (avatarendmessage_ != NULL) avatarendmessage_->::AvatarEndMessage::Clear(); - } - if (has_unknownavatarmessage()) { - if (unknownavatarmessage_ != NULL) unknownavatarmessage_->::UnknownAvatarMessage::Clear(); - } - if (has_playerlistmessage()) { - if (playerlistmessage_ != NULL) playerlistmessage_->::PlayerListMessage::Clear(); - } - if (has_gamelistnewmessage()) { - if (gamelistnewmessage_ != NULL) gamelistnewmessage_->::GameListNewMessage::Clear(); - } - if (has_gamelistupdatemessage()) { - if (gamelistupdatemessage_ != NULL) gamelistupdatemessage_->::GameListUpdateMessage::Clear(); - } - if (has_gamelistplayerjoinedmessage()) { - if (gamelistplayerjoinedmessage_ != NULL) gamelistplayerjoinedmessage_->::GameListPlayerJoinedMessage::Clear(); - } - } - if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { - if (has_gamelistplayerleftmessage()) { - if (gamelistplayerleftmessage_ != NULL) gamelistplayerleftmessage_->::GameListPlayerLeftMessage::Clear(); - } - if (has_gamelistadminchangedmessage()) { - if (gamelistadminchangedmessage_ != NULL) gamelistadminchangedmessage_->::GameListAdminChangedMessage::Clear(); - } - if (has_playerinforequestmessage()) { - if (playerinforequestmessage_ != NULL) playerinforequestmessage_->::PlayerInfoRequestMessage::Clear(); - } - if (has_playerinforeplymessage()) { - if (playerinforeplymessage_ != NULL) playerinforeplymessage_->::PlayerInfoReplyMessage::Clear(); - } - if (has_subscriptionrequestmessage()) { - if (subscriptionrequestmessage_ != NULL) subscriptionrequestmessage_->::SubscriptionRequestMessage::Clear(); - } - if (has_joinexistinggamemessage()) { - if (joinexistinggamemessage_ != NULL) joinexistinggamemessage_->::JoinExistingGameMessage::Clear(); - } - if (has_joinnewgamemessage()) { - if (joinnewgamemessage_ != NULL) joinnewgamemessage_->::JoinNewGameMessage::Clear(); - } - if (has_rejoinexistinggamemessage()) { - if (rejoinexistinggamemessage_ != NULL) rejoinexistinggamemessage_->::RejoinExistingGameMessage::Clear(); - } - } - if (_has_bits_[24 / 32] & (0xffu << (24 % 32))) { - if (has_joingameackmessage()) { - if (joingameackmessage_ != NULL) joingameackmessage_->::JoinGameAckMessage::Clear(); - } - if (has_joingamefailedmessage()) { - if (joingamefailedmessage_ != NULL) joingamefailedmessage_->::JoinGameFailedMessage::Clear(); - } - if (has_gameplayerjoinedmessage()) { - if (gameplayerjoinedmessage_ != NULL) gameplayerjoinedmessage_->::GamePlayerJoinedMessage::Clear(); - } - if (has_gameplayerleftmessage()) { - if (gameplayerleftmessage_ != NULL) gameplayerleftmessage_->::GamePlayerLeftMessage::Clear(); - } - if (has_gameadminchangedmessage()) { - if (gameadminchangedmessage_ != NULL) gameadminchangedmessage_->::GameAdminChangedMessage::Clear(); - } - if (has_removedfromgamemessage()) { - if (removedfromgamemessage_ != NULL) removedfromgamemessage_->::RemovedFromGameMessage::Clear(); - } - if (has_kickplayerrequestmessage()) { - if (kickplayerrequestmessage_ != NULL) kickplayerrequestmessage_->::KickPlayerRequestMessage::Clear(); - } - if (has_leavegamerequestmessage()) { - if (leavegamerequestmessage_ != NULL) leavegamerequestmessage_->::LeaveGameRequestMessage::Clear(); - } - } - if (_has_bits_[32 / 32] & (0xffu << (32 % 32))) { - if (has_inviteplayertogamemessage()) { - if (inviteplayertogamemessage_ != NULL) inviteplayertogamemessage_->::InvitePlayerToGameMessage::Clear(); - } - if (has_invitenotifymessage()) { - if (invitenotifymessage_ != NULL) invitenotifymessage_->::InviteNotifyMessage::Clear(); - } - if (has_rejectgameinvitationmessage()) { - if (rejectgameinvitationmessage_ != NULL) rejectgameinvitationmessage_->::RejectGameInvitationMessage::Clear(); - } - if (has_rejectinvnotifymessage()) { - if (rejectinvnotifymessage_ != NULL) rejectinvnotifymessage_->::RejectInvNotifyMessage::Clear(); - } - if (has_starteventmessage()) { - if (starteventmessage_ != NULL) starteventmessage_->::StartEventMessage::Clear(); - } - if (has_starteventackmessage()) { - if (starteventackmessage_ != NULL) starteventackmessage_->::StartEventAckMessage::Clear(); - } - if (has_gamestartinitialmessage()) { - if (gamestartinitialmessage_ != NULL) gamestartinitialmessage_->::GameStartInitialMessage::Clear(); - } - if (has_gamestartrejoinmessage()) { - if (gamestartrejoinmessage_ != NULL) gamestartrejoinmessage_->::GameStartRejoinMessage::Clear(); - } - } - if (_has_bits_[40 / 32] & (0xffu << (40 % 32))) { - if (has_handstartmessage()) { - if (handstartmessage_ != NULL) handstartmessage_->::HandStartMessage::Clear(); - } - if (has_playersturnmessage()) { - if (playersturnmessage_ != NULL) playersturnmessage_->::PlayersTurnMessage::Clear(); - } - if (has_myactionrequestmessage()) { - if (myactionrequestmessage_ != NULL) myactionrequestmessage_->::MyActionRequestMessage::Clear(); - } - if (has_youractionrejectedmessage()) { - if (youractionrejectedmessage_ != NULL) youractionrejectedmessage_->::YourActionRejectedMessage::Clear(); - } - if (has_playersactiondonemessage()) { - if (playersactiondonemessage_ != NULL) playersactiondonemessage_->::PlayersActionDoneMessage::Clear(); - } - if (has_dealflopcardsmessage()) { - if (dealflopcardsmessage_ != NULL) dealflopcardsmessage_->::DealFlopCardsMessage::Clear(); - } - if (has_dealturncardmessage()) { - if (dealturncardmessage_ != NULL) dealturncardmessage_->::DealTurnCardMessage::Clear(); - } - if (has_dealrivercardmessage()) { - if (dealrivercardmessage_ != NULL) dealrivercardmessage_->::DealRiverCardMessage::Clear(); - } - } - if (_has_bits_[48 / 32] & (0xffu << (48 % 32))) { - if (has_allinshowcardsmessage()) { - if (allinshowcardsmessage_ != NULL) allinshowcardsmessage_->::AllInShowCardsMessage::Clear(); - } - if (has_endofhandshowcardsmessage()) { - if (endofhandshowcardsmessage_ != NULL) endofhandshowcardsmessage_->::EndOfHandShowCardsMessage::Clear(); - } - if (has_endofhandhidecardsmessage()) { - if (endofhandhidecardsmessage_ != NULL) endofhandhidecardsmessage_->::EndOfHandHideCardsMessage::Clear(); - } - if (has_showmycardsrequestmessage()) { - if (showmycardsrequestmessage_ != NULL) showmycardsrequestmessage_->::ShowMyCardsRequestMessage::Clear(); - } - if (has_afterhandshowcardsmessage()) { - if (afterhandshowcardsmessage_ != NULL) afterhandshowcardsmessage_->::AfterHandShowCardsMessage::Clear(); - } - if (has_endofgamemessage()) { - if (endofgamemessage_ != NULL) endofgamemessage_->::EndOfGameMessage::Clear(); - } - if (has_playeridchangedmessage()) { - if (playeridchangedmessage_ != NULL) playeridchangedmessage_->::PlayerIdChangedMessage::Clear(); - } - if (has_askkickplayermessage()) { - if (askkickplayermessage_ != NULL) askkickplayermessage_->::AskKickPlayerMessage::Clear(); - } - } - if (_has_bits_[56 / 32] & (0xffu << (56 % 32))) { - if (has_askkickdeniedmessage()) { - if (askkickdeniedmessage_ != NULL) askkickdeniedmessage_->::AskKickDeniedMessage::Clear(); - } - if (has_startkickpetitionmessage()) { - if (startkickpetitionmessage_ != NULL) startkickpetitionmessage_->::StartKickPetitionMessage::Clear(); - } - if (has_votekickrequestmessage()) { - if (votekickrequestmessage_ != NULL) votekickrequestmessage_->::VoteKickRequestMessage::Clear(); - } - if (has_votekickreplymessage()) { - if (votekickreplymessage_ != NULL) votekickreplymessage_->::VoteKickReplyMessage::Clear(); - } - if (has_kickpetitionupdatemessage()) { - if (kickpetitionupdatemessage_ != NULL) kickpetitionupdatemessage_->::KickPetitionUpdateMessage::Clear(); - } - if (has_endkickpetitionmessage()) { - if (endkickpetitionmessage_ != NULL) endkickpetitionmessage_->::EndKickPetitionMessage::Clear(); - } - if (has_statisticsmessage()) { - if (statisticsmessage_ != NULL) statisticsmessage_->::StatisticsMessage::Clear(); - } - if (has_chatrequestmessage()) { - if (chatrequestmessage_ != NULL) chatrequestmessage_->::ChatRequestMessage::Clear(); - } - } - if (_has_bits_[64 / 32] & (0xffu << (64 % 32))) { - if (has_chatmessage()) { - if (chatmessage_ != NULL) chatmessage_->::ChatMessage::Clear(); - } - if (has_chatrejectmessage()) { - if (chatrejectmessage_ != NULL) chatrejectmessage_->::ChatRejectMessage::Clear(); - } - if (has_dialogmessage()) { - if (dialogmessage_ != NULL) dialogmessage_->::DialogMessage::Clear(); - } - if (has_timeoutwarningmessage()) { - if (timeoutwarningmessage_ != NULL) timeoutwarningmessage_->::TimeoutWarningMessage::Clear(); - } - if (has_resettimeoutmessage()) { - if (resettimeoutmessage_ != NULL) resettimeoutmessage_->::ResetTimeoutMessage::Clear(); - } - if (has_reportavatarmessage()) { - if (reportavatarmessage_ != NULL) reportavatarmessage_->::ReportAvatarMessage::Clear(); - } - if (has_reportavatarackmessage()) { - if (reportavatarackmessage_ != NULL) reportavatarackmessage_->::ReportAvatarAckMessage::Clear(); - } - if (has_reportgamemessage()) { - if (reportgamemessage_ != NULL) reportgamemessage_->::ReportGameMessage::Clear(); - } - } - if (_has_bits_[72 / 32] & (0xffu << (72 % 32))) { - if (has_reportgameackmessage()) { - if (reportgameackmessage_ != NULL) reportgameackmessage_->::ReportGameAckMessage::Clear(); - } - if (has_errormessage()) { - if (errormessage_ != NULL) errormessage_->::ErrorMessage::Clear(); - } - if (has_adminremovegamemessage()) { - if (adminremovegamemessage_ != NULL) adminremovegamemessage_->::AdminRemoveGameMessage::Clear(); - } - if (has_adminremovegameackmessage()) { - if (adminremovegameackmessage_ != NULL) adminremovegameackmessage_->::AdminRemoveGameAckMessage::Clear(); - } - if (has_adminbanplayermessage()) { - if (adminbanplayermessage_ != NULL) adminbanplayermessage_->::AdminBanPlayerMessage::Clear(); - } - if (has_adminbanplayerackmessage()) { - if (adminbanplayerackmessage_ != NULL) adminbanplayerackmessage_->::AdminBanPlayerAckMessage::Clear(); - } - if (has_gamelistspectatorjoinedmessage()) { - if (gamelistspectatorjoinedmessage_ != NULL) gamelistspectatorjoinedmessage_->::GameListSpectatorJoinedMessage::Clear(); - } - if (has_gamelistspectatorleftmessage()) { - if (gamelistspectatorleftmessage_ != NULL) gamelistspectatorleftmessage_->::GameListSpectatorLeftMessage::Clear(); - } - } - if (_has_bits_[80 / 32] & (0xffu << (80 % 32))) { - if (has_gamespectatorjoinedmessage()) { - if (gamespectatorjoinedmessage_ != NULL) gamespectatorjoinedmessage_->::GameSpectatorJoinedMessage::Clear(); - } - if (has_gamespectatorleftmessage()) { - if (gamespectatorleftmessage_ != NULL) gamespectatorleftmessage_->::GameSpectatorLeftMessage::Clear(); - } - if (has_gamestartreentrymessage()) { - if (gamestartreentrymessage_ != NULL) gamestartreentrymessage_->::GameStartReentryMessage::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + _has_bits_.Clear(); + _internal_metadata_.Clear(); } -bool PokerTHMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { +const char* PokerTHMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { // required .PokerTHMessage.PokerTHMessageType messageType = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::PokerTHMessage_PokerTHMessageType_IsValid(value)) { - set_messagetype(static_cast< ::PokerTHMessage_PokerTHMessageType >(value)); + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::PokerTHMessage_PokerTHMessageType_IsValid(val))) { + _internal_set_messagetype(static_cast<::PokerTHMessage_PokerTHMessageType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_announceMessage; - break; - } - + } else goto handle_unusual; + continue; // optional .AnnounceMessage announceMessage = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_announceMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_announcemessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_initMessage; - break; - } - + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_announcemessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .InitMessage initMessage = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_initMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_initmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_authServerChallengeMessage; - break; - } - + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_initmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_authServerChallengeMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_authserverchallengemessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(42)) goto parse_authClientResponseMessage; - break; - } - + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_authserverchallengemessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .AuthClientResponseMessage authClientResponseMessage = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_authClientResponseMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_authclientresponsemessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(50)) goto parse_authServerVerificationMessage; - break; - } - + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_authclientresponsemessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_authServerVerificationMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_authserververificationmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(58)) goto parse_initAckMessage; - break; - } - + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_authserververificationmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .InitAckMessage initAckMessage = 7; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_initAckMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_initackmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(66)) goto parse_avatarRequestMessage; - break; - } - + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_initackmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .AvatarRequestMessage avatarRequestMessage = 8; - case 8: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_avatarRequestMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_avatarrequestmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(74)) goto parse_avatarHeaderMessage; - break; - } - + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_avatarrequestmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .AvatarHeaderMessage avatarHeaderMessage = 9; - case 9: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_avatarHeaderMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_avatarheadermessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(82)) goto parse_avatarDataMessage; - break; - } - + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_avatarheadermessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .AvatarDataMessage avatarDataMessage = 10; - case 10: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_avatarDataMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_avatardatamessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(90)) goto parse_avatarEndMessage; - break; - } - + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_avatardatamessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .AvatarEndMessage avatarEndMessage = 11; - case 11: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_avatarEndMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_avatarendmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(98)) goto parse_unknownAvatarMessage; - break; - } - + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { + ptr = ctx->ParseMessage(_internal_mutable_avatarendmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .UnknownAvatarMessage unknownAvatarMessage = 12; - case 12: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_unknownAvatarMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_unknownavatarmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(106)) goto parse_playerListMessage; - break; - } - + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { + ptr = ctx->ParseMessage(_internal_mutable_unknownavatarmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .PlayerListMessage playerListMessage = 13; - case 13: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_playerListMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_playerlistmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(114)) goto parse_gameListNewMessage; - break; - } - + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) { + ptr = ctx->ParseMessage(_internal_mutable_playerlistmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .GameListNewMessage gameListNewMessage = 14; - case 14: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_gameListNewMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gamelistnewmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(122)) goto parse_gameListUpdateMessage; - break; - } - + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 114)) { + ptr = ctx->ParseMessage(_internal_mutable_gamelistnewmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .GameListUpdateMessage gameListUpdateMessage = 15; - case 15: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_gameListUpdateMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gamelistupdatemessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(130)) goto parse_gameListPlayerJoinedMessage; - break; - } - + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) { + ptr = ctx->ParseMessage(_internal_mutable_gamelistupdatemessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - case 16: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_gameListPlayerJoinedMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gamelistplayerjoinedmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(138)) goto parse_gameListPlayerLeftMessage; - break; - } - + case 16: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { + ptr = ctx->ParseMessage(_internal_mutable_gamelistplayerjoinedmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - case 17: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_gameListPlayerLeftMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gamelistplayerleftmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(146)) goto parse_gameListAdminChangedMessage; - break; - } - + case 17: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) { + ptr = ctx->ParseMessage(_internal_mutable_gamelistplayerleftmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - case 18: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_gameListAdminChangedMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gamelistadminchangedmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(154)) goto parse_playerInfoRequestMessage; - break; - } - + case 18: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 146)) { + ptr = ctx->ParseMessage(_internal_mutable_gamelistadminchangedmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - case 19: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_playerInfoRequestMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_playerinforequestmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(162)) goto parse_playerInfoReplyMessage; - break; - } - + case 19: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 154)) { + ptr = ctx->ParseMessage(_internal_mutable_playerinforequestmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - case 20: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_playerInfoReplyMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_playerinforeplymessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(170)) goto parse_subscriptionRequestMessage; - break; - } - + case 20: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 162)) { + ptr = ctx->ParseMessage(_internal_mutable_playerinforeplymessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - case 21: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_subscriptionRequestMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_subscriptionrequestmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(178)) goto parse_joinExistingGameMessage; - break; - } - + case 21: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 170)) { + ptr = ctx->ParseMessage(_internal_mutable_subscriptionrequestmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .JoinExistingGameMessage joinExistingGameMessage = 22; - case 22: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_joinExistingGameMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_joinexistinggamemessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(186)) goto parse_joinNewGameMessage; - break; - } - + case 22: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 178)) { + ptr = ctx->ParseMessage(_internal_mutable_joinexistinggamemessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .JoinNewGameMessage joinNewGameMessage = 23; - case 23: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_joinNewGameMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_joinnewgamemessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(194)) goto parse_rejoinExistingGameMessage; - break; - } - + case 23: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 186)) { + ptr = ctx->ParseMessage(_internal_mutable_joinnewgamemessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - case 24: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_rejoinExistingGameMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_rejoinexistinggamemessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(202)) goto parse_joinGameAckMessage; - break; - } - + case 24: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 194)) { + ptr = ctx->ParseMessage(_internal_mutable_rejoinexistinggamemessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .JoinGameAckMessage joinGameAckMessage = 25; - case 25: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_joinGameAckMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_joingameackmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(210)) goto parse_joinGameFailedMessage; - break; - } - + case 25: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 202)) { + ptr = ctx->ParseMessage(_internal_mutable_joingameackmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .JoinGameFailedMessage joinGameFailedMessage = 26; - case 26: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_joinGameFailedMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_joingamefailedmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(218)) goto parse_gamePlayerJoinedMessage; - break; - } - + case 26: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 210)) { + ptr = ctx->ParseMessage(_internal_mutable_joingamefailedmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - case 27: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_gamePlayerJoinedMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gameplayerjoinedmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(226)) goto parse_gamePlayerLeftMessage; - break; - } - + case 27: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 218)) { + ptr = ctx->ParseMessage(_internal_mutable_gameplayerjoinedmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - case 28: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_gamePlayerLeftMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gameplayerleftmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(234)) goto parse_gameAdminChangedMessage; - break; - } - + case 28: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 226)) { + ptr = ctx->ParseMessage(_internal_mutable_gameplayerleftmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - case 29: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_gameAdminChangedMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gameadminchangedmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(242)) goto parse_removedFromGameMessage; - break; - } - + case 29: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 234)) { + ptr = ctx->ParseMessage(_internal_mutable_gameadminchangedmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .RemovedFromGameMessage removedFromGameMessage = 30; - case 30: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_removedFromGameMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_removedfromgamemessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(250)) goto parse_kickPlayerRequestMessage; - break; - } - + case 30: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 242)) { + ptr = ctx->ParseMessage(_internal_mutable_removedfromgamemessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - case 31: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_kickPlayerRequestMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_kickplayerrequestmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(258)) goto parse_leaveGameRequestMessage; - break; - } - + case 31: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 250)) { + ptr = ctx->ParseMessage(_internal_mutable_kickplayerrequestmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - case 32: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_leaveGameRequestMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_leavegamerequestmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(266)) goto parse_invitePlayerToGameMessage; - break; - } - + case 32: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 2)) { + ptr = ctx->ParseMessage(_internal_mutable_leavegamerequestmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - case 33: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_invitePlayerToGameMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_inviteplayertogamemessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(274)) goto parse_inviteNotifyMessage; - break; - } - + case 33: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_inviteplayertogamemessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .InviteNotifyMessage inviteNotifyMessage = 34; - case 34: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_inviteNotifyMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_invitenotifymessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(282)) goto parse_rejectGameInvitationMessage; - break; - } - + case 34: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_invitenotifymessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - case 35: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_rejectGameInvitationMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_rejectgameinvitationmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(290)) goto parse_rejectInvNotifyMessage; - break; - } - + case 35: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_rejectgameinvitationmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - case 36: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_rejectInvNotifyMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_rejectinvnotifymessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(298)) goto parse_startEventMessage; - break; - } - + case 36: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_rejectinvnotifymessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .StartEventMessage startEventMessage = 37; - case 37: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_startEventMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_starteventmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(306)) goto parse_startEventAckMessage; - break; - } - + case 37: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_starteventmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .StartEventAckMessage startEventAckMessage = 38; - case 38: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_startEventAckMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_starteventackmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(314)) goto parse_gameStartInitialMessage; - break; - } - + case 38: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_starteventackmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .GameStartInitialMessage gameStartInitialMessage = 39; - case 39: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_gameStartInitialMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gamestartinitialmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(322)) goto parse_gameStartRejoinMessage; - break; - } - + case 39: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_gamestartinitialmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - case 40: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_gameStartRejoinMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gamestartrejoinmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(330)) goto parse_handStartMessage; - break; - } - + case 40: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_gamestartrejoinmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .HandStartMessage handStartMessage = 41; - case 41: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_handStartMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_handstartmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(338)) goto parse_playersTurnMessage; - break; - } - + case 41: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_handstartmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .PlayersTurnMessage playersTurnMessage = 42; - case 42: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_playersTurnMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_playersturnmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(346)) goto parse_myActionRequestMessage; - break; - } - + case 42: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_playersturnmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .MyActionRequestMessage myActionRequestMessage = 43; - case 43: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_myActionRequestMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_myactionrequestmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(354)) goto parse_yourActionRejectedMessage; - break; - } - + case 43: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { + ptr = ctx->ParseMessage(_internal_mutable_myactionrequestmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - case 44: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_yourActionRejectedMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_youractionrejectedmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(362)) goto parse_playersActionDoneMessage; - break; - } - + case 44: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { + ptr = ctx->ParseMessage(_internal_mutable_youractionrejectedmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - case 45: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_playersActionDoneMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_playersactiondonemessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(370)) goto parse_dealFlopCardsMessage; - break; - } - + case 45: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) { + ptr = ctx->ParseMessage(_internal_mutable_playersactiondonemessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - case 46: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_dealFlopCardsMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_dealflopcardsmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(378)) goto parse_dealTurnCardMessage; - break; - } - + case 46: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 114)) { + ptr = ctx->ParseMessage(_internal_mutable_dealflopcardsmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .DealTurnCardMessage dealTurnCardMessage = 47; - case 47: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_dealTurnCardMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_dealturncardmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(386)) goto parse_dealRiverCardMessage; - break; - } - + case 47: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) { + ptr = ctx->ParseMessage(_internal_mutable_dealturncardmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .DealRiverCardMessage dealRiverCardMessage = 48; - case 48: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_dealRiverCardMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_dealrivercardmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(394)) goto parse_allInShowCardsMessage; - break; - } - + case 48: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { + ptr = ctx->ParseMessage(_internal_mutable_dealrivercardmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .AllInShowCardsMessage allInShowCardsMessage = 49; - case 49: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_allInShowCardsMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_allinshowcardsmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(402)) goto parse_endOfHandShowCardsMessage; - break; - } - + case 49: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) { + ptr = ctx->ParseMessage(_internal_mutable_allinshowcardsmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - case 50: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_endOfHandShowCardsMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_endofhandshowcardsmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(410)) goto parse_endOfHandHideCardsMessage; - break; - } - + case 50: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 146)) { + ptr = ctx->ParseMessage(_internal_mutable_endofhandshowcardsmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - case 51: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_endOfHandHideCardsMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_endofhandhidecardsmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(418)) goto parse_showMyCardsRequestMessage; - break; - } - + case 51: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 154)) { + ptr = ctx->ParseMessage(_internal_mutable_endofhandhidecardsmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - case 52: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_showMyCardsRequestMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_showmycardsrequestmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(426)) goto parse_afterHandShowCardsMessage; - break; - } - + case 52: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 162)) { + ptr = ctx->ParseMessage(_internal_mutable_showmycardsrequestmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - case 53: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_afterHandShowCardsMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_afterhandshowcardsmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(434)) goto parse_endOfGameMessage; - break; - } - + case 53: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 170)) { + ptr = ctx->ParseMessage(_internal_mutable_afterhandshowcardsmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .EndOfGameMessage endOfGameMessage = 54; - case 54: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_endOfGameMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_endofgamemessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(442)) goto parse_playerIdChangedMessage; - break; - } - + case 54: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 178)) { + ptr = ctx->ParseMessage(_internal_mutable_endofgamemessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - case 55: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_playerIdChangedMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_playeridchangedmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(450)) goto parse_askKickPlayerMessage; - break; - } - + case 55: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 186)) { + ptr = ctx->ParseMessage(_internal_mutable_playeridchangedmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .AskKickPlayerMessage askKickPlayerMessage = 56; - case 56: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_askKickPlayerMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_askkickplayermessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(458)) goto parse_askKickDeniedMessage; - break; - } - + case 56: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 194)) { + ptr = ctx->ParseMessage(_internal_mutable_askkickplayermessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .AskKickDeniedMessage askKickDeniedMessage = 57; - case 57: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_askKickDeniedMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_askkickdeniedmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(466)) goto parse_startKickPetitionMessage; - break; - } - + case 57: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 202)) { + ptr = ctx->ParseMessage(_internal_mutable_askkickdeniedmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .StartKickPetitionMessage startKickPetitionMessage = 58; - case 58: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_startKickPetitionMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_startkickpetitionmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(474)) goto parse_voteKickRequestMessage; - break; - } - + case 58: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 210)) { + ptr = ctx->ParseMessage(_internal_mutable_startkickpetitionmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .VoteKickRequestMessage voteKickRequestMessage = 59; - case 59: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_voteKickRequestMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_votekickrequestmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(482)) goto parse_voteKickReplyMessage; - break; - } - + case 59: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 218)) { + ptr = ctx->ParseMessage(_internal_mutable_votekickrequestmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .VoteKickReplyMessage voteKickReplyMessage = 60; - case 60: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_voteKickReplyMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_votekickreplymessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(490)) goto parse_kickPetitionUpdateMessage; - break; - } - + case 60: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 226)) { + ptr = ctx->ParseMessage(_internal_mutable_votekickreplymessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - case 61: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_kickPetitionUpdateMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_kickpetitionupdatemessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(498)) goto parse_endKickPetitionMessage; - break; - } - + case 61: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 234)) { + ptr = ctx->ParseMessage(_internal_mutable_kickpetitionupdatemessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .EndKickPetitionMessage endKickPetitionMessage = 62; - case 62: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_endKickPetitionMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_endkickpetitionmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(506)) goto parse_statisticsMessage; - break; - } - + case 62: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 242)) { + ptr = ctx->ParseMessage(_internal_mutable_endkickpetitionmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .StatisticsMessage statisticsMessage = 63; - case 63: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_statisticsMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_statisticsmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(514)) goto parse_chatRequestMessage; - break; - } - + case 63: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 250)) { + ptr = ctx->ParseMessage(_internal_mutable_statisticsmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .ChatRequestMessage chatRequestMessage = 64; - case 64: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_chatRequestMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_chatrequestmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(522)) goto parse_chatMessage; - break; - } - + case 64: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 2)) { + ptr = ctx->ParseMessage(_internal_mutable_chatrequestmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .ChatMessage chatMessage = 65; - case 65: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_chatMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_chatmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(530)) goto parse_chatRejectMessage; - break; - } - + case 65: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_chatmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .ChatRejectMessage chatRejectMessage = 66; - case 66: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_chatRejectMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_chatrejectmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(538)) goto parse_dialogMessage; - break; - } - + case 66: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_chatrejectmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .DialogMessage dialogMessage = 67; - case 67: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_dialogMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_dialogmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(546)) goto parse_timeoutWarningMessage; - break; - } - + case 67: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_dialogmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .TimeoutWarningMessage timeoutWarningMessage = 68; - case 68: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_timeoutWarningMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_timeoutwarningmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(554)) goto parse_resetTimeoutMessage; - break; - } - + case 68: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_timeoutwarningmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .ResetTimeoutMessage resetTimeoutMessage = 69; - case 69: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_resetTimeoutMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_resettimeoutmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(562)) goto parse_reportAvatarMessage; - break; - } - + case 69: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_resettimeoutmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .ReportAvatarMessage reportAvatarMessage = 70; - case 70: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_reportAvatarMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_reportavatarmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(570)) goto parse_reportAvatarAckMessage; - break; - } - + case 70: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_reportavatarmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - case 71: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_reportAvatarAckMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_reportavatarackmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(578)) goto parse_reportGameMessage; - break; - } - + case 71: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_reportavatarackmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .ReportGameMessage reportGameMessage = 72; - case 72: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_reportGameMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_reportgamemessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(586)) goto parse_reportGameAckMessage; - break; - } - + case 72: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_reportgamemessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .ReportGameAckMessage reportGameAckMessage = 73; - case 73: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_reportGameAckMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_reportgameackmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(594)) goto parse_errorMessage; - break; - } - + case 73: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_reportgameackmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .ErrorMessage errorMessage = 74; - case 74: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_errorMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_errormessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(602)) goto parse_adminRemoveGameMessage; - break; - } - + case 74: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_errormessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - case 75: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_adminRemoveGameMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_adminremovegamemessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(610)) goto parse_adminRemoveGameAckMessage; - break; - } - + case 75: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { + ptr = ctx->ParseMessage(_internal_mutable_adminremovegamemessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - case 76: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_adminRemoveGameAckMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_adminremovegameackmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(618)) goto parse_adminBanPlayerMessage; - break; - } - + case 76: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { + ptr = ctx->ParseMessage(_internal_mutable_adminremovegameackmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - case 77: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_adminBanPlayerMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_adminbanplayermessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(626)) goto parse_adminBanPlayerAckMessage; - break; - } - + case 77: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) { + ptr = ctx->ParseMessage(_internal_mutable_adminbanplayermessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - case 78: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_adminBanPlayerAckMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_adminbanplayerackmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(634)) goto parse_gameListSpectatorJoinedMessage; - break; - } - + case 78: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 114)) { + ptr = ctx->ParseMessage(_internal_mutable_adminbanplayerackmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - case 79: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_gameListSpectatorJoinedMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gamelistspectatorjoinedmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(642)) goto parse_gameListSpectatorLeftMessage; - break; - } - + case 79: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) { + ptr = ctx->ParseMessage(_internal_mutable_gamelistspectatorjoinedmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - case 80: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_gameListSpectatorLeftMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gamelistspectatorleftmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(650)) goto parse_gameSpectatorJoinedMessage; - break; - } - + case 80: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { + ptr = ctx->ParseMessage(_internal_mutable_gamelistspectatorleftmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - case 81: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_gameSpectatorJoinedMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gamespectatorjoinedmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(658)) goto parse_gameSpectatorLeftMessage; - break; - } - + case 81: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) { + ptr = ctx->ParseMessage(_internal_mutable_gamespectatorjoinedmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - case 82: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_gameSpectatorLeftMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gamespectatorleftmessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(666)) goto parse_gameStartReentryMessage; - break; - } - - // optional .GameStartReentryMessage gameStartReentryMessage = 83; - case 83: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_gameStartReentryMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gamestartreentrymessage())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - + case 82: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 146)) { + ptr = ctx->ParseMessage(_internal_mutable_gamespectatorleftmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; } - } - } - return true; -#undef DO_ + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ } -void PokerTHMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { +::PROTOBUF_NAMESPACE_ID::uint8* PokerTHMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:PokerTHMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[2]; // required .PokerTHMessage.PokerTHMessageType messageType = 1; - if (has_messagetype()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->messagetype(), output); + if (cached_has_bits & 0x00020000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 1, this->_internal_messagetype(), target); } + cached_has_bits = _has_bits_[0]; // optional .AnnounceMessage announceMessage = 2; - if (has_announcemessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, this->announcemessage(), output); + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::announcemessage(this), target, stream); } // optional .InitMessage initMessage = 3; - if (has_initmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 3, this->initmessage(), output); + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 3, _Internal::initmessage(this), target, stream); } // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - if (has_authserverchallengemessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 4, this->authserverchallengemessage(), output); + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 4, _Internal::authserverchallengemessage(this), target, stream); } // optional .AuthClientResponseMessage authClientResponseMessage = 5; - if (has_authclientresponsemessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 5, this->authclientresponsemessage(), output); + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 5, _Internal::authclientresponsemessage(this), target, stream); } // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - if (has_authserververificationmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 6, this->authserververificationmessage(), output); + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 6, _Internal::authserververificationmessage(this), target, stream); } // optional .InitAckMessage initAckMessage = 7; - if (has_initackmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 7, this->initackmessage(), output); + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 7, _Internal::initackmessage(this), target, stream); } // optional .AvatarRequestMessage avatarRequestMessage = 8; - if (has_avatarrequestmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 8, this->avatarrequestmessage(), output); + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 8, _Internal::avatarrequestmessage(this), target, stream); } // optional .AvatarHeaderMessage avatarHeaderMessage = 9; - if (has_avatarheadermessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 9, this->avatarheadermessage(), output); + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 9, _Internal::avatarheadermessage(this), target, stream); } // optional .AvatarDataMessage avatarDataMessage = 10; - if (has_avatardatamessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 10, this->avatardatamessage(), output); + if (cached_has_bits & 0x00000100u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 10, _Internal::avatardatamessage(this), target, stream); } // optional .AvatarEndMessage avatarEndMessage = 11; - if (has_avatarendmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 11, this->avatarendmessage(), output); + if (cached_has_bits & 0x00000200u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 11, _Internal::avatarendmessage(this), target, stream); } // optional .UnknownAvatarMessage unknownAvatarMessage = 12; - if (has_unknownavatarmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 12, this->unknownavatarmessage(), output); + if (cached_has_bits & 0x00000400u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 12, _Internal::unknownavatarmessage(this), target, stream); } // optional .PlayerListMessage playerListMessage = 13; - if (has_playerlistmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 13, this->playerlistmessage(), output); + if (cached_has_bits & 0x00000800u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 13, _Internal::playerlistmessage(this), target, stream); } // optional .GameListNewMessage gameListNewMessage = 14; - if (has_gamelistnewmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 14, this->gamelistnewmessage(), output); + if (cached_has_bits & 0x00001000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 14, _Internal::gamelistnewmessage(this), target, stream); } // optional .GameListUpdateMessage gameListUpdateMessage = 15; - if (has_gamelistupdatemessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 15, this->gamelistupdatemessage(), output); + if (cached_has_bits & 0x00002000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 15, _Internal::gamelistupdatemessage(this), target, stream); } // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - if (has_gamelistplayerjoinedmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 16, this->gamelistplayerjoinedmessage(), output); + if (cached_has_bits & 0x00004000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 16, _Internal::gamelistplayerjoinedmessage(this), target, stream); } // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - if (has_gamelistplayerleftmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 17, this->gamelistplayerleftmessage(), output); + if (cached_has_bits & 0x00008000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 17, _Internal::gamelistplayerleftmessage(this), target, stream); } // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - if (has_gamelistadminchangedmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 18, this->gamelistadminchangedmessage(), output); + if (cached_has_bits & 0x00010000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 18, _Internal::gamelistadminchangedmessage(this), target, stream); } // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - if (has_playerinforequestmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 19, this->playerinforequestmessage(), output); + if (cached_has_bits & 0x00020000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 19, _Internal::playerinforequestmessage(this), target, stream); } // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - if (has_playerinforeplymessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 20, this->playerinforeplymessage(), output); + if (cached_has_bits & 0x00040000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 20, _Internal::playerinforeplymessage(this), target, stream); } // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - if (has_subscriptionrequestmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 21, this->subscriptionrequestmessage(), output); + if (cached_has_bits & 0x00080000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 21, _Internal::subscriptionrequestmessage(this), target, stream); } // optional .JoinExistingGameMessage joinExistingGameMessage = 22; - if (has_joinexistinggamemessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 22, this->joinexistinggamemessage(), output); + if (cached_has_bits & 0x00100000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 22, _Internal::joinexistinggamemessage(this), target, stream); } // optional .JoinNewGameMessage joinNewGameMessage = 23; - if (has_joinnewgamemessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 23, this->joinnewgamemessage(), output); + if (cached_has_bits & 0x00200000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 23, _Internal::joinnewgamemessage(this), target, stream); } // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - if (has_rejoinexistinggamemessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 24, this->rejoinexistinggamemessage(), output); + if (cached_has_bits & 0x00400000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 24, _Internal::rejoinexistinggamemessage(this), target, stream); } // optional .JoinGameAckMessage joinGameAckMessage = 25; - if (has_joingameackmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 25, this->joingameackmessage(), output); + if (cached_has_bits & 0x00800000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 25, _Internal::joingameackmessage(this), target, stream); } // optional .JoinGameFailedMessage joinGameFailedMessage = 26; - if (has_joingamefailedmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 26, this->joingamefailedmessage(), output); + if (cached_has_bits & 0x01000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 26, _Internal::joingamefailedmessage(this), target, stream); } // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - if (has_gameplayerjoinedmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 27, this->gameplayerjoinedmessage(), output); + if (cached_has_bits & 0x02000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 27, _Internal::gameplayerjoinedmessage(this), target, stream); } // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - if (has_gameplayerleftmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 28, this->gameplayerleftmessage(), output); + if (cached_has_bits & 0x04000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 28, _Internal::gameplayerleftmessage(this), target, stream); } // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - if (has_gameadminchangedmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 29, this->gameadminchangedmessage(), output); + if (cached_has_bits & 0x08000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 29, _Internal::gameadminchangedmessage(this), target, stream); } // optional .RemovedFromGameMessage removedFromGameMessage = 30; - if (has_removedfromgamemessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 30, this->removedfromgamemessage(), output); + if (cached_has_bits & 0x10000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 30, _Internal::removedfromgamemessage(this), target, stream); } // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - if (has_kickplayerrequestmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 31, this->kickplayerrequestmessage(), output); + if (cached_has_bits & 0x20000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 31, _Internal::kickplayerrequestmessage(this), target, stream); } // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - if (has_leavegamerequestmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 32, this->leavegamerequestmessage(), output); + if (cached_has_bits & 0x40000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 32, _Internal::leavegamerequestmessage(this), target, stream); } // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - if (has_inviteplayertogamemessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 33, this->inviteplayertogamemessage(), output); + if (cached_has_bits & 0x80000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 33, _Internal::inviteplayertogamemessage(this), target, stream); } + cached_has_bits = _has_bits_[1]; // optional .InviteNotifyMessage inviteNotifyMessage = 34; - if (has_invitenotifymessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 34, this->invitenotifymessage(), output); + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 34, _Internal::invitenotifymessage(this), target, stream); } // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - if (has_rejectgameinvitationmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 35, this->rejectgameinvitationmessage(), output); + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 35, _Internal::rejectgameinvitationmessage(this), target, stream); } // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - if (has_rejectinvnotifymessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 36, this->rejectinvnotifymessage(), output); + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 36, _Internal::rejectinvnotifymessage(this), target, stream); } // optional .StartEventMessage startEventMessage = 37; - if (has_starteventmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 37, this->starteventmessage(), output); + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 37, _Internal::starteventmessage(this), target, stream); } // optional .StartEventAckMessage startEventAckMessage = 38; - if (has_starteventackmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 38, this->starteventackmessage(), output); + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 38, _Internal::starteventackmessage(this), target, stream); } // optional .GameStartInitialMessage gameStartInitialMessage = 39; - if (has_gamestartinitialmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 39, this->gamestartinitialmessage(), output); + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 39, _Internal::gamestartinitialmessage(this), target, stream); } // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - if (has_gamestartrejoinmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 40, this->gamestartrejoinmessage(), output); + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 40, _Internal::gamestartrejoinmessage(this), target, stream); } // optional .HandStartMessage handStartMessage = 41; - if (has_handstartmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 41, this->handstartmessage(), output); + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 41, _Internal::handstartmessage(this), target, stream); } // optional .PlayersTurnMessage playersTurnMessage = 42; - if (has_playersturnmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 42, this->playersturnmessage(), output); + if (cached_has_bits & 0x00000100u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 42, _Internal::playersturnmessage(this), target, stream); } // optional .MyActionRequestMessage myActionRequestMessage = 43; - if (has_myactionrequestmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 43, this->myactionrequestmessage(), output); + if (cached_has_bits & 0x00000200u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 43, _Internal::myactionrequestmessage(this), target, stream); } // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - if (has_youractionrejectedmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 44, this->youractionrejectedmessage(), output); + if (cached_has_bits & 0x00000400u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 44, _Internal::youractionrejectedmessage(this), target, stream); } // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - if (has_playersactiondonemessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 45, this->playersactiondonemessage(), output); + if (cached_has_bits & 0x00000800u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 45, _Internal::playersactiondonemessage(this), target, stream); } // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - if (has_dealflopcardsmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 46, this->dealflopcardsmessage(), output); + if (cached_has_bits & 0x00001000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 46, _Internal::dealflopcardsmessage(this), target, stream); } // optional .DealTurnCardMessage dealTurnCardMessage = 47; - if (has_dealturncardmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 47, this->dealturncardmessage(), output); + if (cached_has_bits & 0x00002000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 47, _Internal::dealturncardmessage(this), target, stream); } // optional .DealRiverCardMessage dealRiverCardMessage = 48; - if (has_dealrivercardmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 48, this->dealrivercardmessage(), output); + if (cached_has_bits & 0x00004000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 48, _Internal::dealrivercardmessage(this), target, stream); } // optional .AllInShowCardsMessage allInShowCardsMessage = 49; - if (has_allinshowcardsmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 49, this->allinshowcardsmessage(), output); + if (cached_has_bits & 0x00008000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 49, _Internal::allinshowcardsmessage(this), target, stream); } // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - if (has_endofhandshowcardsmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 50, this->endofhandshowcardsmessage(), output); + if (cached_has_bits & 0x00010000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 50, _Internal::endofhandshowcardsmessage(this), target, stream); } // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - if (has_endofhandhidecardsmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 51, this->endofhandhidecardsmessage(), output); + if (cached_has_bits & 0x00020000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 51, _Internal::endofhandhidecardsmessage(this), target, stream); } // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - if (has_showmycardsrequestmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 52, this->showmycardsrequestmessage(), output); + if (cached_has_bits & 0x00040000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 52, _Internal::showmycardsrequestmessage(this), target, stream); } // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - if (has_afterhandshowcardsmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 53, this->afterhandshowcardsmessage(), output); + if (cached_has_bits & 0x00080000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 53, _Internal::afterhandshowcardsmessage(this), target, stream); } // optional .EndOfGameMessage endOfGameMessage = 54; - if (has_endofgamemessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 54, this->endofgamemessage(), output); + if (cached_has_bits & 0x00100000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 54, _Internal::endofgamemessage(this), target, stream); } // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - if (has_playeridchangedmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 55, this->playeridchangedmessage(), output); + if (cached_has_bits & 0x00200000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 55, _Internal::playeridchangedmessage(this), target, stream); } // optional .AskKickPlayerMessage askKickPlayerMessage = 56; - if (has_askkickplayermessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 56, this->askkickplayermessage(), output); + if (cached_has_bits & 0x00400000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 56, _Internal::askkickplayermessage(this), target, stream); } // optional .AskKickDeniedMessage askKickDeniedMessage = 57; - if (has_askkickdeniedmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 57, this->askkickdeniedmessage(), output); + if (cached_has_bits & 0x00800000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 57, _Internal::askkickdeniedmessage(this), target, stream); } // optional .StartKickPetitionMessage startKickPetitionMessage = 58; - if (has_startkickpetitionmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 58, this->startkickpetitionmessage(), output); + if (cached_has_bits & 0x01000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 58, _Internal::startkickpetitionmessage(this), target, stream); } // optional .VoteKickRequestMessage voteKickRequestMessage = 59; - if (has_votekickrequestmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 59, this->votekickrequestmessage(), output); + if (cached_has_bits & 0x02000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 59, _Internal::votekickrequestmessage(this), target, stream); } // optional .VoteKickReplyMessage voteKickReplyMessage = 60; - if (has_votekickreplymessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 60, this->votekickreplymessage(), output); + if (cached_has_bits & 0x04000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 60, _Internal::votekickreplymessage(this), target, stream); } // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - if (has_kickpetitionupdatemessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 61, this->kickpetitionupdatemessage(), output); + if (cached_has_bits & 0x08000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 61, _Internal::kickpetitionupdatemessage(this), target, stream); } // optional .EndKickPetitionMessage endKickPetitionMessage = 62; - if (has_endkickpetitionmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 62, this->endkickpetitionmessage(), output); + if (cached_has_bits & 0x10000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 62, _Internal::endkickpetitionmessage(this), target, stream); } // optional .StatisticsMessage statisticsMessage = 63; - if (has_statisticsmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 63, this->statisticsmessage(), output); + if (cached_has_bits & 0x20000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 63, _Internal::statisticsmessage(this), target, stream); } // optional .ChatRequestMessage chatRequestMessage = 64; - if (has_chatrequestmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 64, this->chatrequestmessage(), output); + if (cached_has_bits & 0x40000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 64, _Internal::chatrequestmessage(this), target, stream); } // optional .ChatMessage chatMessage = 65; - if (has_chatmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 65, this->chatmessage(), output); + if (cached_has_bits & 0x80000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 65, _Internal::chatmessage(this), target, stream); } + cached_has_bits = _has_bits_[2]; // optional .ChatRejectMessage chatRejectMessage = 66; - if (has_chatrejectmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 66, this->chatrejectmessage(), output); + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 66, _Internal::chatrejectmessage(this), target, stream); } // optional .DialogMessage dialogMessage = 67; - if (has_dialogmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 67, this->dialogmessage(), output); + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 67, _Internal::dialogmessage(this), target, stream); } // optional .TimeoutWarningMessage timeoutWarningMessage = 68; - if (has_timeoutwarningmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 68, this->timeoutwarningmessage(), output); + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 68, _Internal::timeoutwarningmessage(this), target, stream); } // optional .ResetTimeoutMessage resetTimeoutMessage = 69; - if (has_resettimeoutmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 69, this->resettimeoutmessage(), output); + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 69, _Internal::resettimeoutmessage(this), target, stream); } // optional .ReportAvatarMessage reportAvatarMessage = 70; - if (has_reportavatarmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 70, this->reportavatarmessage(), output); + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 70, _Internal::reportavatarmessage(this), target, stream); } // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - if (has_reportavatarackmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 71, this->reportavatarackmessage(), output); + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 71, _Internal::reportavatarackmessage(this), target, stream); } // optional .ReportGameMessage reportGameMessage = 72; - if (has_reportgamemessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 72, this->reportgamemessage(), output); + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 72, _Internal::reportgamemessage(this), target, stream); } // optional .ReportGameAckMessage reportGameAckMessage = 73; - if (has_reportgameackmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 73, this->reportgameackmessage(), output); + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 73, _Internal::reportgameackmessage(this), target, stream); } // optional .ErrorMessage errorMessage = 74; - if (has_errormessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 74, this->errormessage(), output); + if (cached_has_bits & 0x00000100u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 74, _Internal::errormessage(this), target, stream); } // optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - if (has_adminremovegamemessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 75, this->adminremovegamemessage(), output); + if (cached_has_bits & 0x00000200u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 75, _Internal::adminremovegamemessage(this), target, stream); } // optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - if (has_adminremovegameackmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 76, this->adminremovegameackmessage(), output); + if (cached_has_bits & 0x00000400u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 76, _Internal::adminremovegameackmessage(this), target, stream); } // optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - if (has_adminbanplayermessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 77, this->adminbanplayermessage(), output); + if (cached_has_bits & 0x00000800u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 77, _Internal::adminbanplayermessage(this), target, stream); } // optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - if (has_adminbanplayerackmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 78, this->adminbanplayerackmessage(), output); + if (cached_has_bits & 0x00001000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 78, _Internal::adminbanplayerackmessage(this), target, stream); } // optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - if (has_gamelistspectatorjoinedmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 79, this->gamelistspectatorjoinedmessage(), output); + if (cached_has_bits & 0x00002000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 79, _Internal::gamelistspectatorjoinedmessage(this), target, stream); } // optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - if (has_gamelistspectatorleftmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 80, this->gamelistspectatorleftmessage(), output); + if (cached_has_bits & 0x00004000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 80, _Internal::gamelistspectatorleftmessage(this), target, stream); } // optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - if (has_gamespectatorjoinedmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 81, this->gamespectatorjoinedmessage(), output); + if (cached_has_bits & 0x00008000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 81, _Internal::gamespectatorjoinedmessage(this), target, stream); } // optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - if (has_gamespectatorleftmessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 82, this->gamespectatorleftmessage(), output); + if (cached_has_bits & 0x00010000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 82, _Internal::gamespectatorleftmessage(this), target, stream); } - // optional .GameStartReentryMessage gameStartReentryMessage = 83; - if (has_gamestartreentrymessage()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 83, this->gamestartreentrymessage(), output); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), + static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); } - + // @@protoc_insertion_point(serialize_to_array_end:PokerTHMessage) + return target; } -int PokerTHMessage::ByteSize() const { - int total_size = 0; +size_t PokerTHMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:PokerTHMessage) + size_t total_size = 0; - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .PokerTHMessage.PokerTHMessageType messageType = 1; - if (has_messagetype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->messagetype()); - } + // required .PokerTHMessage.PokerTHMessageType messageType = 1; + if (_internal_has_messagetype()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_messagetype()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x000000ffu) { // optional .AnnounceMessage announceMessage = 2; - if (has_announcemessage()) { + if (cached_has_bits & 0x00000001u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->announcemessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *announcemessage_); } // optional .InitMessage initMessage = 3; - if (has_initmessage()) { + if (cached_has_bits & 0x00000002u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->initmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *initmessage_); } // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - if (has_authserverchallengemessage()) { + if (cached_has_bits & 0x00000004u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->authserverchallengemessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *authserverchallengemessage_); } // optional .AuthClientResponseMessage authClientResponseMessage = 5; - if (has_authclientresponsemessage()) { + if (cached_has_bits & 0x00000008u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->authclientresponsemessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *authclientresponsemessage_); } // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - if (has_authserververificationmessage()) { + if (cached_has_bits & 0x00000010u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->authserververificationmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *authserververificationmessage_); } // optional .InitAckMessage initAckMessage = 7; - if (has_initackmessage()) { + if (cached_has_bits & 0x00000020u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->initackmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *initackmessage_); } // optional .AvatarRequestMessage avatarRequestMessage = 8; - if (has_avatarrequestmessage()) { + if (cached_has_bits & 0x00000040u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->avatarrequestmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *avatarrequestmessage_); + } + + // optional .AvatarHeaderMessage avatarHeaderMessage = 9; + if (cached_has_bits & 0x00000080u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *avatarheadermessage_); } } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional .AvatarHeaderMessage avatarHeaderMessage = 9; - if (has_avatarheadermessage()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->avatarheadermessage()); - } - + if (cached_has_bits & 0x0000ff00u) { // optional .AvatarDataMessage avatarDataMessage = 10; - if (has_avatardatamessage()) { + if (cached_has_bits & 0x00000100u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->avatardatamessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *avatardatamessage_); } // optional .AvatarEndMessage avatarEndMessage = 11; - if (has_avatarendmessage()) { + if (cached_has_bits & 0x00000200u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->avatarendmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *avatarendmessage_); } // optional .UnknownAvatarMessage unknownAvatarMessage = 12; - if (has_unknownavatarmessage()) { + if (cached_has_bits & 0x00000400u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->unknownavatarmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *unknownavatarmessage_); } // optional .PlayerListMessage playerListMessage = 13; - if (has_playerlistmessage()) { + if (cached_has_bits & 0x00000800u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->playerlistmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *playerlistmessage_); } // optional .GameListNewMessage gameListNewMessage = 14; - if (has_gamelistnewmessage()) { + if (cached_has_bits & 0x00001000u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamelistnewmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *gamelistnewmessage_); } // optional .GameListUpdateMessage gameListUpdateMessage = 15; - if (has_gamelistupdatemessage()) { + if (cached_has_bits & 0x00002000u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamelistupdatemessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *gamelistupdatemessage_); } // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - if (has_gamelistplayerjoinedmessage()) { + if (cached_has_bits & 0x00004000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamelistplayerjoinedmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *gamelistplayerjoinedmessage_); + } + + // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; + if (cached_has_bits & 0x00008000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *gamelistplayerleftmessage_); } } - if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { - // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - if (has_gamelistplayerleftmessage()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamelistplayerleftmessage()); - } - + if (cached_has_bits & 0x00ff0000u) { // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - if (has_gamelistadminchangedmessage()) { + if (cached_has_bits & 0x00010000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamelistadminchangedmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *gamelistadminchangedmessage_); } // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - if (has_playerinforequestmessage()) { + if (cached_has_bits & 0x00020000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->playerinforequestmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *playerinforequestmessage_); } // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - if (has_playerinforeplymessage()) { + if (cached_has_bits & 0x00040000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->playerinforeplymessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *playerinforeplymessage_); } // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - if (has_subscriptionrequestmessage()) { + if (cached_has_bits & 0x00080000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->subscriptionrequestmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *subscriptionrequestmessage_); } // optional .JoinExistingGameMessage joinExistingGameMessage = 22; - if (has_joinexistinggamemessage()) { + if (cached_has_bits & 0x00100000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->joinexistinggamemessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *joinexistinggamemessage_); } // optional .JoinNewGameMessage joinNewGameMessage = 23; - if (has_joinnewgamemessage()) { + if (cached_has_bits & 0x00200000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->joinnewgamemessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *joinnewgamemessage_); } // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - if (has_rejoinexistinggamemessage()) { + if (cached_has_bits & 0x00400000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->rejoinexistinggamemessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *rejoinexistinggamemessage_); + } + + // optional .JoinGameAckMessage joinGameAckMessage = 25; + if (cached_has_bits & 0x00800000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *joingameackmessage_); } } - if (_has_bits_[24 / 32] & (0xffu << (24 % 32))) { - // optional .JoinGameAckMessage joinGameAckMessage = 25; - if (has_joingameackmessage()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->joingameackmessage()); - } - + if (cached_has_bits & 0xff000000u) { // optional .JoinGameFailedMessage joinGameFailedMessage = 26; - if (has_joingamefailedmessage()) { + if (cached_has_bits & 0x01000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->joingamefailedmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *joingamefailedmessage_); } // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - if (has_gameplayerjoinedmessage()) { + if (cached_has_bits & 0x02000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gameplayerjoinedmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *gameplayerjoinedmessage_); } // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - if (has_gameplayerleftmessage()) { + if (cached_has_bits & 0x04000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gameplayerleftmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *gameplayerleftmessage_); } // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - if (has_gameadminchangedmessage()) { + if (cached_has_bits & 0x08000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gameadminchangedmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *gameadminchangedmessage_); } // optional .RemovedFromGameMessage removedFromGameMessage = 30; - if (has_removedfromgamemessage()) { + if (cached_has_bits & 0x10000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->removedfromgamemessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *removedfromgamemessage_); } // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - if (has_kickplayerrequestmessage()) { + if (cached_has_bits & 0x20000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->kickplayerrequestmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *kickplayerrequestmessage_); } // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - if (has_leavegamerequestmessage()) { + if (cached_has_bits & 0x40000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->leavegamerequestmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *leavegamerequestmessage_); + } + + // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; + if (cached_has_bits & 0x80000000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *inviteplayertogamemessage_); } } - if (_has_bits_[32 / 32] & (0xffu << (32 % 32))) { - // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - if (has_inviteplayertogamemessage()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->inviteplayertogamemessage()); - } - + cached_has_bits = _has_bits_[1]; + if (cached_has_bits & 0x000000ffu) { // optional .InviteNotifyMessage inviteNotifyMessage = 34; - if (has_invitenotifymessage()) { + if (cached_has_bits & 0x00000001u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->invitenotifymessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *invitenotifymessage_); } // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - if (has_rejectgameinvitationmessage()) { + if (cached_has_bits & 0x00000002u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->rejectgameinvitationmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *rejectgameinvitationmessage_); } // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - if (has_rejectinvnotifymessage()) { + if (cached_has_bits & 0x00000004u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->rejectinvnotifymessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *rejectinvnotifymessage_); } // optional .StartEventMessage startEventMessage = 37; - if (has_starteventmessage()) { + if (cached_has_bits & 0x00000008u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->starteventmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *starteventmessage_); } // optional .StartEventAckMessage startEventAckMessage = 38; - if (has_starteventackmessage()) { + if (cached_has_bits & 0x00000010u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->starteventackmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *starteventackmessage_); } // optional .GameStartInitialMessage gameStartInitialMessage = 39; - if (has_gamestartinitialmessage()) { + if (cached_has_bits & 0x00000020u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamestartinitialmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *gamestartinitialmessage_); } // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - if (has_gamestartrejoinmessage()) { + if (cached_has_bits & 0x00000040u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamestartrejoinmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *gamestartrejoinmessage_); + } + + // optional .HandStartMessage handStartMessage = 41; + if (cached_has_bits & 0x00000080u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *handstartmessage_); } } - if (_has_bits_[40 / 32] & (0xffu << (40 % 32))) { - // optional .HandStartMessage handStartMessage = 41; - if (has_handstartmessage()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->handstartmessage()); - } - + if (cached_has_bits & 0x0000ff00u) { // optional .PlayersTurnMessage playersTurnMessage = 42; - if (has_playersturnmessage()) { + if (cached_has_bits & 0x00000100u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->playersturnmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *playersturnmessage_); } // optional .MyActionRequestMessage myActionRequestMessage = 43; - if (has_myactionrequestmessage()) { + if (cached_has_bits & 0x00000200u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->myactionrequestmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *myactionrequestmessage_); } // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - if (has_youractionrejectedmessage()) { + if (cached_has_bits & 0x00000400u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->youractionrejectedmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *youractionrejectedmessage_); } // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - if (has_playersactiondonemessage()) { + if (cached_has_bits & 0x00000800u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->playersactiondonemessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *playersactiondonemessage_); } // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - if (has_dealflopcardsmessage()) { + if (cached_has_bits & 0x00001000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->dealflopcardsmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *dealflopcardsmessage_); } // optional .DealTurnCardMessage dealTurnCardMessage = 47; - if (has_dealturncardmessage()) { + if (cached_has_bits & 0x00002000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->dealturncardmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *dealturncardmessage_); } // optional .DealRiverCardMessage dealRiverCardMessage = 48; - if (has_dealrivercardmessage()) { + if (cached_has_bits & 0x00004000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->dealrivercardmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *dealrivercardmessage_); + } + + // optional .AllInShowCardsMessage allInShowCardsMessage = 49; + if (cached_has_bits & 0x00008000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *allinshowcardsmessage_); } } - if (_has_bits_[48 / 32] & (0xffu << (48 % 32))) { - // optional .AllInShowCardsMessage allInShowCardsMessage = 49; - if (has_allinshowcardsmessage()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->allinshowcardsmessage()); - } - + if (cached_has_bits & 0x00ff0000u) { // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - if (has_endofhandshowcardsmessage()) { + if (cached_has_bits & 0x00010000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->endofhandshowcardsmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *endofhandshowcardsmessage_); } // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - if (has_endofhandhidecardsmessage()) { + if (cached_has_bits & 0x00020000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->endofhandhidecardsmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *endofhandhidecardsmessage_); } // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - if (has_showmycardsrequestmessage()) { + if (cached_has_bits & 0x00040000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->showmycardsrequestmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *showmycardsrequestmessage_); } // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - if (has_afterhandshowcardsmessage()) { + if (cached_has_bits & 0x00080000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->afterhandshowcardsmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *afterhandshowcardsmessage_); } // optional .EndOfGameMessage endOfGameMessage = 54; - if (has_endofgamemessage()) { + if (cached_has_bits & 0x00100000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->endofgamemessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *endofgamemessage_); } // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - if (has_playeridchangedmessage()) { + if (cached_has_bits & 0x00200000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->playeridchangedmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *playeridchangedmessage_); } // optional .AskKickPlayerMessage askKickPlayerMessage = 56; - if (has_askkickplayermessage()) { + if (cached_has_bits & 0x00400000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->askkickplayermessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *askkickplayermessage_); + } + + // optional .AskKickDeniedMessage askKickDeniedMessage = 57; + if (cached_has_bits & 0x00800000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *askkickdeniedmessage_); } } - if (_has_bits_[56 / 32] & (0xffu << (56 % 32))) { - // optional .AskKickDeniedMessage askKickDeniedMessage = 57; - if (has_askkickdeniedmessage()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->askkickdeniedmessage()); - } - + if (cached_has_bits & 0xff000000u) { // optional .StartKickPetitionMessage startKickPetitionMessage = 58; - if (has_startkickpetitionmessage()) { + if (cached_has_bits & 0x01000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->startkickpetitionmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *startkickpetitionmessage_); } // optional .VoteKickRequestMessage voteKickRequestMessage = 59; - if (has_votekickrequestmessage()) { + if (cached_has_bits & 0x02000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->votekickrequestmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *votekickrequestmessage_); } // optional .VoteKickReplyMessage voteKickReplyMessage = 60; - if (has_votekickreplymessage()) { + if (cached_has_bits & 0x04000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->votekickreplymessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *votekickreplymessage_); } // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - if (has_kickpetitionupdatemessage()) { + if (cached_has_bits & 0x08000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->kickpetitionupdatemessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *kickpetitionupdatemessage_); } // optional .EndKickPetitionMessage endKickPetitionMessage = 62; - if (has_endkickpetitionmessage()) { + if (cached_has_bits & 0x10000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->endkickpetitionmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *endkickpetitionmessage_); } // optional .StatisticsMessage statisticsMessage = 63; - if (has_statisticsmessage()) { + if (cached_has_bits & 0x20000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->statisticsmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *statisticsmessage_); } // optional .ChatRequestMessage chatRequestMessage = 64; - if (has_chatrequestmessage()) { + if (cached_has_bits & 0x40000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->chatrequestmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *chatrequestmessage_); + } + + // optional .ChatMessage chatMessage = 65; + if (cached_has_bits & 0x80000000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *chatmessage_); } } - if (_has_bits_[64 / 32] & (0xffu << (64 % 32))) { - // optional .ChatMessage chatMessage = 65; - if (has_chatmessage()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->chatmessage()); - } - + cached_has_bits = _has_bits_[2]; + if (cached_has_bits & 0x000000ffu) { // optional .ChatRejectMessage chatRejectMessage = 66; - if (has_chatrejectmessage()) { + if (cached_has_bits & 0x00000001u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->chatrejectmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *chatrejectmessage_); } // optional .DialogMessage dialogMessage = 67; - if (has_dialogmessage()) { + if (cached_has_bits & 0x00000002u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->dialogmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *dialogmessage_); } // optional .TimeoutWarningMessage timeoutWarningMessage = 68; - if (has_timeoutwarningmessage()) { + if (cached_has_bits & 0x00000004u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->timeoutwarningmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *timeoutwarningmessage_); } // optional .ResetTimeoutMessage resetTimeoutMessage = 69; - if (has_resettimeoutmessage()) { + if (cached_has_bits & 0x00000008u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->resettimeoutmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *resettimeoutmessage_); } // optional .ReportAvatarMessage reportAvatarMessage = 70; - if (has_reportavatarmessage()) { + if (cached_has_bits & 0x00000010u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->reportavatarmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *reportavatarmessage_); } // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - if (has_reportavatarackmessage()) { + if (cached_has_bits & 0x00000020u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->reportavatarackmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *reportavatarackmessage_); } // optional .ReportGameMessage reportGameMessage = 72; - if (has_reportgamemessage()) { + if (cached_has_bits & 0x00000040u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->reportgamemessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *reportgamemessage_); + } + + // optional .ReportGameAckMessage reportGameAckMessage = 73; + if (cached_has_bits & 0x00000080u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *reportgameackmessage_); } } - if (_has_bits_[72 / 32] & (0xffu << (72 % 32))) { - // optional .ReportGameAckMessage reportGameAckMessage = 73; - if (has_reportgameackmessage()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->reportgameackmessage()); - } - + if (cached_has_bits & 0x0000ff00u) { // optional .ErrorMessage errorMessage = 74; - if (has_errormessage()) { + if (cached_has_bits & 0x00000100u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->errormessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *errormessage_); } // optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - if (has_adminremovegamemessage()) { + if (cached_has_bits & 0x00000200u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->adminremovegamemessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *adminremovegamemessage_); } // optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - if (has_adminremovegameackmessage()) { + if (cached_has_bits & 0x00000400u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->adminremovegameackmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *adminremovegameackmessage_); } // optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - if (has_adminbanplayermessage()) { + if (cached_has_bits & 0x00000800u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->adminbanplayermessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *adminbanplayermessage_); } // optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - if (has_adminbanplayerackmessage()) { + if (cached_has_bits & 0x00001000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->adminbanplayerackmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *adminbanplayerackmessage_); } // optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - if (has_gamelistspectatorjoinedmessage()) { + if (cached_has_bits & 0x00002000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamelistspectatorjoinedmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *gamelistspectatorjoinedmessage_); } // optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - if (has_gamelistspectatorleftmessage()) { + if (cached_has_bits & 0x00004000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamelistspectatorleftmessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *gamelistspectatorleftmessage_); } - } - if (_has_bits_[80 / 32] & (0xffu << (80 % 32))) { // optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - if (has_gamespectatorjoinedmessage()) { + if (cached_has_bits & 0x00008000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamespectatorjoinedmessage()); - } - - // optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - if (has_gamespectatorleftmessage()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamespectatorleftmessage()); - } - - // optional .GameStartReentryMessage gameStartReentryMessage = 83; - if (has_gamestartreentrymessage()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamestartreentrymessage()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *gamespectatorjoinedmessage_); } } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; + if (cached_has_bits & 0x00010000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *gamespectatorleftmessage_); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } void PokerTHMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); } void PokerTHMessage::MergeFrom(const PokerTHMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_messagetype()) { - set_messagetype(from.messagetype()); +// @@protoc_insertion_point(class_specific_merge_from_start:PokerTHMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x000000ffu) { + if (cached_has_bits & 0x00000001u) { + _internal_mutable_announcemessage()->::AnnounceMessage::MergeFrom(from._internal_announcemessage()); } - if (from.has_announcemessage()) { - mutable_announcemessage()->::AnnounceMessage::MergeFrom(from.announcemessage()); + if (cached_has_bits & 0x00000002u) { + _internal_mutable_initmessage()->::InitMessage::MergeFrom(from._internal_initmessage()); } - if (from.has_initmessage()) { - mutable_initmessage()->::InitMessage::MergeFrom(from.initmessage()); + if (cached_has_bits & 0x00000004u) { + _internal_mutable_authserverchallengemessage()->::AuthServerChallengeMessage::MergeFrom(from._internal_authserverchallengemessage()); } - if (from.has_authserverchallengemessage()) { - mutable_authserverchallengemessage()->::AuthServerChallengeMessage::MergeFrom(from.authserverchallengemessage()); + if (cached_has_bits & 0x00000008u) { + _internal_mutable_authclientresponsemessage()->::AuthClientResponseMessage::MergeFrom(from._internal_authclientresponsemessage()); } - if (from.has_authclientresponsemessage()) { - mutable_authclientresponsemessage()->::AuthClientResponseMessage::MergeFrom(from.authclientresponsemessage()); + if (cached_has_bits & 0x00000010u) { + _internal_mutable_authserververificationmessage()->::AuthServerVerificationMessage::MergeFrom(from._internal_authserververificationmessage()); } - if (from.has_authserververificationmessage()) { - mutable_authserververificationmessage()->::AuthServerVerificationMessage::MergeFrom(from.authserververificationmessage()); + if (cached_has_bits & 0x00000020u) { + _internal_mutable_initackmessage()->::InitAckMessage::MergeFrom(from._internal_initackmessage()); } - if (from.has_initackmessage()) { - mutable_initackmessage()->::InitAckMessage::MergeFrom(from.initackmessage()); + if (cached_has_bits & 0x00000040u) { + _internal_mutable_avatarrequestmessage()->::AvatarRequestMessage::MergeFrom(from._internal_avatarrequestmessage()); } - if (from.has_avatarrequestmessage()) { - mutable_avatarrequestmessage()->::AvatarRequestMessage::MergeFrom(from.avatarrequestmessage()); + if (cached_has_bits & 0x00000080u) { + _internal_mutable_avatarheadermessage()->::AvatarHeaderMessage::MergeFrom(from._internal_avatarheadermessage()); } } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_avatarheadermessage()) { - mutable_avatarheadermessage()->::AvatarHeaderMessage::MergeFrom(from.avatarheadermessage()); + if (cached_has_bits & 0x0000ff00u) { + if (cached_has_bits & 0x00000100u) { + _internal_mutable_avatardatamessage()->::AvatarDataMessage::MergeFrom(from._internal_avatardatamessage()); } - if (from.has_avatardatamessage()) { - mutable_avatardatamessage()->::AvatarDataMessage::MergeFrom(from.avatardatamessage()); + if (cached_has_bits & 0x00000200u) { + _internal_mutable_avatarendmessage()->::AvatarEndMessage::MergeFrom(from._internal_avatarendmessage()); } - if (from.has_avatarendmessage()) { - mutable_avatarendmessage()->::AvatarEndMessage::MergeFrom(from.avatarendmessage()); + if (cached_has_bits & 0x00000400u) { + _internal_mutable_unknownavatarmessage()->::UnknownAvatarMessage::MergeFrom(from._internal_unknownavatarmessage()); } - if (from.has_unknownavatarmessage()) { - mutable_unknownavatarmessage()->::UnknownAvatarMessage::MergeFrom(from.unknownavatarmessage()); + if (cached_has_bits & 0x00000800u) { + _internal_mutable_playerlistmessage()->::PlayerListMessage::MergeFrom(from._internal_playerlistmessage()); } - if (from.has_playerlistmessage()) { - mutable_playerlistmessage()->::PlayerListMessage::MergeFrom(from.playerlistmessage()); + if (cached_has_bits & 0x00001000u) { + _internal_mutable_gamelistnewmessage()->::GameListNewMessage::MergeFrom(from._internal_gamelistnewmessage()); } - if (from.has_gamelistnewmessage()) { - mutable_gamelistnewmessage()->::GameListNewMessage::MergeFrom(from.gamelistnewmessage()); + if (cached_has_bits & 0x00002000u) { + _internal_mutable_gamelistupdatemessage()->::GameListUpdateMessage::MergeFrom(from._internal_gamelistupdatemessage()); } - if (from.has_gamelistupdatemessage()) { - mutable_gamelistupdatemessage()->::GameListUpdateMessage::MergeFrom(from.gamelistupdatemessage()); + if (cached_has_bits & 0x00004000u) { + _internal_mutable_gamelistplayerjoinedmessage()->::GameListPlayerJoinedMessage::MergeFrom(from._internal_gamelistplayerjoinedmessage()); } - if (from.has_gamelistplayerjoinedmessage()) { - mutable_gamelistplayerjoinedmessage()->::GameListPlayerJoinedMessage::MergeFrom(from.gamelistplayerjoinedmessage()); + if (cached_has_bits & 0x00008000u) { + _internal_mutable_gamelistplayerleftmessage()->::GameListPlayerLeftMessage::MergeFrom(from._internal_gamelistplayerleftmessage()); } } - if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) { - if (from.has_gamelistplayerleftmessage()) { - mutable_gamelistplayerleftmessage()->::GameListPlayerLeftMessage::MergeFrom(from.gamelistplayerleftmessage()); + if (cached_has_bits & 0x00ff0000u) { + if (cached_has_bits & 0x00010000u) { + _internal_mutable_gamelistadminchangedmessage()->::GameListAdminChangedMessage::MergeFrom(from._internal_gamelistadminchangedmessage()); } - if (from.has_gamelistadminchangedmessage()) { - mutable_gamelistadminchangedmessage()->::GameListAdminChangedMessage::MergeFrom(from.gamelistadminchangedmessage()); + if (cached_has_bits & 0x00020000u) { + _internal_mutable_playerinforequestmessage()->::PlayerInfoRequestMessage::MergeFrom(from._internal_playerinforequestmessage()); } - if (from.has_playerinforequestmessage()) { - mutable_playerinforequestmessage()->::PlayerInfoRequestMessage::MergeFrom(from.playerinforequestmessage()); + if (cached_has_bits & 0x00040000u) { + _internal_mutable_playerinforeplymessage()->::PlayerInfoReplyMessage::MergeFrom(from._internal_playerinforeplymessage()); } - if (from.has_playerinforeplymessage()) { - mutable_playerinforeplymessage()->::PlayerInfoReplyMessage::MergeFrom(from.playerinforeplymessage()); + if (cached_has_bits & 0x00080000u) { + _internal_mutable_subscriptionrequestmessage()->::SubscriptionRequestMessage::MergeFrom(from._internal_subscriptionrequestmessage()); } - if (from.has_subscriptionrequestmessage()) { - mutable_subscriptionrequestmessage()->::SubscriptionRequestMessage::MergeFrom(from.subscriptionrequestmessage()); + if (cached_has_bits & 0x00100000u) { + _internal_mutable_joinexistinggamemessage()->::JoinExistingGameMessage::MergeFrom(from._internal_joinexistinggamemessage()); } - if (from.has_joinexistinggamemessage()) { - mutable_joinexistinggamemessage()->::JoinExistingGameMessage::MergeFrom(from.joinexistinggamemessage()); + if (cached_has_bits & 0x00200000u) { + _internal_mutable_joinnewgamemessage()->::JoinNewGameMessage::MergeFrom(from._internal_joinnewgamemessage()); } - if (from.has_joinnewgamemessage()) { - mutable_joinnewgamemessage()->::JoinNewGameMessage::MergeFrom(from.joinnewgamemessage()); + if (cached_has_bits & 0x00400000u) { + _internal_mutable_rejoinexistinggamemessage()->::RejoinExistingGameMessage::MergeFrom(from._internal_rejoinexistinggamemessage()); } - if (from.has_rejoinexistinggamemessage()) { - mutable_rejoinexistinggamemessage()->::RejoinExistingGameMessage::MergeFrom(from.rejoinexistinggamemessage()); + if (cached_has_bits & 0x00800000u) { + _internal_mutable_joingameackmessage()->::JoinGameAckMessage::MergeFrom(from._internal_joingameackmessage()); } } - if (from._has_bits_[24 / 32] & (0xffu << (24 % 32))) { - if (from.has_joingameackmessage()) { - mutable_joingameackmessage()->::JoinGameAckMessage::MergeFrom(from.joingameackmessage()); + if (cached_has_bits & 0xff000000u) { + if (cached_has_bits & 0x01000000u) { + _internal_mutable_joingamefailedmessage()->::JoinGameFailedMessage::MergeFrom(from._internal_joingamefailedmessage()); } - if (from.has_joingamefailedmessage()) { - mutable_joingamefailedmessage()->::JoinGameFailedMessage::MergeFrom(from.joingamefailedmessage()); + if (cached_has_bits & 0x02000000u) { + _internal_mutable_gameplayerjoinedmessage()->::GamePlayerJoinedMessage::MergeFrom(from._internal_gameplayerjoinedmessage()); } - if (from.has_gameplayerjoinedmessage()) { - mutable_gameplayerjoinedmessage()->::GamePlayerJoinedMessage::MergeFrom(from.gameplayerjoinedmessage()); + if (cached_has_bits & 0x04000000u) { + _internal_mutable_gameplayerleftmessage()->::GamePlayerLeftMessage::MergeFrom(from._internal_gameplayerleftmessage()); } - if (from.has_gameplayerleftmessage()) { - mutable_gameplayerleftmessage()->::GamePlayerLeftMessage::MergeFrom(from.gameplayerleftmessage()); + if (cached_has_bits & 0x08000000u) { + _internal_mutable_gameadminchangedmessage()->::GameAdminChangedMessage::MergeFrom(from._internal_gameadminchangedmessage()); } - if (from.has_gameadminchangedmessage()) { - mutable_gameadminchangedmessage()->::GameAdminChangedMessage::MergeFrom(from.gameadminchangedmessage()); + if (cached_has_bits & 0x10000000u) { + _internal_mutable_removedfromgamemessage()->::RemovedFromGameMessage::MergeFrom(from._internal_removedfromgamemessage()); } - if (from.has_removedfromgamemessage()) { - mutable_removedfromgamemessage()->::RemovedFromGameMessage::MergeFrom(from.removedfromgamemessage()); + if (cached_has_bits & 0x20000000u) { + _internal_mutable_kickplayerrequestmessage()->::KickPlayerRequestMessage::MergeFrom(from._internal_kickplayerrequestmessage()); } - if (from.has_kickplayerrequestmessage()) { - mutable_kickplayerrequestmessage()->::KickPlayerRequestMessage::MergeFrom(from.kickplayerrequestmessage()); + if (cached_has_bits & 0x40000000u) { + _internal_mutable_leavegamerequestmessage()->::LeaveGameRequestMessage::MergeFrom(from._internal_leavegamerequestmessage()); } - if (from.has_leavegamerequestmessage()) { - mutable_leavegamerequestmessage()->::LeaveGameRequestMessage::MergeFrom(from.leavegamerequestmessage()); + if (cached_has_bits & 0x80000000u) { + _internal_mutable_inviteplayertogamemessage()->::InvitePlayerToGameMessage::MergeFrom(from._internal_inviteplayertogamemessage()); } } - if (from._has_bits_[32 / 32] & (0xffu << (32 % 32))) { - if (from.has_inviteplayertogamemessage()) { - mutable_inviteplayertogamemessage()->::InvitePlayerToGameMessage::MergeFrom(from.inviteplayertogamemessage()); + cached_has_bits = from._has_bits_[1]; + if (cached_has_bits & 0x000000ffu) { + if (cached_has_bits & 0x00000001u) { + _internal_mutable_invitenotifymessage()->::InviteNotifyMessage::MergeFrom(from._internal_invitenotifymessage()); } - if (from.has_invitenotifymessage()) { - mutable_invitenotifymessage()->::InviteNotifyMessage::MergeFrom(from.invitenotifymessage()); + if (cached_has_bits & 0x00000002u) { + _internal_mutable_rejectgameinvitationmessage()->::RejectGameInvitationMessage::MergeFrom(from._internal_rejectgameinvitationmessage()); } - if (from.has_rejectgameinvitationmessage()) { - mutable_rejectgameinvitationmessage()->::RejectGameInvitationMessage::MergeFrom(from.rejectgameinvitationmessage()); + if (cached_has_bits & 0x00000004u) { + _internal_mutable_rejectinvnotifymessage()->::RejectInvNotifyMessage::MergeFrom(from._internal_rejectinvnotifymessage()); } - if (from.has_rejectinvnotifymessage()) { - mutable_rejectinvnotifymessage()->::RejectInvNotifyMessage::MergeFrom(from.rejectinvnotifymessage()); + if (cached_has_bits & 0x00000008u) { + _internal_mutable_starteventmessage()->::StartEventMessage::MergeFrom(from._internal_starteventmessage()); } - if (from.has_starteventmessage()) { - mutable_starteventmessage()->::StartEventMessage::MergeFrom(from.starteventmessage()); + if (cached_has_bits & 0x00000010u) { + _internal_mutable_starteventackmessage()->::StartEventAckMessage::MergeFrom(from._internal_starteventackmessage()); } - if (from.has_starteventackmessage()) { - mutable_starteventackmessage()->::StartEventAckMessage::MergeFrom(from.starteventackmessage()); + if (cached_has_bits & 0x00000020u) { + _internal_mutable_gamestartinitialmessage()->::GameStartInitialMessage::MergeFrom(from._internal_gamestartinitialmessage()); } - if (from.has_gamestartinitialmessage()) { - mutable_gamestartinitialmessage()->::GameStartInitialMessage::MergeFrom(from.gamestartinitialmessage()); + if (cached_has_bits & 0x00000040u) { + _internal_mutable_gamestartrejoinmessage()->::GameStartRejoinMessage::MergeFrom(from._internal_gamestartrejoinmessage()); } - if (from.has_gamestartrejoinmessage()) { - mutable_gamestartrejoinmessage()->::GameStartRejoinMessage::MergeFrom(from.gamestartrejoinmessage()); + if (cached_has_bits & 0x00000080u) { + _internal_mutable_handstartmessage()->::HandStartMessage::MergeFrom(from._internal_handstartmessage()); } } - if (from._has_bits_[40 / 32] & (0xffu << (40 % 32))) { - if (from.has_handstartmessage()) { - mutable_handstartmessage()->::HandStartMessage::MergeFrom(from.handstartmessage()); + if (cached_has_bits & 0x0000ff00u) { + if (cached_has_bits & 0x00000100u) { + _internal_mutable_playersturnmessage()->::PlayersTurnMessage::MergeFrom(from._internal_playersturnmessage()); } - if (from.has_playersturnmessage()) { - mutable_playersturnmessage()->::PlayersTurnMessage::MergeFrom(from.playersturnmessage()); + if (cached_has_bits & 0x00000200u) { + _internal_mutable_myactionrequestmessage()->::MyActionRequestMessage::MergeFrom(from._internal_myactionrequestmessage()); } - if (from.has_myactionrequestmessage()) { - mutable_myactionrequestmessage()->::MyActionRequestMessage::MergeFrom(from.myactionrequestmessage()); + if (cached_has_bits & 0x00000400u) { + _internal_mutable_youractionrejectedmessage()->::YourActionRejectedMessage::MergeFrom(from._internal_youractionrejectedmessage()); } - if (from.has_youractionrejectedmessage()) { - mutable_youractionrejectedmessage()->::YourActionRejectedMessage::MergeFrom(from.youractionrejectedmessage()); + if (cached_has_bits & 0x00000800u) { + _internal_mutable_playersactiondonemessage()->::PlayersActionDoneMessage::MergeFrom(from._internal_playersactiondonemessage()); } - if (from.has_playersactiondonemessage()) { - mutable_playersactiondonemessage()->::PlayersActionDoneMessage::MergeFrom(from.playersactiondonemessage()); + if (cached_has_bits & 0x00001000u) { + _internal_mutable_dealflopcardsmessage()->::DealFlopCardsMessage::MergeFrom(from._internal_dealflopcardsmessage()); } - if (from.has_dealflopcardsmessage()) { - mutable_dealflopcardsmessage()->::DealFlopCardsMessage::MergeFrom(from.dealflopcardsmessage()); + if (cached_has_bits & 0x00002000u) { + _internal_mutable_dealturncardmessage()->::DealTurnCardMessage::MergeFrom(from._internal_dealturncardmessage()); } - if (from.has_dealturncardmessage()) { - mutable_dealturncardmessage()->::DealTurnCardMessage::MergeFrom(from.dealturncardmessage()); + if (cached_has_bits & 0x00004000u) { + _internal_mutable_dealrivercardmessage()->::DealRiverCardMessage::MergeFrom(from._internal_dealrivercardmessage()); } - if (from.has_dealrivercardmessage()) { - mutable_dealrivercardmessage()->::DealRiverCardMessage::MergeFrom(from.dealrivercardmessage()); + if (cached_has_bits & 0x00008000u) { + _internal_mutable_allinshowcardsmessage()->::AllInShowCardsMessage::MergeFrom(from._internal_allinshowcardsmessage()); } } - if (from._has_bits_[48 / 32] & (0xffu << (48 % 32))) { - if (from.has_allinshowcardsmessage()) { - mutable_allinshowcardsmessage()->::AllInShowCardsMessage::MergeFrom(from.allinshowcardsmessage()); + if (cached_has_bits & 0x00ff0000u) { + if (cached_has_bits & 0x00010000u) { + _internal_mutable_endofhandshowcardsmessage()->::EndOfHandShowCardsMessage::MergeFrom(from._internal_endofhandshowcardsmessage()); } - if (from.has_endofhandshowcardsmessage()) { - mutable_endofhandshowcardsmessage()->::EndOfHandShowCardsMessage::MergeFrom(from.endofhandshowcardsmessage()); + if (cached_has_bits & 0x00020000u) { + _internal_mutable_endofhandhidecardsmessage()->::EndOfHandHideCardsMessage::MergeFrom(from._internal_endofhandhidecardsmessage()); } - if (from.has_endofhandhidecardsmessage()) { - mutable_endofhandhidecardsmessage()->::EndOfHandHideCardsMessage::MergeFrom(from.endofhandhidecardsmessage()); + if (cached_has_bits & 0x00040000u) { + _internal_mutable_showmycardsrequestmessage()->::ShowMyCardsRequestMessage::MergeFrom(from._internal_showmycardsrequestmessage()); } - if (from.has_showmycardsrequestmessage()) { - mutable_showmycardsrequestmessage()->::ShowMyCardsRequestMessage::MergeFrom(from.showmycardsrequestmessage()); + if (cached_has_bits & 0x00080000u) { + _internal_mutable_afterhandshowcardsmessage()->::AfterHandShowCardsMessage::MergeFrom(from._internal_afterhandshowcardsmessage()); } - if (from.has_afterhandshowcardsmessage()) { - mutable_afterhandshowcardsmessage()->::AfterHandShowCardsMessage::MergeFrom(from.afterhandshowcardsmessage()); + if (cached_has_bits & 0x00100000u) { + _internal_mutable_endofgamemessage()->::EndOfGameMessage::MergeFrom(from._internal_endofgamemessage()); } - if (from.has_endofgamemessage()) { - mutable_endofgamemessage()->::EndOfGameMessage::MergeFrom(from.endofgamemessage()); + if (cached_has_bits & 0x00200000u) { + _internal_mutable_playeridchangedmessage()->::PlayerIdChangedMessage::MergeFrom(from._internal_playeridchangedmessage()); } - if (from.has_playeridchangedmessage()) { - mutable_playeridchangedmessage()->::PlayerIdChangedMessage::MergeFrom(from.playeridchangedmessage()); + if (cached_has_bits & 0x00400000u) { + _internal_mutable_askkickplayermessage()->::AskKickPlayerMessage::MergeFrom(from._internal_askkickplayermessage()); } - if (from.has_askkickplayermessage()) { - mutable_askkickplayermessage()->::AskKickPlayerMessage::MergeFrom(from.askkickplayermessage()); + if (cached_has_bits & 0x00800000u) { + _internal_mutable_askkickdeniedmessage()->::AskKickDeniedMessage::MergeFrom(from._internal_askkickdeniedmessage()); } } - if (from._has_bits_[56 / 32] & (0xffu << (56 % 32))) { - if (from.has_askkickdeniedmessage()) { - mutable_askkickdeniedmessage()->::AskKickDeniedMessage::MergeFrom(from.askkickdeniedmessage()); + if (cached_has_bits & 0xff000000u) { + if (cached_has_bits & 0x01000000u) { + _internal_mutable_startkickpetitionmessage()->::StartKickPetitionMessage::MergeFrom(from._internal_startkickpetitionmessage()); } - if (from.has_startkickpetitionmessage()) { - mutable_startkickpetitionmessage()->::StartKickPetitionMessage::MergeFrom(from.startkickpetitionmessage()); + if (cached_has_bits & 0x02000000u) { + _internal_mutable_votekickrequestmessage()->::VoteKickRequestMessage::MergeFrom(from._internal_votekickrequestmessage()); } - if (from.has_votekickrequestmessage()) { - mutable_votekickrequestmessage()->::VoteKickRequestMessage::MergeFrom(from.votekickrequestmessage()); + if (cached_has_bits & 0x04000000u) { + _internal_mutable_votekickreplymessage()->::VoteKickReplyMessage::MergeFrom(from._internal_votekickreplymessage()); } - if (from.has_votekickreplymessage()) { - mutable_votekickreplymessage()->::VoteKickReplyMessage::MergeFrom(from.votekickreplymessage()); + if (cached_has_bits & 0x08000000u) { + _internal_mutable_kickpetitionupdatemessage()->::KickPetitionUpdateMessage::MergeFrom(from._internal_kickpetitionupdatemessage()); } - if (from.has_kickpetitionupdatemessage()) { - mutable_kickpetitionupdatemessage()->::KickPetitionUpdateMessage::MergeFrom(from.kickpetitionupdatemessage()); + if (cached_has_bits & 0x10000000u) { + _internal_mutable_endkickpetitionmessage()->::EndKickPetitionMessage::MergeFrom(from._internal_endkickpetitionmessage()); } - if (from.has_endkickpetitionmessage()) { - mutable_endkickpetitionmessage()->::EndKickPetitionMessage::MergeFrom(from.endkickpetitionmessage()); + if (cached_has_bits & 0x20000000u) { + _internal_mutable_statisticsmessage()->::StatisticsMessage::MergeFrom(from._internal_statisticsmessage()); } - if (from.has_statisticsmessage()) { - mutable_statisticsmessage()->::StatisticsMessage::MergeFrom(from.statisticsmessage()); + if (cached_has_bits & 0x40000000u) { + _internal_mutable_chatrequestmessage()->::ChatRequestMessage::MergeFrom(from._internal_chatrequestmessage()); } - if (from.has_chatrequestmessage()) { - mutable_chatrequestmessage()->::ChatRequestMessage::MergeFrom(from.chatrequestmessage()); + if (cached_has_bits & 0x80000000u) { + _internal_mutable_chatmessage()->::ChatMessage::MergeFrom(from._internal_chatmessage()); } } - if (from._has_bits_[64 / 32] & (0xffu << (64 % 32))) { - if (from.has_chatmessage()) { - mutable_chatmessage()->::ChatMessage::MergeFrom(from.chatmessage()); + cached_has_bits = from._has_bits_[2]; + if (cached_has_bits & 0x000000ffu) { + if (cached_has_bits & 0x00000001u) { + _internal_mutable_chatrejectmessage()->::ChatRejectMessage::MergeFrom(from._internal_chatrejectmessage()); } - if (from.has_chatrejectmessage()) { - mutable_chatrejectmessage()->::ChatRejectMessage::MergeFrom(from.chatrejectmessage()); + if (cached_has_bits & 0x00000002u) { + _internal_mutable_dialogmessage()->::DialogMessage::MergeFrom(from._internal_dialogmessage()); } - if (from.has_dialogmessage()) { - mutable_dialogmessage()->::DialogMessage::MergeFrom(from.dialogmessage()); + if (cached_has_bits & 0x00000004u) { + _internal_mutable_timeoutwarningmessage()->::TimeoutWarningMessage::MergeFrom(from._internal_timeoutwarningmessage()); } - if (from.has_timeoutwarningmessage()) { - mutable_timeoutwarningmessage()->::TimeoutWarningMessage::MergeFrom(from.timeoutwarningmessage()); + if (cached_has_bits & 0x00000008u) { + _internal_mutable_resettimeoutmessage()->::ResetTimeoutMessage::MergeFrom(from._internal_resettimeoutmessage()); } - if (from.has_resettimeoutmessage()) { - mutable_resettimeoutmessage()->::ResetTimeoutMessage::MergeFrom(from.resettimeoutmessage()); + if (cached_has_bits & 0x00000010u) { + _internal_mutable_reportavatarmessage()->::ReportAvatarMessage::MergeFrom(from._internal_reportavatarmessage()); } - if (from.has_reportavatarmessage()) { - mutable_reportavatarmessage()->::ReportAvatarMessage::MergeFrom(from.reportavatarmessage()); + if (cached_has_bits & 0x00000020u) { + _internal_mutable_reportavatarackmessage()->::ReportAvatarAckMessage::MergeFrom(from._internal_reportavatarackmessage()); } - if (from.has_reportavatarackmessage()) { - mutable_reportavatarackmessage()->::ReportAvatarAckMessage::MergeFrom(from.reportavatarackmessage()); + if (cached_has_bits & 0x00000040u) { + _internal_mutable_reportgamemessage()->::ReportGameMessage::MergeFrom(from._internal_reportgamemessage()); } - if (from.has_reportgamemessage()) { - mutable_reportgamemessage()->::ReportGameMessage::MergeFrom(from.reportgamemessage()); + if (cached_has_bits & 0x00000080u) { + _internal_mutable_reportgameackmessage()->::ReportGameAckMessage::MergeFrom(from._internal_reportgameackmessage()); } } - if (from._has_bits_[72 / 32] & (0xffu << (72 % 32))) { - if (from.has_reportgameackmessage()) { - mutable_reportgameackmessage()->::ReportGameAckMessage::MergeFrom(from.reportgameackmessage()); + if (cached_has_bits & 0x0000ff00u) { + if (cached_has_bits & 0x00000100u) { + _internal_mutable_errormessage()->::ErrorMessage::MergeFrom(from._internal_errormessage()); } - if (from.has_errormessage()) { - mutable_errormessage()->::ErrorMessage::MergeFrom(from.errormessage()); + if (cached_has_bits & 0x00000200u) { + _internal_mutable_adminremovegamemessage()->::AdminRemoveGameMessage::MergeFrom(from._internal_adminremovegamemessage()); } - if (from.has_adminremovegamemessage()) { - mutable_adminremovegamemessage()->::AdminRemoveGameMessage::MergeFrom(from.adminremovegamemessage()); + if (cached_has_bits & 0x00000400u) { + _internal_mutable_adminremovegameackmessage()->::AdminRemoveGameAckMessage::MergeFrom(from._internal_adminremovegameackmessage()); } - if (from.has_adminremovegameackmessage()) { - mutable_adminremovegameackmessage()->::AdminRemoveGameAckMessage::MergeFrom(from.adminremovegameackmessage()); + if (cached_has_bits & 0x00000800u) { + _internal_mutable_adminbanplayermessage()->::AdminBanPlayerMessage::MergeFrom(from._internal_adminbanplayermessage()); } - if (from.has_adminbanplayermessage()) { - mutable_adminbanplayermessage()->::AdminBanPlayerMessage::MergeFrom(from.adminbanplayermessage()); + if (cached_has_bits & 0x00001000u) { + _internal_mutable_adminbanplayerackmessage()->::AdminBanPlayerAckMessage::MergeFrom(from._internal_adminbanplayerackmessage()); } - if (from.has_adminbanplayerackmessage()) { - mutable_adminbanplayerackmessage()->::AdminBanPlayerAckMessage::MergeFrom(from.adminbanplayerackmessage()); + if (cached_has_bits & 0x00002000u) { + _internal_mutable_gamelistspectatorjoinedmessage()->::GameListSpectatorJoinedMessage::MergeFrom(from._internal_gamelistspectatorjoinedmessage()); } - if (from.has_gamelistspectatorjoinedmessage()) { - mutable_gamelistspectatorjoinedmessage()->::GameListSpectatorJoinedMessage::MergeFrom(from.gamelistspectatorjoinedmessage()); + if (cached_has_bits & 0x00004000u) { + _internal_mutable_gamelistspectatorleftmessage()->::GameListSpectatorLeftMessage::MergeFrom(from._internal_gamelistspectatorleftmessage()); } - if (from.has_gamelistspectatorleftmessage()) { - mutable_gamelistspectatorleftmessage()->::GameListSpectatorLeftMessage::MergeFrom(from.gamelistspectatorleftmessage()); + if (cached_has_bits & 0x00008000u) { + _internal_mutable_gamespectatorjoinedmessage()->::GameSpectatorJoinedMessage::MergeFrom(from._internal_gamespectatorjoinedmessage()); } } - if (from._has_bits_[80 / 32] & (0xffu << (80 % 32))) { - if (from.has_gamespectatorjoinedmessage()) { - mutable_gamespectatorjoinedmessage()->::GameSpectatorJoinedMessage::MergeFrom(from.gamespectatorjoinedmessage()); + if (cached_has_bits & 0x00030000u) { + if (cached_has_bits & 0x00010000u) { + _internal_mutable_gamespectatorleftmessage()->::GameSpectatorLeftMessage::MergeFrom(from._internal_gamespectatorleftmessage()); } - if (from.has_gamespectatorleftmessage()) { - mutable_gamespectatorleftmessage()->::GameSpectatorLeftMessage::MergeFrom(from.gamespectatorleftmessage()); - } - if (from.has_gamestartreentrymessage()) { - mutable_gamestartreentrymessage()->::GameStartReentryMessage::MergeFrom(from.gamestartreentrymessage()); + if (cached_has_bits & 0x00020000u) { + messagetype_ = from.messagetype_; } + _has_bits_[2] |= cached_has_bits; } } void PokerTHMessage::CopyFrom(const PokerTHMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:PokerTHMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool PokerTHMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - if (has_announcemessage()) { - if (!this->announcemessage().IsInitialized()) return false; + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + if (_internal_has_announcemessage()) { + if (!announcemessage_->IsInitialized()) return false; } - if (has_initmessage()) { - if (!this->initmessage().IsInitialized()) return false; + if (_internal_has_initmessage()) { + if (!initmessage_->IsInitialized()) return false; } - if (has_authserverchallengemessage()) { - if (!this->authserverchallengemessage().IsInitialized()) return false; + if (_internal_has_authserverchallengemessage()) { + if (!authserverchallengemessage_->IsInitialized()) return false; } - if (has_authclientresponsemessage()) { - if (!this->authclientresponsemessage().IsInitialized()) return false; + if (_internal_has_authclientresponsemessage()) { + if (!authclientresponsemessage_->IsInitialized()) return false; } - if (has_authserververificationmessage()) { - if (!this->authserververificationmessage().IsInitialized()) return false; + if (_internal_has_authserververificationmessage()) { + if (!authserververificationmessage_->IsInitialized()) return false; } - if (has_initackmessage()) { - if (!this->initackmessage().IsInitialized()) return false; + if (_internal_has_initackmessage()) { + if (!initackmessage_->IsInitialized()) return false; } - if (has_avatarrequestmessage()) { - if (!this->avatarrequestmessage().IsInitialized()) return false; + if (_internal_has_avatarrequestmessage()) { + if (!avatarrequestmessage_->IsInitialized()) return false; } - if (has_avatarheadermessage()) { - if (!this->avatarheadermessage().IsInitialized()) return false; + if (_internal_has_avatarheadermessage()) { + if (!avatarheadermessage_->IsInitialized()) return false; } - if (has_avatardatamessage()) { - if (!this->avatardatamessage().IsInitialized()) return false; + if (_internal_has_avatardatamessage()) { + if (!avatardatamessage_->IsInitialized()) return false; } - if (has_avatarendmessage()) { - if (!this->avatarendmessage().IsInitialized()) return false; + if (_internal_has_avatarendmessage()) { + if (!avatarendmessage_->IsInitialized()) return false; } - if (has_unknownavatarmessage()) { - if (!this->unknownavatarmessage().IsInitialized()) return false; + if (_internal_has_unknownavatarmessage()) { + if (!unknownavatarmessage_->IsInitialized()) return false; } - if (has_playerlistmessage()) { - if (!this->playerlistmessage().IsInitialized()) return false; + if (_internal_has_playerlistmessage()) { + if (!playerlistmessage_->IsInitialized()) return false; } - if (has_gamelistnewmessage()) { - if (!this->gamelistnewmessage().IsInitialized()) return false; + if (_internal_has_gamelistnewmessage()) { + if (!gamelistnewmessage_->IsInitialized()) return false; } - if (has_gamelistupdatemessage()) { - if (!this->gamelistupdatemessage().IsInitialized()) return false; + if (_internal_has_gamelistupdatemessage()) { + if (!gamelistupdatemessage_->IsInitialized()) return false; } - if (has_gamelistplayerjoinedmessage()) { - if (!this->gamelistplayerjoinedmessage().IsInitialized()) return false; + if (_internal_has_gamelistplayerjoinedmessage()) { + if (!gamelistplayerjoinedmessage_->IsInitialized()) return false; } - if (has_gamelistplayerleftmessage()) { - if (!this->gamelistplayerleftmessage().IsInitialized()) return false; + if (_internal_has_gamelistplayerleftmessage()) { + if (!gamelistplayerleftmessage_->IsInitialized()) return false; } - if (has_gamelistadminchangedmessage()) { - if (!this->gamelistadminchangedmessage().IsInitialized()) return false; + if (_internal_has_gamelistadminchangedmessage()) { + if (!gamelistadminchangedmessage_->IsInitialized()) return false; } - if (has_playerinforeplymessage()) { - if (!this->playerinforeplymessage().IsInitialized()) return false; + if (_internal_has_playerinforeplymessage()) { + if (!playerinforeplymessage_->IsInitialized()) return false; } - if (has_subscriptionrequestmessage()) { - if (!this->subscriptionrequestmessage().IsInitialized()) return false; + if (_internal_has_subscriptionrequestmessage()) { + if (!subscriptionrequestmessage_->IsInitialized()) return false; } - if (has_joinexistinggamemessage()) { - if (!this->joinexistinggamemessage().IsInitialized()) return false; + if (_internal_has_joinexistinggamemessage()) { + if (!joinexistinggamemessage_->IsInitialized()) return false; } - if (has_joinnewgamemessage()) { - if (!this->joinnewgamemessage().IsInitialized()) return false; + if (_internal_has_joinnewgamemessage()) { + if (!joinnewgamemessage_->IsInitialized()) return false; } - if (has_rejoinexistinggamemessage()) { - if (!this->rejoinexistinggamemessage().IsInitialized()) return false; + if (_internal_has_rejoinexistinggamemessage()) { + if (!rejoinexistinggamemessage_->IsInitialized()) return false; } - if (has_joingameackmessage()) { - if (!this->joingameackmessage().IsInitialized()) return false; + if (_internal_has_joingameackmessage()) { + if (!joingameackmessage_->IsInitialized()) return false; } - if (has_joingamefailedmessage()) { - if (!this->joingamefailedmessage().IsInitialized()) return false; + if (_internal_has_joingamefailedmessage()) { + if (!joingamefailedmessage_->IsInitialized()) return false; } - if (has_gameplayerjoinedmessage()) { - if (!this->gameplayerjoinedmessage().IsInitialized()) return false; + if (_internal_has_gameplayerjoinedmessage()) { + if (!gameplayerjoinedmessage_->IsInitialized()) return false; } - if (has_gameplayerleftmessage()) { - if (!this->gameplayerleftmessage().IsInitialized()) return false; + if (_internal_has_gameplayerleftmessage()) { + if (!gameplayerleftmessage_->IsInitialized()) return false; } - if (has_gameadminchangedmessage()) { - if (!this->gameadminchangedmessage().IsInitialized()) return false; + if (_internal_has_gameadminchangedmessage()) { + if (!gameadminchangedmessage_->IsInitialized()) return false; } - if (has_removedfromgamemessage()) { - if (!this->removedfromgamemessage().IsInitialized()) return false; + if (_internal_has_removedfromgamemessage()) { + if (!removedfromgamemessage_->IsInitialized()) return false; } - if (has_kickplayerrequestmessage()) { - if (!this->kickplayerrequestmessage().IsInitialized()) return false; + if (_internal_has_kickplayerrequestmessage()) { + if (!kickplayerrequestmessage_->IsInitialized()) return false; } - if (has_leavegamerequestmessage()) { - if (!this->leavegamerequestmessage().IsInitialized()) return false; + if (_internal_has_leavegamerequestmessage()) { + if (!leavegamerequestmessage_->IsInitialized()) return false; } - if (has_inviteplayertogamemessage()) { - if (!this->inviteplayertogamemessage().IsInitialized()) return false; + if (_internal_has_inviteplayertogamemessage()) { + if (!inviteplayertogamemessage_->IsInitialized()) return false; } - if (has_invitenotifymessage()) { - if (!this->invitenotifymessage().IsInitialized()) return false; + if (_internal_has_invitenotifymessage()) { + if (!invitenotifymessage_->IsInitialized()) return false; } - if (has_rejectgameinvitationmessage()) { - if (!this->rejectgameinvitationmessage().IsInitialized()) return false; + if (_internal_has_rejectgameinvitationmessage()) { + if (!rejectgameinvitationmessage_->IsInitialized()) return false; } - if (has_rejectinvnotifymessage()) { - if (!this->rejectinvnotifymessage().IsInitialized()) return false; + if (_internal_has_rejectinvnotifymessage()) { + if (!rejectinvnotifymessage_->IsInitialized()) return false; } - if (has_starteventmessage()) { - if (!this->starteventmessage().IsInitialized()) return false; + if (_internal_has_starteventmessage()) { + if (!starteventmessage_->IsInitialized()) return false; } - if (has_starteventackmessage()) { - if (!this->starteventackmessage().IsInitialized()) return false; + if (_internal_has_starteventackmessage()) { + if (!starteventackmessage_->IsInitialized()) return false; } - if (has_gamestartinitialmessage()) { - if (!this->gamestartinitialmessage().IsInitialized()) return false; + if (_internal_has_gamestartinitialmessage()) { + if (!gamestartinitialmessage_->IsInitialized()) return false; } - if (has_gamestartrejoinmessage()) { - if (!this->gamestartrejoinmessage().IsInitialized()) return false; + if (_internal_has_gamestartrejoinmessage()) { + if (!gamestartrejoinmessage_->IsInitialized()) return false; } - if (has_handstartmessage()) { - if (!this->handstartmessage().IsInitialized()) return false; + if (_internal_has_handstartmessage()) { + if (!handstartmessage_->IsInitialized()) return false; } - if (has_playersturnmessage()) { - if (!this->playersturnmessage().IsInitialized()) return false; + if (_internal_has_playersturnmessage()) { + if (!playersturnmessage_->IsInitialized()) return false; } - if (has_myactionrequestmessage()) { - if (!this->myactionrequestmessage().IsInitialized()) return false; + if (_internal_has_myactionrequestmessage()) { + if (!myactionrequestmessage_->IsInitialized()) return false; } - if (has_youractionrejectedmessage()) { - if (!this->youractionrejectedmessage().IsInitialized()) return false; + if (_internal_has_youractionrejectedmessage()) { + if (!youractionrejectedmessage_->IsInitialized()) return false; } - if (has_playersactiondonemessage()) { - if (!this->playersactiondonemessage().IsInitialized()) return false; + if (_internal_has_playersactiondonemessage()) { + if (!playersactiondonemessage_->IsInitialized()) return false; } - if (has_dealflopcardsmessage()) { - if (!this->dealflopcardsmessage().IsInitialized()) return false; + if (_internal_has_dealflopcardsmessage()) { + if (!dealflopcardsmessage_->IsInitialized()) return false; } - if (has_dealturncardmessage()) { - if (!this->dealturncardmessage().IsInitialized()) return false; + if (_internal_has_dealturncardmessage()) { + if (!dealturncardmessage_->IsInitialized()) return false; } - if (has_dealrivercardmessage()) { - if (!this->dealrivercardmessage().IsInitialized()) return false; + if (_internal_has_dealrivercardmessage()) { + if (!dealrivercardmessage_->IsInitialized()) return false; } - if (has_allinshowcardsmessage()) { - if (!this->allinshowcardsmessage().IsInitialized()) return false; + if (_internal_has_allinshowcardsmessage()) { + if (!allinshowcardsmessage_->IsInitialized()) return false; } - if (has_endofhandshowcardsmessage()) { - if (!this->endofhandshowcardsmessage().IsInitialized()) return false; + if (_internal_has_endofhandshowcardsmessage()) { + if (!endofhandshowcardsmessage_->IsInitialized()) return false; } - if (has_endofhandhidecardsmessage()) { - if (!this->endofhandhidecardsmessage().IsInitialized()) return false; + if (_internal_has_endofhandhidecardsmessage()) { + if (!endofhandhidecardsmessage_->IsInitialized()) return false; } - if (has_afterhandshowcardsmessage()) { - if (!this->afterhandshowcardsmessage().IsInitialized()) return false; + if (_internal_has_afterhandshowcardsmessage()) { + if (!afterhandshowcardsmessage_->IsInitialized()) return false; } - if (has_endofgamemessage()) { - if (!this->endofgamemessage().IsInitialized()) return false; + if (_internal_has_endofgamemessage()) { + if (!endofgamemessage_->IsInitialized()) return false; } - if (has_playeridchangedmessage()) { - if (!this->playeridchangedmessage().IsInitialized()) return false; + if (_internal_has_playeridchangedmessage()) { + if (!playeridchangedmessage_->IsInitialized()) return false; } - if (has_askkickplayermessage()) { - if (!this->askkickplayermessage().IsInitialized()) return false; + if (_internal_has_askkickplayermessage()) { + if (!askkickplayermessage_->IsInitialized()) return false; } - if (has_askkickdeniedmessage()) { - if (!this->askkickdeniedmessage().IsInitialized()) return false; + if (_internal_has_askkickdeniedmessage()) { + if (!askkickdeniedmessage_->IsInitialized()) return false; } - if (has_startkickpetitionmessage()) { - if (!this->startkickpetitionmessage().IsInitialized()) return false; + if (_internal_has_startkickpetitionmessage()) { + if (!startkickpetitionmessage_->IsInitialized()) return false; } - if (has_votekickrequestmessage()) { - if (!this->votekickrequestmessage().IsInitialized()) return false; + if (_internal_has_votekickrequestmessage()) { + if (!votekickrequestmessage_->IsInitialized()) return false; } - if (has_votekickreplymessage()) { - if (!this->votekickreplymessage().IsInitialized()) return false; + if (_internal_has_votekickreplymessage()) { + if (!votekickreplymessage_->IsInitialized()) return false; } - if (has_kickpetitionupdatemessage()) { - if (!this->kickpetitionupdatemessage().IsInitialized()) return false; + if (_internal_has_kickpetitionupdatemessage()) { + if (!kickpetitionupdatemessage_->IsInitialized()) return false; } - if (has_endkickpetitionmessage()) { - if (!this->endkickpetitionmessage().IsInitialized()) return false; + if (_internal_has_endkickpetitionmessage()) { + if (!endkickpetitionmessage_->IsInitialized()) return false; } - if (has_statisticsmessage()) { - if (!this->statisticsmessage().IsInitialized()) return false; + if (_internal_has_statisticsmessage()) { + if (!statisticsmessage_->IsInitialized()) return false; } - if (has_chatrequestmessage()) { - if (!this->chatrequestmessage().IsInitialized()) return false; + if (_internal_has_chatrequestmessage()) { + if (!chatrequestmessage_->IsInitialized()) return false; } - if (has_chatmessage()) { - if (!this->chatmessage().IsInitialized()) return false; + if (_internal_has_chatmessage()) { + if (!chatmessage_->IsInitialized()) return false; } - if (has_chatrejectmessage()) { - if (!this->chatrejectmessage().IsInitialized()) return false; + if (_internal_has_chatrejectmessage()) { + if (!chatrejectmessage_->IsInitialized()) return false; } - if (has_dialogmessage()) { - if (!this->dialogmessage().IsInitialized()) return false; + if (_internal_has_dialogmessage()) { + if (!dialogmessage_->IsInitialized()) return false; } - if (has_timeoutwarningmessage()) { - if (!this->timeoutwarningmessage().IsInitialized()) return false; + if (_internal_has_timeoutwarningmessage()) { + if (!timeoutwarningmessage_->IsInitialized()) return false; } - if (has_reportavatarmessage()) { - if (!this->reportavatarmessage().IsInitialized()) return false; + if (_internal_has_reportavatarmessage()) { + if (!reportavatarmessage_->IsInitialized()) return false; } - if (has_reportavatarackmessage()) { - if (!this->reportavatarackmessage().IsInitialized()) return false; + if (_internal_has_reportavatarackmessage()) { + if (!reportavatarackmessage_->IsInitialized()) return false; } - if (has_reportgamemessage()) { - if (!this->reportgamemessage().IsInitialized()) return false; + if (_internal_has_reportgamemessage()) { + if (!reportgamemessage_->IsInitialized()) return false; } - if (has_reportgameackmessage()) { - if (!this->reportgameackmessage().IsInitialized()) return false; + if (_internal_has_reportgameackmessage()) { + if (!reportgameackmessage_->IsInitialized()) return false; } - if (has_errormessage()) { - if (!this->errormessage().IsInitialized()) return false; + if (_internal_has_errormessage()) { + if (!errormessage_->IsInitialized()) return false; } - if (has_adminremovegamemessage()) { - if (!this->adminremovegamemessage().IsInitialized()) return false; + if (_internal_has_adminremovegamemessage()) { + if (!adminremovegamemessage_->IsInitialized()) return false; } - if (has_adminremovegameackmessage()) { - if (!this->adminremovegameackmessage().IsInitialized()) return false; + if (_internal_has_adminremovegameackmessage()) { + if (!adminremovegameackmessage_->IsInitialized()) return false; } - if (has_adminbanplayermessage()) { - if (!this->adminbanplayermessage().IsInitialized()) return false; + if (_internal_has_adminbanplayermessage()) { + if (!adminbanplayermessage_->IsInitialized()) return false; } - if (has_adminbanplayerackmessage()) { - if (!this->adminbanplayerackmessage().IsInitialized()) return false; + if (_internal_has_adminbanplayerackmessage()) { + if (!adminbanplayerackmessage_->IsInitialized()) return false; } - if (has_gamelistspectatorjoinedmessage()) { - if (!this->gamelistspectatorjoinedmessage().IsInitialized()) return false; + if (_internal_has_gamelistspectatorjoinedmessage()) { + if (!gamelistspectatorjoinedmessage_->IsInitialized()) return false; } - if (has_gamelistspectatorleftmessage()) { - if (!this->gamelistspectatorleftmessage().IsInitialized()) return false; + if (_internal_has_gamelistspectatorleftmessage()) { + if (!gamelistspectatorleftmessage_->IsInitialized()) return false; } - if (has_gamespectatorjoinedmessage()) { - if (!this->gamespectatorjoinedmessage().IsInitialized()) return false; + if (_internal_has_gamespectatorjoinedmessage()) { + if (!gamespectatorjoinedmessage_->IsInitialized()) return false; } - if (has_gamespectatorleftmessage()) { - if (!this->gamespectatorleftmessage().IsInitialized()) return false; + if (_internal_has_gamespectatorleftmessage()) { + if (!gamespectatorleftmessage_->IsInitialized()) return false; } if (has_gamestartreentrymessage()) { if (!this->gamestartreentrymessage().IsInitialized()) return false; @@ -26749,103 +33680,302 @@ bool PokerTHMessage::IsInitialized() const { return true; } -void PokerTHMessage::Swap(PokerTHMessage* other) { - if (other != this) { - std::swap(messagetype_, other->messagetype_); - std::swap(announcemessage_, other->announcemessage_); - std::swap(initmessage_, other->initmessage_); - std::swap(authserverchallengemessage_, other->authserverchallengemessage_); - std::swap(authclientresponsemessage_, other->authclientresponsemessage_); - std::swap(authserververificationmessage_, other->authserververificationmessage_); - std::swap(initackmessage_, other->initackmessage_); - std::swap(avatarrequestmessage_, other->avatarrequestmessage_); - std::swap(avatarheadermessage_, other->avatarheadermessage_); - std::swap(avatardatamessage_, other->avatardatamessage_); - std::swap(avatarendmessage_, other->avatarendmessage_); - std::swap(unknownavatarmessage_, other->unknownavatarmessage_); - std::swap(playerlistmessage_, other->playerlistmessage_); - std::swap(gamelistnewmessage_, other->gamelistnewmessage_); - std::swap(gamelistupdatemessage_, other->gamelistupdatemessage_); - std::swap(gamelistplayerjoinedmessage_, other->gamelistplayerjoinedmessage_); - std::swap(gamelistplayerleftmessage_, other->gamelistplayerleftmessage_); - std::swap(gamelistadminchangedmessage_, other->gamelistadminchangedmessage_); - std::swap(playerinforequestmessage_, other->playerinforequestmessage_); - std::swap(playerinforeplymessage_, other->playerinforeplymessage_); - std::swap(subscriptionrequestmessage_, other->subscriptionrequestmessage_); - std::swap(joinexistinggamemessage_, other->joinexistinggamemessage_); - std::swap(joinnewgamemessage_, other->joinnewgamemessage_); - std::swap(rejoinexistinggamemessage_, other->rejoinexistinggamemessage_); - std::swap(joingameackmessage_, other->joingameackmessage_); - std::swap(joingamefailedmessage_, other->joingamefailedmessage_); - std::swap(gameplayerjoinedmessage_, other->gameplayerjoinedmessage_); - std::swap(gameplayerleftmessage_, other->gameplayerleftmessage_); - std::swap(gameadminchangedmessage_, other->gameadminchangedmessage_); - std::swap(removedfromgamemessage_, other->removedfromgamemessage_); - std::swap(kickplayerrequestmessage_, other->kickplayerrequestmessage_); - std::swap(leavegamerequestmessage_, other->leavegamerequestmessage_); - std::swap(inviteplayertogamemessage_, other->inviteplayertogamemessage_); - std::swap(invitenotifymessage_, other->invitenotifymessage_); - std::swap(rejectgameinvitationmessage_, other->rejectgameinvitationmessage_); - std::swap(rejectinvnotifymessage_, other->rejectinvnotifymessage_); - std::swap(starteventmessage_, other->starteventmessage_); - std::swap(starteventackmessage_, other->starteventackmessage_); - std::swap(gamestartinitialmessage_, other->gamestartinitialmessage_); - std::swap(gamestartrejoinmessage_, other->gamestartrejoinmessage_); - std::swap(handstartmessage_, other->handstartmessage_); - std::swap(playersturnmessage_, other->playersturnmessage_); - std::swap(myactionrequestmessage_, other->myactionrequestmessage_); - std::swap(youractionrejectedmessage_, other->youractionrejectedmessage_); - std::swap(playersactiondonemessage_, other->playersactiondonemessage_); - std::swap(dealflopcardsmessage_, other->dealflopcardsmessage_); - std::swap(dealturncardmessage_, other->dealturncardmessage_); - std::swap(dealrivercardmessage_, other->dealrivercardmessage_); - std::swap(allinshowcardsmessage_, other->allinshowcardsmessage_); - std::swap(endofhandshowcardsmessage_, other->endofhandshowcardsmessage_); - std::swap(endofhandhidecardsmessage_, other->endofhandhidecardsmessage_); - std::swap(showmycardsrequestmessage_, other->showmycardsrequestmessage_); - std::swap(afterhandshowcardsmessage_, other->afterhandshowcardsmessage_); - std::swap(endofgamemessage_, other->endofgamemessage_); - std::swap(playeridchangedmessage_, other->playeridchangedmessage_); - std::swap(askkickplayermessage_, other->askkickplayermessage_); - std::swap(askkickdeniedmessage_, other->askkickdeniedmessage_); - std::swap(startkickpetitionmessage_, other->startkickpetitionmessage_); - std::swap(votekickrequestmessage_, other->votekickrequestmessage_); - std::swap(votekickreplymessage_, other->votekickreplymessage_); - std::swap(kickpetitionupdatemessage_, other->kickpetitionupdatemessage_); - std::swap(endkickpetitionmessage_, other->endkickpetitionmessage_); - std::swap(statisticsmessage_, other->statisticsmessage_); - std::swap(chatrequestmessage_, other->chatrequestmessage_); - std::swap(chatmessage_, other->chatmessage_); - std::swap(chatrejectmessage_, other->chatrejectmessage_); - std::swap(dialogmessage_, other->dialogmessage_); - std::swap(timeoutwarningmessage_, other->timeoutwarningmessage_); - std::swap(resettimeoutmessage_, other->resettimeoutmessage_); - std::swap(reportavatarmessage_, other->reportavatarmessage_); - std::swap(reportavatarackmessage_, other->reportavatarackmessage_); - std::swap(reportgamemessage_, other->reportgamemessage_); - std::swap(reportgameackmessage_, other->reportgameackmessage_); - std::swap(errormessage_, other->errormessage_); - std::swap(adminremovegamemessage_, other->adminremovegamemessage_); - std::swap(adminremovegameackmessage_, other->adminremovegameackmessage_); - std::swap(adminbanplayermessage_, other->adminbanplayermessage_); - std::swap(adminbanplayerackmessage_, other->adminbanplayerackmessage_); - std::swap(gamelistspectatorjoinedmessage_, other->gamelistspectatorjoinedmessage_); - std::swap(gamelistspectatorleftmessage_, other->gamelistspectatorleftmessage_); - std::swap(gamespectatorjoinedmessage_, other->gamespectatorjoinedmessage_); - std::swap(gamespectatorleftmessage_, other->gamespectatorleftmessage_); - std::swap(gamestartreentrymessage_, other->gamestartreentrymessage_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_has_bits_[1], other->_has_bits_[1]); - std::swap(_has_bits_[2], other->_has_bits_[2]); - std::swap(_cached_size_, other->_cached_size_); - } +void PokerTHMessage::InternalSwap(PokerTHMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(_has_bits_[1], other->_has_bits_[1]); + swap(_has_bits_[2], other->_has_bits_[2]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PokerTHMessage, gamespectatorleftmessage_) + + sizeof(PokerTHMessage::gamespectatorleftmessage_) + - PROTOBUF_FIELD_OFFSET(PokerTHMessage, announcemessage_)>( + reinterpret_cast(&announcemessage_), + reinterpret_cast(&other->announcemessage_)); + swap(messagetype_, other->messagetype_); } -::std::string PokerTHMessage::GetTypeName() const { +std::string PokerTHMessage::GetTypeName() const { return "PokerTHMessage"; } // @@protoc_insertion_point(namespace_scope) +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::NetGameInfo* Arena::CreateMaybeMessage< ::NetGameInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::NetGameInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::PlayerResult* Arena::CreateMaybeMessage< ::PlayerResult >(Arena* arena) { + return Arena::CreateMessageInternal< ::PlayerResult >(arena); +} +template<> PROTOBUF_NOINLINE ::AnnounceMessage_Version* Arena::CreateMaybeMessage< ::AnnounceMessage_Version >(Arena* arena) { + return Arena::CreateMessageInternal< ::AnnounceMessage_Version >(arena); +} +template<> PROTOBUF_NOINLINE ::AnnounceMessage* Arena::CreateMaybeMessage< ::AnnounceMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::AnnounceMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::InitMessage* Arena::CreateMaybeMessage< ::InitMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::InitMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::AuthServerChallengeMessage* Arena::CreateMaybeMessage< ::AuthServerChallengeMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::AuthServerChallengeMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::AuthClientResponseMessage* Arena::CreateMaybeMessage< ::AuthClientResponseMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::AuthClientResponseMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::AuthServerVerificationMessage* Arena::CreateMaybeMessage< ::AuthServerVerificationMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::AuthServerVerificationMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::InitAckMessage* Arena::CreateMaybeMessage< ::InitAckMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::InitAckMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::AvatarRequestMessage* Arena::CreateMaybeMessage< ::AvatarRequestMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::AvatarRequestMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::AvatarHeaderMessage* Arena::CreateMaybeMessage< ::AvatarHeaderMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::AvatarHeaderMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::AvatarDataMessage* Arena::CreateMaybeMessage< ::AvatarDataMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::AvatarDataMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::AvatarEndMessage* Arena::CreateMaybeMessage< ::AvatarEndMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::AvatarEndMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::UnknownAvatarMessage* Arena::CreateMaybeMessage< ::UnknownAvatarMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::UnknownAvatarMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::PlayerListMessage* Arena::CreateMaybeMessage< ::PlayerListMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::PlayerListMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::GameListNewMessage* Arena::CreateMaybeMessage< ::GameListNewMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::GameListNewMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::GameListUpdateMessage* Arena::CreateMaybeMessage< ::GameListUpdateMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::GameListUpdateMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::GameListPlayerJoinedMessage* Arena::CreateMaybeMessage< ::GameListPlayerJoinedMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::GameListPlayerJoinedMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::GameListPlayerLeftMessage* Arena::CreateMaybeMessage< ::GameListPlayerLeftMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::GameListPlayerLeftMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::GameListSpectatorJoinedMessage* Arena::CreateMaybeMessage< ::GameListSpectatorJoinedMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::GameListSpectatorJoinedMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::GameListSpectatorLeftMessage* Arena::CreateMaybeMessage< ::GameListSpectatorLeftMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::GameListSpectatorLeftMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::GameListAdminChangedMessage* Arena::CreateMaybeMessage< ::GameListAdminChangedMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::GameListAdminChangedMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::PlayerInfoRequestMessage* Arena::CreateMaybeMessage< ::PlayerInfoRequestMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::PlayerInfoRequestMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* Arena::CreateMaybeMessage< ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData >(Arena* arena) { + return Arena::CreateMessageInternal< ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData >(arena); +} +template<> PROTOBUF_NOINLINE ::PlayerInfoReplyMessage_PlayerInfoData* Arena::CreateMaybeMessage< ::PlayerInfoReplyMessage_PlayerInfoData >(Arena* arena) { + return Arena::CreateMessageInternal< ::PlayerInfoReplyMessage_PlayerInfoData >(arena); +} +template<> PROTOBUF_NOINLINE ::PlayerInfoReplyMessage* Arena::CreateMaybeMessage< ::PlayerInfoReplyMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::PlayerInfoReplyMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::SubscriptionRequestMessage* Arena::CreateMaybeMessage< ::SubscriptionRequestMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::SubscriptionRequestMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::JoinExistingGameMessage* Arena::CreateMaybeMessage< ::JoinExistingGameMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::JoinExistingGameMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::JoinNewGameMessage* Arena::CreateMaybeMessage< ::JoinNewGameMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::JoinNewGameMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::RejoinExistingGameMessage* Arena::CreateMaybeMessage< ::RejoinExistingGameMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::RejoinExistingGameMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::JoinGameAckMessage* Arena::CreateMaybeMessage< ::JoinGameAckMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::JoinGameAckMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::JoinGameFailedMessage* Arena::CreateMaybeMessage< ::JoinGameFailedMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::JoinGameFailedMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::GamePlayerJoinedMessage* Arena::CreateMaybeMessage< ::GamePlayerJoinedMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::GamePlayerJoinedMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::GamePlayerLeftMessage* Arena::CreateMaybeMessage< ::GamePlayerLeftMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::GamePlayerLeftMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::GameSpectatorJoinedMessage* Arena::CreateMaybeMessage< ::GameSpectatorJoinedMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::GameSpectatorJoinedMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::GameSpectatorLeftMessage* Arena::CreateMaybeMessage< ::GameSpectatorLeftMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::GameSpectatorLeftMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::GameAdminChangedMessage* Arena::CreateMaybeMessage< ::GameAdminChangedMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::GameAdminChangedMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::RemovedFromGameMessage* Arena::CreateMaybeMessage< ::RemovedFromGameMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::RemovedFromGameMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::KickPlayerRequestMessage* Arena::CreateMaybeMessage< ::KickPlayerRequestMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::KickPlayerRequestMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::LeaveGameRequestMessage* Arena::CreateMaybeMessage< ::LeaveGameRequestMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::LeaveGameRequestMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::InvitePlayerToGameMessage* Arena::CreateMaybeMessage< ::InvitePlayerToGameMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::InvitePlayerToGameMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::InviteNotifyMessage* Arena::CreateMaybeMessage< ::InviteNotifyMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::InviteNotifyMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::RejectGameInvitationMessage* Arena::CreateMaybeMessage< ::RejectGameInvitationMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::RejectGameInvitationMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::RejectInvNotifyMessage* Arena::CreateMaybeMessage< ::RejectInvNotifyMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::RejectInvNotifyMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::StartEventMessage* Arena::CreateMaybeMessage< ::StartEventMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::StartEventMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::StartEventAckMessage* Arena::CreateMaybeMessage< ::StartEventAckMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::StartEventAckMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::GameStartInitialMessage* Arena::CreateMaybeMessage< ::GameStartInitialMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::GameStartInitialMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::GameStartRejoinMessage_RejoinPlayerData* Arena::CreateMaybeMessage< ::GameStartRejoinMessage_RejoinPlayerData >(Arena* arena) { + return Arena::CreateMessageInternal< ::GameStartRejoinMessage_RejoinPlayerData >(arena); +} +template<> PROTOBUF_NOINLINE ::GameStartRejoinMessage* Arena::CreateMaybeMessage< ::GameStartRejoinMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::GameStartRejoinMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::HandStartMessage_PlainCards* Arena::CreateMaybeMessage< ::HandStartMessage_PlainCards >(Arena* arena) { + return Arena::CreateMessageInternal< ::HandStartMessage_PlainCards >(arena); +} +template<> PROTOBUF_NOINLINE ::HandStartMessage* Arena::CreateMaybeMessage< ::HandStartMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::HandStartMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::PlayersTurnMessage* Arena::CreateMaybeMessage< ::PlayersTurnMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::PlayersTurnMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::MyActionRequestMessage* Arena::CreateMaybeMessage< ::MyActionRequestMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::MyActionRequestMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::YourActionRejectedMessage* Arena::CreateMaybeMessage< ::YourActionRejectedMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::YourActionRejectedMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::PlayersActionDoneMessage* Arena::CreateMaybeMessage< ::PlayersActionDoneMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::PlayersActionDoneMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::DealFlopCardsMessage* Arena::CreateMaybeMessage< ::DealFlopCardsMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::DealFlopCardsMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::DealTurnCardMessage* Arena::CreateMaybeMessage< ::DealTurnCardMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::DealTurnCardMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::DealRiverCardMessage* Arena::CreateMaybeMessage< ::DealRiverCardMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::DealRiverCardMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::AllInShowCardsMessage_PlayerAllIn* Arena::CreateMaybeMessage< ::AllInShowCardsMessage_PlayerAllIn >(Arena* arena) { + return Arena::CreateMessageInternal< ::AllInShowCardsMessage_PlayerAllIn >(arena); +} +template<> PROTOBUF_NOINLINE ::AllInShowCardsMessage* Arena::CreateMaybeMessage< ::AllInShowCardsMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::AllInShowCardsMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::EndOfHandShowCardsMessage* Arena::CreateMaybeMessage< ::EndOfHandShowCardsMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::EndOfHandShowCardsMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::EndOfHandHideCardsMessage* Arena::CreateMaybeMessage< ::EndOfHandHideCardsMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::EndOfHandHideCardsMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::ShowMyCardsRequestMessage* Arena::CreateMaybeMessage< ::ShowMyCardsRequestMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::ShowMyCardsRequestMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::AfterHandShowCardsMessage* Arena::CreateMaybeMessage< ::AfterHandShowCardsMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::AfterHandShowCardsMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::EndOfGameMessage* Arena::CreateMaybeMessage< ::EndOfGameMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::EndOfGameMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::PlayerIdChangedMessage* Arena::CreateMaybeMessage< ::PlayerIdChangedMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::PlayerIdChangedMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::AskKickPlayerMessage* Arena::CreateMaybeMessage< ::AskKickPlayerMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::AskKickPlayerMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::AskKickDeniedMessage* Arena::CreateMaybeMessage< ::AskKickDeniedMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::AskKickDeniedMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::StartKickPetitionMessage* Arena::CreateMaybeMessage< ::StartKickPetitionMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::StartKickPetitionMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::VoteKickRequestMessage* Arena::CreateMaybeMessage< ::VoteKickRequestMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::VoteKickRequestMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::VoteKickReplyMessage* Arena::CreateMaybeMessage< ::VoteKickReplyMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::VoteKickReplyMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::KickPetitionUpdateMessage* Arena::CreateMaybeMessage< ::KickPetitionUpdateMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::KickPetitionUpdateMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::EndKickPetitionMessage* Arena::CreateMaybeMessage< ::EndKickPetitionMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::EndKickPetitionMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::StatisticsMessage_StatisticsData* Arena::CreateMaybeMessage< ::StatisticsMessage_StatisticsData >(Arena* arena) { + return Arena::CreateMessageInternal< ::StatisticsMessage_StatisticsData >(arena); +} +template<> PROTOBUF_NOINLINE ::StatisticsMessage* Arena::CreateMaybeMessage< ::StatisticsMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::StatisticsMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::ChatRequestMessage* Arena::CreateMaybeMessage< ::ChatRequestMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::ChatRequestMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::ChatMessage* Arena::CreateMaybeMessage< ::ChatMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::ChatMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::ChatRejectMessage* Arena::CreateMaybeMessage< ::ChatRejectMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::ChatRejectMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::DialogMessage* Arena::CreateMaybeMessage< ::DialogMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::DialogMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::TimeoutWarningMessage* Arena::CreateMaybeMessage< ::TimeoutWarningMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::TimeoutWarningMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::ResetTimeoutMessage* Arena::CreateMaybeMessage< ::ResetTimeoutMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::ResetTimeoutMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::ReportAvatarMessage* Arena::CreateMaybeMessage< ::ReportAvatarMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::ReportAvatarMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::ReportAvatarAckMessage* Arena::CreateMaybeMessage< ::ReportAvatarAckMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::ReportAvatarAckMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::ReportGameMessage* Arena::CreateMaybeMessage< ::ReportGameMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::ReportGameMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::ReportGameAckMessage* Arena::CreateMaybeMessage< ::ReportGameAckMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::ReportGameAckMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::ErrorMessage* Arena::CreateMaybeMessage< ::ErrorMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::ErrorMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::AdminRemoveGameMessage* Arena::CreateMaybeMessage< ::AdminRemoveGameMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::AdminRemoveGameMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::AdminRemoveGameAckMessage* Arena::CreateMaybeMessage< ::AdminRemoveGameAckMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::AdminRemoveGameAckMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::AdminBanPlayerMessage* Arena::CreateMaybeMessage< ::AdminBanPlayerMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::AdminBanPlayerMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::AdminBanPlayerAckMessage* Arena::CreateMaybeMessage< ::AdminBanPlayerAckMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::AdminBanPlayerAckMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::PokerTHMessage* Arena::CreateMaybeMessage< ::PokerTHMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::PokerTHMessage >(arena); +} +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) +#include diff --git a/src/third_party/protobuf/pokerth.pb.h b/src/third_party/protobuf/pokerth.pb.h index 9d375689..f3267d5e 100644 --- a/src/third_party/protobuf/pokerth.pb.h +++ b/src/third_party/protobuf/pokerth.pb.h @@ -1,198 +1,563 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: pokerth.proto -#ifndef PROTOBUF_pokerth_2eproto__INCLUDED -#define PROTOBUF_pokerth_2eproto__INCLUDED +#ifndef GOOGLE_PROTOBUF_INCLUDED_pokerth_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_pokerth_2eproto +#include #include -#include - -#if GOOGLE_PROTOBUF_VERSION < 2005000 +#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 incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#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 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 +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_pokerth_2eproto(); -void protobuf_AssignDesc_pokerth_2eproto(); -void protobuf_ShutdownFile_pokerth_2eproto(); - -class NetGameInfo; -class PlayerResult; -class AnnounceMessage; -class AnnounceMessage_Version; -class InitMessage; -class AuthServerChallengeMessage; -class AuthClientResponseMessage; -class AuthServerVerificationMessage; -class InitAckMessage; -class AvatarRequestMessage; -class AvatarHeaderMessage; -class AvatarDataMessage; -class AvatarEndMessage; -class UnknownAvatarMessage; -class PlayerListMessage; -class GameListNewMessage; -class GameListUpdateMessage; -class GameListPlayerJoinedMessage; -class GameListPlayerLeftMessage; -class GameListSpectatorJoinedMessage; -class GameListSpectatorLeftMessage; -class GameListAdminChangedMessage; -class PlayerInfoRequestMessage; -class PlayerInfoReplyMessage; -class PlayerInfoReplyMessage_PlayerInfoData; -class PlayerInfoReplyMessage_PlayerInfoData_AvatarData; -class SubscriptionRequestMessage; -class JoinExistingGameMessage; -class JoinNewGameMessage; -class RejoinExistingGameMessage; -class JoinGameAckMessage; -class JoinGameFailedMessage; -class GamePlayerJoinedMessage; -class GamePlayerLeftMessage; -class GameSpectatorJoinedMessage; -class GameSpectatorLeftMessage; -class GameAdminChangedMessage; -class RemovedFromGameMessage; -class KickPlayerRequestMessage; -class LeaveGameRequestMessage; -class InvitePlayerToGameMessage; -class InviteNotifyMessage; -class RejectGameInvitationMessage; -class RejectInvNotifyMessage; -class StartEventMessage; -class StartEventAckMessage; -class GameStartInitialMessage; -class GameStartRejoinMessage; -class GameStartRejoinMessage_RejoinPlayerData; -class GameStartReentryMessage; -class GameStartReentryMessage_ReentryPlayerData; -class HandStartMessage; -class HandStartMessage_PlainCards; -class PlayersTurnMessage; -class MyActionRequestMessage; -class YourActionRejectedMessage; -class PlayersActionDoneMessage; -class DealFlopCardsMessage; -class DealTurnCardMessage; -class DealRiverCardMessage; -class AllInShowCardsMessage; -class AllInShowCardsMessage_PlayerAllIn; -class EndOfHandShowCardsMessage; -class EndOfHandHideCardsMessage; -class ShowMyCardsRequestMessage; -class AfterHandShowCardsMessage; -class EndOfGameMessage; -class PlayerIdChangedMessage; -class AskKickPlayerMessage; -class AskKickDeniedMessage; -class StartKickPetitionMessage; -class VoteKickRequestMessage; -class VoteKickReplyMessage; -class KickPetitionUpdateMessage; -class EndKickPetitionMessage; -class StatisticsMessage; -class StatisticsMessage_StatisticsData; -class ChatRequestMessage; -class ChatMessage; -class ChatRejectMessage; -class DialogMessage; -class TimeoutWarningMessage; -class ResetTimeoutMessage; -class ReportAvatarMessage; -class ReportAvatarAckMessage; -class ReportGameMessage; -class ReportGameAckMessage; -class ErrorMessage; -class AdminRemoveGameMessage; -class AdminRemoveGameAckMessage; -class AdminBanPlayerMessage; +// Internal implementation detail -- do not use these members. +struct TableStruct_pokerth_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[91] + 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[]; +}; class AdminBanPlayerAckMessage; +class AdminBanPlayerAckMessageDefaultTypeInternal; +extern AdminBanPlayerAckMessageDefaultTypeInternal _AdminBanPlayerAckMessage_default_instance_; +class AdminBanPlayerMessage; +class AdminBanPlayerMessageDefaultTypeInternal; +extern AdminBanPlayerMessageDefaultTypeInternal _AdminBanPlayerMessage_default_instance_; +class AdminRemoveGameAckMessage; +class AdminRemoveGameAckMessageDefaultTypeInternal; +extern AdminRemoveGameAckMessageDefaultTypeInternal _AdminRemoveGameAckMessage_default_instance_; +class AdminRemoveGameMessage; +class AdminRemoveGameMessageDefaultTypeInternal; +extern AdminRemoveGameMessageDefaultTypeInternal _AdminRemoveGameMessage_default_instance_; +class AfterHandShowCardsMessage; +class AfterHandShowCardsMessageDefaultTypeInternal; +extern AfterHandShowCardsMessageDefaultTypeInternal _AfterHandShowCardsMessage_default_instance_; +class AllInShowCardsMessage; +class AllInShowCardsMessageDefaultTypeInternal; +extern AllInShowCardsMessageDefaultTypeInternal _AllInShowCardsMessage_default_instance_; +class AllInShowCardsMessage_PlayerAllIn; +class AllInShowCardsMessage_PlayerAllInDefaultTypeInternal; +extern AllInShowCardsMessage_PlayerAllInDefaultTypeInternal _AllInShowCardsMessage_PlayerAllIn_default_instance_; +class AnnounceMessage; +class AnnounceMessageDefaultTypeInternal; +extern AnnounceMessageDefaultTypeInternal _AnnounceMessage_default_instance_; +class AnnounceMessage_Version; +class AnnounceMessage_VersionDefaultTypeInternal; +extern AnnounceMessage_VersionDefaultTypeInternal _AnnounceMessage_Version_default_instance_; +class AskKickDeniedMessage; +class AskKickDeniedMessageDefaultTypeInternal; +extern AskKickDeniedMessageDefaultTypeInternal _AskKickDeniedMessage_default_instance_; +class AskKickPlayerMessage; +class AskKickPlayerMessageDefaultTypeInternal; +extern AskKickPlayerMessageDefaultTypeInternal _AskKickPlayerMessage_default_instance_; +class AuthClientResponseMessage; +class AuthClientResponseMessageDefaultTypeInternal; +extern AuthClientResponseMessageDefaultTypeInternal _AuthClientResponseMessage_default_instance_; +class AuthServerChallengeMessage; +class AuthServerChallengeMessageDefaultTypeInternal; +extern AuthServerChallengeMessageDefaultTypeInternal _AuthServerChallengeMessage_default_instance_; +class AuthServerVerificationMessage; +class AuthServerVerificationMessageDefaultTypeInternal; +extern AuthServerVerificationMessageDefaultTypeInternal _AuthServerVerificationMessage_default_instance_; +class AvatarDataMessage; +class AvatarDataMessageDefaultTypeInternal; +extern AvatarDataMessageDefaultTypeInternal _AvatarDataMessage_default_instance_; +class AvatarEndMessage; +class AvatarEndMessageDefaultTypeInternal; +extern AvatarEndMessageDefaultTypeInternal _AvatarEndMessage_default_instance_; +class AvatarHeaderMessage; +class AvatarHeaderMessageDefaultTypeInternal; +extern AvatarHeaderMessageDefaultTypeInternal _AvatarHeaderMessage_default_instance_; +class AvatarRequestMessage; +class AvatarRequestMessageDefaultTypeInternal; +extern AvatarRequestMessageDefaultTypeInternal _AvatarRequestMessage_default_instance_; +class ChatMessage; +class ChatMessageDefaultTypeInternal; +extern ChatMessageDefaultTypeInternal _ChatMessage_default_instance_; +class ChatRejectMessage; +class ChatRejectMessageDefaultTypeInternal; +extern ChatRejectMessageDefaultTypeInternal _ChatRejectMessage_default_instance_; +class ChatRequestMessage; +class ChatRequestMessageDefaultTypeInternal; +extern ChatRequestMessageDefaultTypeInternal _ChatRequestMessage_default_instance_; +class DealFlopCardsMessage; +class DealFlopCardsMessageDefaultTypeInternal; +extern DealFlopCardsMessageDefaultTypeInternal _DealFlopCardsMessage_default_instance_; +class DealRiverCardMessage; +class DealRiverCardMessageDefaultTypeInternal; +extern DealRiverCardMessageDefaultTypeInternal _DealRiverCardMessage_default_instance_; +class DealTurnCardMessage; +class DealTurnCardMessageDefaultTypeInternal; +extern DealTurnCardMessageDefaultTypeInternal _DealTurnCardMessage_default_instance_; +class DialogMessage; +class DialogMessageDefaultTypeInternal; +extern DialogMessageDefaultTypeInternal _DialogMessage_default_instance_; +class EndKickPetitionMessage; +class EndKickPetitionMessageDefaultTypeInternal; +extern EndKickPetitionMessageDefaultTypeInternal _EndKickPetitionMessage_default_instance_; +class EndOfGameMessage; +class EndOfGameMessageDefaultTypeInternal; +extern EndOfGameMessageDefaultTypeInternal _EndOfGameMessage_default_instance_; +class EndOfHandHideCardsMessage; +class EndOfHandHideCardsMessageDefaultTypeInternal; +extern EndOfHandHideCardsMessageDefaultTypeInternal _EndOfHandHideCardsMessage_default_instance_; +class EndOfHandShowCardsMessage; +class EndOfHandShowCardsMessageDefaultTypeInternal; +extern EndOfHandShowCardsMessageDefaultTypeInternal _EndOfHandShowCardsMessage_default_instance_; +class ErrorMessage; +class ErrorMessageDefaultTypeInternal; +extern ErrorMessageDefaultTypeInternal _ErrorMessage_default_instance_; +class GameAdminChangedMessage; +class GameAdminChangedMessageDefaultTypeInternal; +extern GameAdminChangedMessageDefaultTypeInternal _GameAdminChangedMessage_default_instance_; +class GameListAdminChangedMessage; +class GameListAdminChangedMessageDefaultTypeInternal; +extern GameListAdminChangedMessageDefaultTypeInternal _GameListAdminChangedMessage_default_instance_; +class GameListNewMessage; +class GameListNewMessageDefaultTypeInternal; +extern GameListNewMessageDefaultTypeInternal _GameListNewMessage_default_instance_; +class GameListPlayerJoinedMessage; +class GameListPlayerJoinedMessageDefaultTypeInternal; +extern GameListPlayerJoinedMessageDefaultTypeInternal _GameListPlayerJoinedMessage_default_instance_; +class GameListPlayerLeftMessage; +class GameListPlayerLeftMessageDefaultTypeInternal; +extern GameListPlayerLeftMessageDefaultTypeInternal _GameListPlayerLeftMessage_default_instance_; +class GameListSpectatorJoinedMessage; +class GameListSpectatorJoinedMessageDefaultTypeInternal; +extern GameListSpectatorJoinedMessageDefaultTypeInternal _GameListSpectatorJoinedMessage_default_instance_; +class GameListSpectatorLeftMessage; +class GameListSpectatorLeftMessageDefaultTypeInternal; +extern GameListSpectatorLeftMessageDefaultTypeInternal _GameListSpectatorLeftMessage_default_instance_; +class GameListUpdateMessage; +class GameListUpdateMessageDefaultTypeInternal; +extern GameListUpdateMessageDefaultTypeInternal _GameListUpdateMessage_default_instance_; +class GamePlayerJoinedMessage; +class GamePlayerJoinedMessageDefaultTypeInternal; +extern GamePlayerJoinedMessageDefaultTypeInternal _GamePlayerJoinedMessage_default_instance_; +class GamePlayerLeftMessage; +class GamePlayerLeftMessageDefaultTypeInternal; +extern GamePlayerLeftMessageDefaultTypeInternal _GamePlayerLeftMessage_default_instance_; +class GameSpectatorJoinedMessage; +class GameSpectatorJoinedMessageDefaultTypeInternal; +extern GameSpectatorJoinedMessageDefaultTypeInternal _GameSpectatorJoinedMessage_default_instance_; +class GameSpectatorLeftMessage; +class GameSpectatorLeftMessageDefaultTypeInternal; +extern GameSpectatorLeftMessageDefaultTypeInternal _GameSpectatorLeftMessage_default_instance_; +class GameStartInitialMessage; +class GameStartInitialMessageDefaultTypeInternal; +extern GameStartInitialMessageDefaultTypeInternal _GameStartInitialMessage_default_instance_; +class GameStartRejoinMessage; +class GameStartRejoinMessageDefaultTypeInternal; +extern GameStartRejoinMessageDefaultTypeInternal _GameStartRejoinMessage_default_instance_; +class GameStartRejoinMessage_RejoinPlayerData; +class GameStartRejoinMessage_RejoinPlayerDataDefaultTypeInternal; +extern GameStartRejoinMessage_RejoinPlayerDataDefaultTypeInternal _GameStartRejoinMessage_RejoinPlayerData_default_instance_; +class HandStartMessage; +class HandStartMessageDefaultTypeInternal; +extern HandStartMessageDefaultTypeInternal _HandStartMessage_default_instance_; +class HandStartMessage_PlainCards; +class HandStartMessage_PlainCardsDefaultTypeInternal; +extern HandStartMessage_PlainCardsDefaultTypeInternal _HandStartMessage_PlainCards_default_instance_; +class InitAckMessage; +class InitAckMessageDefaultTypeInternal; +extern InitAckMessageDefaultTypeInternal _InitAckMessage_default_instance_; +class InitMessage; +class InitMessageDefaultTypeInternal; +extern InitMessageDefaultTypeInternal _InitMessage_default_instance_; +class InviteNotifyMessage; +class InviteNotifyMessageDefaultTypeInternal; +extern InviteNotifyMessageDefaultTypeInternal _InviteNotifyMessage_default_instance_; +class InvitePlayerToGameMessage; +class InvitePlayerToGameMessageDefaultTypeInternal; +extern InvitePlayerToGameMessageDefaultTypeInternal _InvitePlayerToGameMessage_default_instance_; +class JoinExistingGameMessage; +class JoinExistingGameMessageDefaultTypeInternal; +extern JoinExistingGameMessageDefaultTypeInternal _JoinExistingGameMessage_default_instance_; +class JoinGameAckMessage; +class JoinGameAckMessageDefaultTypeInternal; +extern JoinGameAckMessageDefaultTypeInternal _JoinGameAckMessage_default_instance_; +class JoinGameFailedMessage; +class JoinGameFailedMessageDefaultTypeInternal; +extern JoinGameFailedMessageDefaultTypeInternal _JoinGameFailedMessage_default_instance_; +class JoinNewGameMessage; +class JoinNewGameMessageDefaultTypeInternal; +extern JoinNewGameMessageDefaultTypeInternal _JoinNewGameMessage_default_instance_; +class KickPetitionUpdateMessage; +class KickPetitionUpdateMessageDefaultTypeInternal; +extern KickPetitionUpdateMessageDefaultTypeInternal _KickPetitionUpdateMessage_default_instance_; +class KickPlayerRequestMessage; +class KickPlayerRequestMessageDefaultTypeInternal; +extern KickPlayerRequestMessageDefaultTypeInternal _KickPlayerRequestMessage_default_instance_; +class LeaveGameRequestMessage; +class LeaveGameRequestMessageDefaultTypeInternal; +extern LeaveGameRequestMessageDefaultTypeInternal _LeaveGameRequestMessage_default_instance_; +class MyActionRequestMessage; +class MyActionRequestMessageDefaultTypeInternal; +extern MyActionRequestMessageDefaultTypeInternal _MyActionRequestMessage_default_instance_; +class NetGameInfo; +class NetGameInfoDefaultTypeInternal; +extern NetGameInfoDefaultTypeInternal _NetGameInfo_default_instance_; +class PlayerIdChangedMessage; +class PlayerIdChangedMessageDefaultTypeInternal; +extern PlayerIdChangedMessageDefaultTypeInternal _PlayerIdChangedMessage_default_instance_; +class PlayerInfoReplyMessage; +class PlayerInfoReplyMessageDefaultTypeInternal; +extern PlayerInfoReplyMessageDefaultTypeInternal _PlayerInfoReplyMessage_default_instance_; +class PlayerInfoReplyMessage_PlayerInfoData; +class PlayerInfoReplyMessage_PlayerInfoDataDefaultTypeInternal; +extern PlayerInfoReplyMessage_PlayerInfoDataDefaultTypeInternal _PlayerInfoReplyMessage_PlayerInfoData_default_instance_; +class PlayerInfoReplyMessage_PlayerInfoData_AvatarData; +class PlayerInfoReplyMessage_PlayerInfoData_AvatarDataDefaultTypeInternal; +extern PlayerInfoReplyMessage_PlayerInfoData_AvatarDataDefaultTypeInternal _PlayerInfoReplyMessage_PlayerInfoData_AvatarData_default_instance_; +class PlayerInfoRequestMessage; +class PlayerInfoRequestMessageDefaultTypeInternal; +extern PlayerInfoRequestMessageDefaultTypeInternal _PlayerInfoRequestMessage_default_instance_; +class PlayerListMessage; +class PlayerListMessageDefaultTypeInternal; +extern PlayerListMessageDefaultTypeInternal _PlayerListMessage_default_instance_; +class PlayerResult; +class PlayerResultDefaultTypeInternal; +extern PlayerResultDefaultTypeInternal _PlayerResult_default_instance_; +class PlayersActionDoneMessage; +class PlayersActionDoneMessageDefaultTypeInternal; +extern PlayersActionDoneMessageDefaultTypeInternal _PlayersActionDoneMessage_default_instance_; +class PlayersTurnMessage; +class PlayersTurnMessageDefaultTypeInternal; +extern PlayersTurnMessageDefaultTypeInternal _PlayersTurnMessage_default_instance_; class PokerTHMessage; +class PokerTHMessageDefaultTypeInternal; +extern PokerTHMessageDefaultTypeInternal _PokerTHMessage_default_instance_; +class RejectGameInvitationMessage; +class RejectGameInvitationMessageDefaultTypeInternal; +extern RejectGameInvitationMessageDefaultTypeInternal _RejectGameInvitationMessage_default_instance_; +class RejectInvNotifyMessage; +class RejectInvNotifyMessageDefaultTypeInternal; +extern RejectInvNotifyMessageDefaultTypeInternal _RejectInvNotifyMessage_default_instance_; +class RejoinExistingGameMessage; +class RejoinExistingGameMessageDefaultTypeInternal; +extern RejoinExistingGameMessageDefaultTypeInternal _RejoinExistingGameMessage_default_instance_; +class RemovedFromGameMessage; +class RemovedFromGameMessageDefaultTypeInternal; +extern RemovedFromGameMessageDefaultTypeInternal _RemovedFromGameMessage_default_instance_; +class ReportAvatarAckMessage; +class ReportAvatarAckMessageDefaultTypeInternal; +extern ReportAvatarAckMessageDefaultTypeInternal _ReportAvatarAckMessage_default_instance_; +class ReportAvatarMessage; +class ReportAvatarMessageDefaultTypeInternal; +extern ReportAvatarMessageDefaultTypeInternal _ReportAvatarMessage_default_instance_; +class ReportGameAckMessage; +class ReportGameAckMessageDefaultTypeInternal; +extern ReportGameAckMessageDefaultTypeInternal _ReportGameAckMessage_default_instance_; +class ReportGameMessage; +class ReportGameMessageDefaultTypeInternal; +extern ReportGameMessageDefaultTypeInternal _ReportGameMessage_default_instance_; +class ResetTimeoutMessage; +class ResetTimeoutMessageDefaultTypeInternal; +extern ResetTimeoutMessageDefaultTypeInternal _ResetTimeoutMessage_default_instance_; +class ShowMyCardsRequestMessage; +class ShowMyCardsRequestMessageDefaultTypeInternal; +extern ShowMyCardsRequestMessageDefaultTypeInternal _ShowMyCardsRequestMessage_default_instance_; +class StartEventAckMessage; +class StartEventAckMessageDefaultTypeInternal; +extern StartEventAckMessageDefaultTypeInternal _StartEventAckMessage_default_instance_; +class StartEventMessage; +class StartEventMessageDefaultTypeInternal; +extern StartEventMessageDefaultTypeInternal _StartEventMessage_default_instance_; +class StartKickPetitionMessage; +class StartKickPetitionMessageDefaultTypeInternal; +extern StartKickPetitionMessageDefaultTypeInternal _StartKickPetitionMessage_default_instance_; +class StatisticsMessage; +class StatisticsMessageDefaultTypeInternal; +extern StatisticsMessageDefaultTypeInternal _StatisticsMessage_default_instance_; +class StatisticsMessage_StatisticsData; +class StatisticsMessage_StatisticsDataDefaultTypeInternal; +extern StatisticsMessage_StatisticsDataDefaultTypeInternal _StatisticsMessage_StatisticsData_default_instance_; +class SubscriptionRequestMessage; +class SubscriptionRequestMessageDefaultTypeInternal; +extern SubscriptionRequestMessageDefaultTypeInternal _SubscriptionRequestMessage_default_instance_; +class TimeoutWarningMessage; +class TimeoutWarningMessageDefaultTypeInternal; +extern TimeoutWarningMessageDefaultTypeInternal _TimeoutWarningMessage_default_instance_; +class UnknownAvatarMessage; +class UnknownAvatarMessageDefaultTypeInternal; +extern UnknownAvatarMessageDefaultTypeInternal _UnknownAvatarMessage_default_instance_; +class VoteKickReplyMessage; +class VoteKickReplyMessageDefaultTypeInternal; +extern VoteKickReplyMessageDefaultTypeInternal _VoteKickReplyMessage_default_instance_; +class VoteKickRequestMessage; +class VoteKickRequestMessageDefaultTypeInternal; +extern VoteKickRequestMessageDefaultTypeInternal _VoteKickRequestMessage_default_instance_; +class YourActionRejectedMessage; +class YourActionRejectedMessageDefaultTypeInternal; +extern YourActionRejectedMessageDefaultTypeInternal _YourActionRejectedMessage_default_instance_; +PROTOBUF_NAMESPACE_OPEN +template<> ::AdminBanPlayerAckMessage* Arena::CreateMaybeMessage<::AdminBanPlayerAckMessage>(Arena*); +template<> ::AdminBanPlayerMessage* Arena::CreateMaybeMessage<::AdminBanPlayerMessage>(Arena*); +template<> ::AdminRemoveGameAckMessage* Arena::CreateMaybeMessage<::AdminRemoveGameAckMessage>(Arena*); +template<> ::AdminRemoveGameMessage* Arena::CreateMaybeMessage<::AdminRemoveGameMessage>(Arena*); +template<> ::AfterHandShowCardsMessage* Arena::CreateMaybeMessage<::AfterHandShowCardsMessage>(Arena*); +template<> ::AllInShowCardsMessage* Arena::CreateMaybeMessage<::AllInShowCardsMessage>(Arena*); +template<> ::AllInShowCardsMessage_PlayerAllIn* Arena::CreateMaybeMessage<::AllInShowCardsMessage_PlayerAllIn>(Arena*); +template<> ::AnnounceMessage* Arena::CreateMaybeMessage<::AnnounceMessage>(Arena*); +template<> ::AnnounceMessage_Version* Arena::CreateMaybeMessage<::AnnounceMessage_Version>(Arena*); +template<> ::AskKickDeniedMessage* Arena::CreateMaybeMessage<::AskKickDeniedMessage>(Arena*); +template<> ::AskKickPlayerMessage* Arena::CreateMaybeMessage<::AskKickPlayerMessage>(Arena*); +template<> ::AuthClientResponseMessage* Arena::CreateMaybeMessage<::AuthClientResponseMessage>(Arena*); +template<> ::AuthServerChallengeMessage* Arena::CreateMaybeMessage<::AuthServerChallengeMessage>(Arena*); +template<> ::AuthServerVerificationMessage* Arena::CreateMaybeMessage<::AuthServerVerificationMessage>(Arena*); +template<> ::AvatarDataMessage* Arena::CreateMaybeMessage<::AvatarDataMessage>(Arena*); +template<> ::AvatarEndMessage* Arena::CreateMaybeMessage<::AvatarEndMessage>(Arena*); +template<> ::AvatarHeaderMessage* Arena::CreateMaybeMessage<::AvatarHeaderMessage>(Arena*); +template<> ::AvatarRequestMessage* Arena::CreateMaybeMessage<::AvatarRequestMessage>(Arena*); +template<> ::ChatMessage* Arena::CreateMaybeMessage<::ChatMessage>(Arena*); +template<> ::ChatRejectMessage* Arena::CreateMaybeMessage<::ChatRejectMessage>(Arena*); +template<> ::ChatRequestMessage* Arena::CreateMaybeMessage<::ChatRequestMessage>(Arena*); +template<> ::DealFlopCardsMessage* Arena::CreateMaybeMessage<::DealFlopCardsMessage>(Arena*); +template<> ::DealRiverCardMessage* Arena::CreateMaybeMessage<::DealRiverCardMessage>(Arena*); +template<> ::DealTurnCardMessage* Arena::CreateMaybeMessage<::DealTurnCardMessage>(Arena*); +template<> ::DialogMessage* Arena::CreateMaybeMessage<::DialogMessage>(Arena*); +template<> ::EndKickPetitionMessage* Arena::CreateMaybeMessage<::EndKickPetitionMessage>(Arena*); +template<> ::EndOfGameMessage* Arena::CreateMaybeMessage<::EndOfGameMessage>(Arena*); +template<> ::EndOfHandHideCardsMessage* Arena::CreateMaybeMessage<::EndOfHandHideCardsMessage>(Arena*); +template<> ::EndOfHandShowCardsMessage* Arena::CreateMaybeMessage<::EndOfHandShowCardsMessage>(Arena*); +template<> ::ErrorMessage* Arena::CreateMaybeMessage<::ErrorMessage>(Arena*); +template<> ::GameAdminChangedMessage* Arena::CreateMaybeMessage<::GameAdminChangedMessage>(Arena*); +template<> ::GameListAdminChangedMessage* Arena::CreateMaybeMessage<::GameListAdminChangedMessage>(Arena*); +template<> ::GameListNewMessage* Arena::CreateMaybeMessage<::GameListNewMessage>(Arena*); +template<> ::GameListPlayerJoinedMessage* Arena::CreateMaybeMessage<::GameListPlayerJoinedMessage>(Arena*); +template<> ::GameListPlayerLeftMessage* Arena::CreateMaybeMessage<::GameListPlayerLeftMessage>(Arena*); +template<> ::GameListSpectatorJoinedMessage* Arena::CreateMaybeMessage<::GameListSpectatorJoinedMessage>(Arena*); +template<> ::GameListSpectatorLeftMessage* Arena::CreateMaybeMessage<::GameListSpectatorLeftMessage>(Arena*); +template<> ::GameListUpdateMessage* Arena::CreateMaybeMessage<::GameListUpdateMessage>(Arena*); +template<> ::GamePlayerJoinedMessage* Arena::CreateMaybeMessage<::GamePlayerJoinedMessage>(Arena*); +template<> ::GamePlayerLeftMessage* Arena::CreateMaybeMessage<::GamePlayerLeftMessage>(Arena*); +template<> ::GameSpectatorJoinedMessage* Arena::CreateMaybeMessage<::GameSpectatorJoinedMessage>(Arena*); +template<> ::GameSpectatorLeftMessage* Arena::CreateMaybeMessage<::GameSpectatorLeftMessage>(Arena*); +template<> ::GameStartInitialMessage* Arena::CreateMaybeMessage<::GameStartInitialMessage>(Arena*); +template<> ::GameStartRejoinMessage* Arena::CreateMaybeMessage<::GameStartRejoinMessage>(Arena*); +template<> ::GameStartRejoinMessage_RejoinPlayerData* Arena::CreateMaybeMessage<::GameStartRejoinMessage_RejoinPlayerData>(Arena*); +template<> ::HandStartMessage* Arena::CreateMaybeMessage<::HandStartMessage>(Arena*); +template<> ::HandStartMessage_PlainCards* Arena::CreateMaybeMessage<::HandStartMessage_PlainCards>(Arena*); +template<> ::InitAckMessage* Arena::CreateMaybeMessage<::InitAckMessage>(Arena*); +template<> ::InitMessage* Arena::CreateMaybeMessage<::InitMessage>(Arena*); +template<> ::InviteNotifyMessage* Arena::CreateMaybeMessage<::InviteNotifyMessage>(Arena*); +template<> ::InvitePlayerToGameMessage* Arena::CreateMaybeMessage<::InvitePlayerToGameMessage>(Arena*); +template<> ::JoinExistingGameMessage* Arena::CreateMaybeMessage<::JoinExistingGameMessage>(Arena*); +template<> ::JoinGameAckMessage* Arena::CreateMaybeMessage<::JoinGameAckMessage>(Arena*); +template<> ::JoinGameFailedMessage* Arena::CreateMaybeMessage<::JoinGameFailedMessage>(Arena*); +template<> ::JoinNewGameMessage* Arena::CreateMaybeMessage<::JoinNewGameMessage>(Arena*); +template<> ::KickPetitionUpdateMessage* Arena::CreateMaybeMessage<::KickPetitionUpdateMessage>(Arena*); +template<> ::KickPlayerRequestMessage* Arena::CreateMaybeMessage<::KickPlayerRequestMessage>(Arena*); +template<> ::LeaveGameRequestMessage* Arena::CreateMaybeMessage<::LeaveGameRequestMessage>(Arena*); +template<> ::MyActionRequestMessage* Arena::CreateMaybeMessage<::MyActionRequestMessage>(Arena*); +template<> ::NetGameInfo* Arena::CreateMaybeMessage<::NetGameInfo>(Arena*); +template<> ::PlayerIdChangedMessage* Arena::CreateMaybeMessage<::PlayerIdChangedMessage>(Arena*); +template<> ::PlayerInfoReplyMessage* Arena::CreateMaybeMessage<::PlayerInfoReplyMessage>(Arena*); +template<> ::PlayerInfoReplyMessage_PlayerInfoData* Arena::CreateMaybeMessage<::PlayerInfoReplyMessage_PlayerInfoData>(Arena*); +template<> ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* Arena::CreateMaybeMessage<::PlayerInfoReplyMessage_PlayerInfoData_AvatarData>(Arena*); +template<> ::PlayerInfoRequestMessage* Arena::CreateMaybeMessage<::PlayerInfoRequestMessage>(Arena*); +template<> ::PlayerListMessage* Arena::CreateMaybeMessage<::PlayerListMessage>(Arena*); +template<> ::PlayerResult* Arena::CreateMaybeMessage<::PlayerResult>(Arena*); +template<> ::PlayersActionDoneMessage* Arena::CreateMaybeMessage<::PlayersActionDoneMessage>(Arena*); +template<> ::PlayersTurnMessage* Arena::CreateMaybeMessage<::PlayersTurnMessage>(Arena*); +template<> ::PokerTHMessage* Arena::CreateMaybeMessage<::PokerTHMessage>(Arena*); +template<> ::RejectGameInvitationMessage* Arena::CreateMaybeMessage<::RejectGameInvitationMessage>(Arena*); +template<> ::RejectInvNotifyMessage* Arena::CreateMaybeMessage<::RejectInvNotifyMessage>(Arena*); +template<> ::RejoinExistingGameMessage* Arena::CreateMaybeMessage<::RejoinExistingGameMessage>(Arena*); +template<> ::RemovedFromGameMessage* Arena::CreateMaybeMessage<::RemovedFromGameMessage>(Arena*); +template<> ::ReportAvatarAckMessage* Arena::CreateMaybeMessage<::ReportAvatarAckMessage>(Arena*); +template<> ::ReportAvatarMessage* Arena::CreateMaybeMessage<::ReportAvatarMessage>(Arena*); +template<> ::ReportGameAckMessage* Arena::CreateMaybeMessage<::ReportGameAckMessage>(Arena*); +template<> ::ReportGameMessage* Arena::CreateMaybeMessage<::ReportGameMessage>(Arena*); +template<> ::ResetTimeoutMessage* Arena::CreateMaybeMessage<::ResetTimeoutMessage>(Arena*); +template<> ::ShowMyCardsRequestMessage* Arena::CreateMaybeMessage<::ShowMyCardsRequestMessage>(Arena*); +template<> ::StartEventAckMessage* Arena::CreateMaybeMessage<::StartEventAckMessage>(Arena*); +template<> ::StartEventMessage* Arena::CreateMaybeMessage<::StartEventMessage>(Arena*); +template<> ::StartKickPetitionMessage* Arena::CreateMaybeMessage<::StartKickPetitionMessage>(Arena*); +template<> ::StatisticsMessage* Arena::CreateMaybeMessage<::StatisticsMessage>(Arena*); +template<> ::StatisticsMessage_StatisticsData* Arena::CreateMaybeMessage<::StatisticsMessage_StatisticsData>(Arena*); +template<> ::SubscriptionRequestMessage* Arena::CreateMaybeMessage<::SubscriptionRequestMessage>(Arena*); +template<> ::TimeoutWarningMessage* Arena::CreateMaybeMessage<::TimeoutWarningMessage>(Arena*); +template<> ::UnknownAvatarMessage* Arena::CreateMaybeMessage<::UnknownAvatarMessage>(Arena*); +template<> ::VoteKickReplyMessage* Arena::CreateMaybeMessage<::VoteKickReplyMessage>(Arena*); +template<> ::VoteKickRequestMessage* Arena::CreateMaybeMessage<::VoteKickRequestMessage>(Arena*); +template<> ::YourActionRejectedMessage* Arena::CreateMaybeMessage<::YourActionRejectedMessage>(Arena*); +PROTOBUF_NAMESPACE_CLOSE -enum NetGameInfo_NetGameType { +enum NetGameInfo_NetGameType : int { NetGameInfo_NetGameType_normalGame = 1, NetGameInfo_NetGameType_registeredOnlyGame = 2, NetGameInfo_NetGameType_inviteOnlyGame = 3, NetGameInfo_NetGameType_rankingGame = 4 }; bool NetGameInfo_NetGameType_IsValid(int value); -const NetGameInfo_NetGameType NetGameInfo_NetGameType_NetGameType_MIN = NetGameInfo_NetGameType_normalGame; -const NetGameInfo_NetGameType NetGameInfo_NetGameType_NetGameType_MAX = NetGameInfo_NetGameType_rankingGame; -const int NetGameInfo_NetGameType_NetGameType_ARRAYSIZE = NetGameInfo_NetGameType_NetGameType_MAX + 1; +constexpr NetGameInfo_NetGameType NetGameInfo_NetGameType_NetGameType_MIN = NetGameInfo_NetGameType_normalGame; +constexpr NetGameInfo_NetGameType NetGameInfo_NetGameType_NetGameType_MAX = NetGameInfo_NetGameType_rankingGame; +constexpr int NetGameInfo_NetGameType_NetGameType_ARRAYSIZE = NetGameInfo_NetGameType_NetGameType_MAX + 1; -enum NetGameInfo_RaiseIntervalMode { +const std::string& NetGameInfo_NetGameType_Name(NetGameInfo_NetGameType value); +template +inline const std::string& NetGameInfo_NetGameType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function NetGameInfo_NetGameType_Name."); + return NetGameInfo_NetGameType_Name(static_cast(enum_t_value)); +} +bool NetGameInfo_NetGameType_Parse( + const std::string& name, NetGameInfo_NetGameType* value); +enum NetGameInfo_RaiseIntervalMode : int { NetGameInfo_RaiseIntervalMode_raiseOnHandNum = 1, NetGameInfo_RaiseIntervalMode_raiseOnMinutes = 2 }; bool NetGameInfo_RaiseIntervalMode_IsValid(int value); -const NetGameInfo_RaiseIntervalMode NetGameInfo_RaiseIntervalMode_RaiseIntervalMode_MIN = NetGameInfo_RaiseIntervalMode_raiseOnHandNum; -const NetGameInfo_RaiseIntervalMode NetGameInfo_RaiseIntervalMode_RaiseIntervalMode_MAX = NetGameInfo_RaiseIntervalMode_raiseOnMinutes; -const int NetGameInfo_RaiseIntervalMode_RaiseIntervalMode_ARRAYSIZE = NetGameInfo_RaiseIntervalMode_RaiseIntervalMode_MAX + 1; +constexpr NetGameInfo_RaiseIntervalMode NetGameInfo_RaiseIntervalMode_RaiseIntervalMode_MIN = NetGameInfo_RaiseIntervalMode_raiseOnHandNum; +constexpr NetGameInfo_RaiseIntervalMode NetGameInfo_RaiseIntervalMode_RaiseIntervalMode_MAX = NetGameInfo_RaiseIntervalMode_raiseOnMinutes; +constexpr int NetGameInfo_RaiseIntervalMode_RaiseIntervalMode_ARRAYSIZE = NetGameInfo_RaiseIntervalMode_RaiseIntervalMode_MAX + 1; -enum NetGameInfo_EndRaiseMode { +const std::string& NetGameInfo_RaiseIntervalMode_Name(NetGameInfo_RaiseIntervalMode value); +template +inline const std::string& NetGameInfo_RaiseIntervalMode_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function NetGameInfo_RaiseIntervalMode_Name."); + return NetGameInfo_RaiseIntervalMode_Name(static_cast(enum_t_value)); +} +bool NetGameInfo_RaiseIntervalMode_Parse( + const std::string& name, NetGameInfo_RaiseIntervalMode* value); +enum NetGameInfo_EndRaiseMode : int { NetGameInfo_EndRaiseMode_doubleBlinds = 1, NetGameInfo_EndRaiseMode_raiseByEndValue = 2, NetGameInfo_EndRaiseMode_keepLastBlind = 3 }; bool NetGameInfo_EndRaiseMode_IsValid(int value); -const NetGameInfo_EndRaiseMode NetGameInfo_EndRaiseMode_EndRaiseMode_MIN = NetGameInfo_EndRaiseMode_doubleBlinds; -const NetGameInfo_EndRaiseMode NetGameInfo_EndRaiseMode_EndRaiseMode_MAX = NetGameInfo_EndRaiseMode_keepLastBlind; -const int NetGameInfo_EndRaiseMode_EndRaiseMode_ARRAYSIZE = NetGameInfo_EndRaiseMode_EndRaiseMode_MAX + 1; +constexpr NetGameInfo_EndRaiseMode NetGameInfo_EndRaiseMode_EndRaiseMode_MIN = NetGameInfo_EndRaiseMode_doubleBlinds; +constexpr NetGameInfo_EndRaiseMode NetGameInfo_EndRaiseMode_EndRaiseMode_MAX = NetGameInfo_EndRaiseMode_keepLastBlind; +constexpr int NetGameInfo_EndRaiseMode_EndRaiseMode_ARRAYSIZE = NetGameInfo_EndRaiseMode_EndRaiseMode_MAX + 1; -enum AnnounceMessage_ServerType { +const std::string& NetGameInfo_EndRaiseMode_Name(NetGameInfo_EndRaiseMode value); +template +inline const std::string& NetGameInfo_EndRaiseMode_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function NetGameInfo_EndRaiseMode_Name."); + return NetGameInfo_EndRaiseMode_Name(static_cast(enum_t_value)); +} +bool NetGameInfo_EndRaiseMode_Parse( + const std::string& name, NetGameInfo_EndRaiseMode* value); +enum AnnounceMessage_ServerType : int { AnnounceMessage_ServerType_serverTypeLAN = 0, AnnounceMessage_ServerType_serverTypeInternetNoAuth = 1, AnnounceMessage_ServerType_serverTypeInternetAuth = 2 }; bool AnnounceMessage_ServerType_IsValid(int value); -const AnnounceMessage_ServerType AnnounceMessage_ServerType_ServerType_MIN = AnnounceMessage_ServerType_serverTypeLAN; -const AnnounceMessage_ServerType AnnounceMessage_ServerType_ServerType_MAX = AnnounceMessage_ServerType_serverTypeInternetAuth; -const int AnnounceMessage_ServerType_ServerType_ARRAYSIZE = AnnounceMessage_ServerType_ServerType_MAX + 1; +constexpr AnnounceMessage_ServerType AnnounceMessage_ServerType_ServerType_MIN = AnnounceMessage_ServerType_serverTypeLAN; +constexpr AnnounceMessage_ServerType AnnounceMessage_ServerType_ServerType_MAX = AnnounceMessage_ServerType_serverTypeInternetAuth; +constexpr int AnnounceMessage_ServerType_ServerType_ARRAYSIZE = AnnounceMessage_ServerType_ServerType_MAX + 1; -enum InitMessage_LoginType { +const std::string& AnnounceMessage_ServerType_Name(AnnounceMessage_ServerType value); +template +inline const std::string& AnnounceMessage_ServerType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function AnnounceMessage_ServerType_Name."); + return AnnounceMessage_ServerType_Name(static_cast(enum_t_value)); +} +bool AnnounceMessage_ServerType_Parse( + const std::string& name, AnnounceMessage_ServerType* value); +enum InitMessage_LoginType : int { InitMessage_LoginType_guestLogin = 0, InitMessage_LoginType_authenticatedLogin = 1, InitMessage_LoginType_unauthenticatedLogin = 2 }; bool InitMessage_LoginType_IsValid(int value); -const InitMessage_LoginType InitMessage_LoginType_LoginType_MIN = InitMessage_LoginType_guestLogin; -const InitMessage_LoginType InitMessage_LoginType_LoginType_MAX = InitMessage_LoginType_unauthenticatedLogin; -const int InitMessage_LoginType_LoginType_ARRAYSIZE = InitMessage_LoginType_LoginType_MAX + 1; +constexpr InitMessage_LoginType InitMessage_LoginType_LoginType_MIN = InitMessage_LoginType_guestLogin; +constexpr InitMessage_LoginType InitMessage_LoginType_LoginType_MAX = InitMessage_LoginType_unauthenticatedLogin; +constexpr int InitMessage_LoginType_LoginType_ARRAYSIZE = InitMessage_LoginType_LoginType_MAX + 1; -enum PlayerListMessage_PlayerListNotification { +const std::string& InitMessage_LoginType_Name(InitMessage_LoginType value); +template +inline const std::string& InitMessage_LoginType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function InitMessage_LoginType_Name."); + return InitMessage_LoginType_Name(static_cast(enum_t_value)); +} +bool InitMessage_LoginType_Parse( + const std::string& name, InitMessage_LoginType* value); +enum PlayerListMessage_PlayerListNotification : int { PlayerListMessage_PlayerListNotification_playerListNew = 0, PlayerListMessage_PlayerListNotification_playerListLeft = 1 }; bool PlayerListMessage_PlayerListNotification_IsValid(int value); -const PlayerListMessage_PlayerListNotification PlayerListMessage_PlayerListNotification_PlayerListNotification_MIN = PlayerListMessage_PlayerListNotification_playerListNew; -const PlayerListMessage_PlayerListNotification PlayerListMessage_PlayerListNotification_PlayerListNotification_MAX = PlayerListMessage_PlayerListNotification_playerListLeft; -const int PlayerListMessage_PlayerListNotification_PlayerListNotification_ARRAYSIZE = PlayerListMessage_PlayerListNotification_PlayerListNotification_MAX + 1; +constexpr PlayerListMessage_PlayerListNotification PlayerListMessage_PlayerListNotification_PlayerListNotification_MIN = PlayerListMessage_PlayerListNotification_playerListNew; +constexpr PlayerListMessage_PlayerListNotification PlayerListMessage_PlayerListNotification_PlayerListNotification_MAX = PlayerListMessage_PlayerListNotification_playerListLeft; +constexpr int PlayerListMessage_PlayerListNotification_PlayerListNotification_ARRAYSIZE = PlayerListMessage_PlayerListNotification_PlayerListNotification_MAX + 1; -enum SubscriptionRequestMessage_SubscriptionAction { +const std::string& PlayerListMessage_PlayerListNotification_Name(PlayerListMessage_PlayerListNotification value); +template +inline const std::string& PlayerListMessage_PlayerListNotification_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PlayerListMessage_PlayerListNotification_Name."); + return PlayerListMessage_PlayerListNotification_Name(static_cast(enum_t_value)); +} +bool PlayerListMessage_PlayerListNotification_Parse( + const std::string& name, PlayerListMessage_PlayerListNotification* value); +enum SubscriptionRequestMessage_SubscriptionAction : int { SubscriptionRequestMessage_SubscriptionAction_unsubscribeGameList = 1, SubscriptionRequestMessage_SubscriptionAction_resubscribeGameList = 2 }; bool SubscriptionRequestMessage_SubscriptionAction_IsValid(int value); -const SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage_SubscriptionAction_SubscriptionAction_MIN = SubscriptionRequestMessage_SubscriptionAction_unsubscribeGameList; -const SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage_SubscriptionAction_SubscriptionAction_MAX = SubscriptionRequestMessage_SubscriptionAction_resubscribeGameList; -const int SubscriptionRequestMessage_SubscriptionAction_SubscriptionAction_ARRAYSIZE = SubscriptionRequestMessage_SubscriptionAction_SubscriptionAction_MAX + 1; +constexpr SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage_SubscriptionAction_SubscriptionAction_MIN = SubscriptionRequestMessage_SubscriptionAction_unsubscribeGameList; +constexpr SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage_SubscriptionAction_SubscriptionAction_MAX = SubscriptionRequestMessage_SubscriptionAction_resubscribeGameList; +constexpr int SubscriptionRequestMessage_SubscriptionAction_SubscriptionAction_ARRAYSIZE = SubscriptionRequestMessage_SubscriptionAction_SubscriptionAction_MAX + 1; -enum JoinGameFailedMessage_JoinGameFailureReason { +const std::string& SubscriptionRequestMessage_SubscriptionAction_Name(SubscriptionRequestMessage_SubscriptionAction value); +template +inline const std::string& SubscriptionRequestMessage_SubscriptionAction_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function SubscriptionRequestMessage_SubscriptionAction_Name."); + return SubscriptionRequestMessage_SubscriptionAction_Name(static_cast(enum_t_value)); +} +bool SubscriptionRequestMessage_SubscriptionAction_Parse( + const std::string& name, SubscriptionRequestMessage_SubscriptionAction* value); +enum JoinGameFailedMessage_JoinGameFailureReason : int { JoinGameFailedMessage_JoinGameFailureReason_invalidGame = 1, JoinGameFailedMessage_JoinGameFailureReason_gameIsFull = 2, JoinGameFailedMessage_JoinGameFailureReason_gameIsRunning = 3, @@ -207,21 +572,41 @@ enum JoinGameFailedMessage_JoinGameFailureReason { JoinGameFailedMessage_JoinGameFailureReason_noSpectatorsAllowed = 12 }; bool JoinGameFailedMessage_JoinGameFailureReason_IsValid(int value); -const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage_JoinGameFailureReason_JoinGameFailureReason_MIN = JoinGameFailedMessage_JoinGameFailureReason_invalidGame; -const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage_JoinGameFailureReason_JoinGameFailureReason_MAX = JoinGameFailedMessage_JoinGameFailureReason_noSpectatorsAllowed; -const int JoinGameFailedMessage_JoinGameFailureReason_JoinGameFailureReason_ARRAYSIZE = JoinGameFailedMessage_JoinGameFailureReason_JoinGameFailureReason_MAX + 1; +constexpr JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage_JoinGameFailureReason_JoinGameFailureReason_MIN = JoinGameFailedMessage_JoinGameFailureReason_invalidGame; +constexpr JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage_JoinGameFailureReason_JoinGameFailureReason_MAX = JoinGameFailedMessage_JoinGameFailureReason_noSpectatorsAllowed; +constexpr int JoinGameFailedMessage_JoinGameFailureReason_JoinGameFailureReason_ARRAYSIZE = JoinGameFailedMessage_JoinGameFailureReason_JoinGameFailureReason_MAX + 1; -enum GamePlayerLeftMessage_GamePlayerLeftReason { +const std::string& JoinGameFailedMessage_JoinGameFailureReason_Name(JoinGameFailedMessage_JoinGameFailureReason value); +template +inline const std::string& JoinGameFailedMessage_JoinGameFailureReason_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function JoinGameFailedMessage_JoinGameFailureReason_Name."); + return JoinGameFailedMessage_JoinGameFailureReason_Name(static_cast(enum_t_value)); +} +bool JoinGameFailedMessage_JoinGameFailureReason_Parse( + const std::string& name, JoinGameFailedMessage_JoinGameFailureReason* value); +enum GamePlayerLeftMessage_GamePlayerLeftReason : int { GamePlayerLeftMessage_GamePlayerLeftReason_leftOnRequest = 0, GamePlayerLeftMessage_GamePlayerLeftReason_leftKicked = 1, GamePlayerLeftMessage_GamePlayerLeftReason_leftError = 2 }; bool GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(int value); -const GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage_GamePlayerLeftReason_GamePlayerLeftReason_MIN = GamePlayerLeftMessage_GamePlayerLeftReason_leftOnRequest; -const GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage_GamePlayerLeftReason_GamePlayerLeftReason_MAX = GamePlayerLeftMessage_GamePlayerLeftReason_leftError; -const int GamePlayerLeftMessage_GamePlayerLeftReason_GamePlayerLeftReason_ARRAYSIZE = GamePlayerLeftMessage_GamePlayerLeftReason_GamePlayerLeftReason_MAX + 1; +constexpr GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage_GamePlayerLeftReason_GamePlayerLeftReason_MIN = GamePlayerLeftMessage_GamePlayerLeftReason_leftOnRequest; +constexpr GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage_GamePlayerLeftReason_GamePlayerLeftReason_MAX = GamePlayerLeftMessage_GamePlayerLeftReason_leftError; +constexpr int GamePlayerLeftMessage_GamePlayerLeftReason_GamePlayerLeftReason_ARRAYSIZE = GamePlayerLeftMessage_GamePlayerLeftReason_GamePlayerLeftReason_MAX + 1; -enum RemovedFromGameMessage_RemovedFromGameReason { +const std::string& GamePlayerLeftMessage_GamePlayerLeftReason_Name(GamePlayerLeftMessage_GamePlayerLeftReason value); +template +inline const std::string& GamePlayerLeftMessage_GamePlayerLeftReason_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function GamePlayerLeftMessage_GamePlayerLeftReason_Name."); + return GamePlayerLeftMessage_GamePlayerLeftReason_Name(static_cast(enum_t_value)); +} +bool GamePlayerLeftMessage_GamePlayerLeftReason_Parse( + const std::string& name, GamePlayerLeftMessage_GamePlayerLeftReason* value); +enum RemovedFromGameMessage_RemovedFromGameReason : int { RemovedFromGameMessage_RemovedFromGameReason_removedOnRequest = 0, RemovedFromGameMessage_RemovedFromGameReason_kickedFromGame = 1, RemovedFromGameMessage_RemovedFromGameReason_gameIsFull = 2, @@ -231,40 +616,80 @@ enum RemovedFromGameMessage_RemovedFromGameReason { RemovedFromGameMessage_RemovedFromGameReason_gameClosed = 6 }; bool RemovedFromGameMessage_RemovedFromGameReason_IsValid(int value); -const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage_RemovedFromGameReason_RemovedFromGameReason_MIN = RemovedFromGameMessage_RemovedFromGameReason_removedOnRequest; -const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage_RemovedFromGameReason_RemovedFromGameReason_MAX = RemovedFromGameMessage_RemovedFromGameReason_gameClosed; -const int RemovedFromGameMessage_RemovedFromGameReason_RemovedFromGameReason_ARRAYSIZE = RemovedFromGameMessage_RemovedFromGameReason_RemovedFromGameReason_MAX + 1; +constexpr RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage_RemovedFromGameReason_RemovedFromGameReason_MIN = RemovedFromGameMessage_RemovedFromGameReason_removedOnRequest; +constexpr RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage_RemovedFromGameReason_RemovedFromGameReason_MAX = RemovedFromGameMessage_RemovedFromGameReason_gameClosed; +constexpr int RemovedFromGameMessage_RemovedFromGameReason_RemovedFromGameReason_ARRAYSIZE = RemovedFromGameMessage_RemovedFromGameReason_RemovedFromGameReason_MAX + 1; -enum RejectGameInvitationMessage_RejectGameInvReason { +const std::string& RemovedFromGameMessage_RemovedFromGameReason_Name(RemovedFromGameMessage_RemovedFromGameReason value); +template +inline const std::string& RemovedFromGameMessage_RemovedFromGameReason_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function RemovedFromGameMessage_RemovedFromGameReason_Name."); + return RemovedFromGameMessage_RemovedFromGameReason_Name(static_cast(enum_t_value)); +} +bool RemovedFromGameMessage_RemovedFromGameReason_Parse( + const std::string& name, RemovedFromGameMessage_RemovedFromGameReason* value); +enum RejectGameInvitationMessage_RejectGameInvReason : int { RejectGameInvitationMessage_RejectGameInvReason_rejectReasonNo = 0, RejectGameInvitationMessage_RejectGameInvReason_rejectReasonBusy = 1 }; bool RejectGameInvitationMessage_RejectGameInvReason_IsValid(int value); -const RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage_RejectGameInvReason_RejectGameInvReason_MIN = RejectGameInvitationMessage_RejectGameInvReason_rejectReasonNo; -const RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage_RejectGameInvReason_RejectGameInvReason_MAX = RejectGameInvitationMessage_RejectGameInvReason_rejectReasonBusy; -const int RejectGameInvitationMessage_RejectGameInvReason_RejectGameInvReason_ARRAYSIZE = RejectGameInvitationMessage_RejectGameInvReason_RejectGameInvReason_MAX + 1; +constexpr RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage_RejectGameInvReason_RejectGameInvReason_MIN = RejectGameInvitationMessage_RejectGameInvReason_rejectReasonNo; +constexpr RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage_RejectGameInvReason_RejectGameInvReason_MAX = RejectGameInvitationMessage_RejectGameInvReason_rejectReasonBusy; +constexpr int RejectGameInvitationMessage_RejectGameInvReason_RejectGameInvReason_ARRAYSIZE = RejectGameInvitationMessage_RejectGameInvReason_RejectGameInvReason_MAX + 1; -enum StartEventMessage_StartEventType { +const std::string& RejectGameInvitationMessage_RejectGameInvReason_Name(RejectGameInvitationMessage_RejectGameInvReason value); +template +inline const std::string& RejectGameInvitationMessage_RejectGameInvReason_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function RejectGameInvitationMessage_RejectGameInvReason_Name."); + return RejectGameInvitationMessage_RejectGameInvReason_Name(static_cast(enum_t_value)); +} +bool RejectGameInvitationMessage_RejectGameInvReason_Parse( + const std::string& name, RejectGameInvitationMessage_RejectGameInvReason* value); +enum StartEventMessage_StartEventType : int { StartEventMessage_StartEventType_startEvent = 0, StartEventMessage_StartEventType_rejoinEvent = 1, StartEventMessage_StartEventType_reentryEvent = 2 }; bool StartEventMessage_StartEventType_IsValid(int value); -const StartEventMessage_StartEventType StartEventMessage_StartEventType_StartEventType_MIN = StartEventMessage_StartEventType_startEvent; -const StartEventMessage_StartEventType StartEventMessage_StartEventType_StartEventType_MAX = StartEventMessage_StartEventType_reentryEvent; -const int StartEventMessage_StartEventType_StartEventType_ARRAYSIZE = StartEventMessage_StartEventType_StartEventType_MAX + 1; +constexpr StartEventMessage_StartEventType StartEventMessage_StartEventType_StartEventType_MIN = StartEventMessage_StartEventType_startEvent; +constexpr StartEventMessage_StartEventType StartEventMessage_StartEventType_StartEventType_MAX = StartEventMessage_StartEventType_rejoinEvent; +constexpr int StartEventMessage_StartEventType_StartEventType_ARRAYSIZE = StartEventMessage_StartEventType_StartEventType_MAX + 1; -enum YourActionRejectedMessage_RejectionReason { +const std::string& StartEventMessage_StartEventType_Name(StartEventMessage_StartEventType value); +template +inline const std::string& StartEventMessage_StartEventType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function StartEventMessage_StartEventType_Name."); + return StartEventMessage_StartEventType_Name(static_cast(enum_t_value)); +} +bool StartEventMessage_StartEventType_Parse( + const std::string& name, StartEventMessage_StartEventType* value); +enum YourActionRejectedMessage_RejectionReason : int { YourActionRejectedMessage_RejectionReason_rejectedInvalidGameState = 1, YourActionRejectedMessage_RejectionReason_rejectedNotYourTurn = 2, YourActionRejectedMessage_RejectionReason_rejectedActionNotAllowed = 3 }; bool YourActionRejectedMessage_RejectionReason_IsValid(int value); -const YourActionRejectedMessage_RejectionReason YourActionRejectedMessage_RejectionReason_RejectionReason_MIN = YourActionRejectedMessage_RejectionReason_rejectedInvalidGameState; -const YourActionRejectedMessage_RejectionReason YourActionRejectedMessage_RejectionReason_RejectionReason_MAX = YourActionRejectedMessage_RejectionReason_rejectedActionNotAllowed; -const int YourActionRejectedMessage_RejectionReason_RejectionReason_ARRAYSIZE = YourActionRejectedMessage_RejectionReason_RejectionReason_MAX + 1; +constexpr YourActionRejectedMessage_RejectionReason YourActionRejectedMessage_RejectionReason_RejectionReason_MIN = YourActionRejectedMessage_RejectionReason_rejectedInvalidGameState; +constexpr YourActionRejectedMessage_RejectionReason YourActionRejectedMessage_RejectionReason_RejectionReason_MAX = YourActionRejectedMessage_RejectionReason_rejectedActionNotAllowed; +constexpr int YourActionRejectedMessage_RejectionReason_RejectionReason_ARRAYSIZE = YourActionRejectedMessage_RejectionReason_RejectionReason_MAX + 1; -enum AskKickDeniedMessage_KickDeniedReason { +const std::string& YourActionRejectedMessage_RejectionReason_Name(YourActionRejectedMessage_RejectionReason value); +template +inline const std::string& YourActionRejectedMessage_RejectionReason_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function YourActionRejectedMessage_RejectionReason_Name."); + return YourActionRejectedMessage_RejectionReason_Name(static_cast(enum_t_value)); +} +bool YourActionRejectedMessage_RejectionReason_Parse( + const std::string& name, YourActionRejectedMessage_RejectionReason* value); +enum AskKickDeniedMessage_KickDeniedReason : int { AskKickDeniedMessage_KickDeniedReason_kickDeniedInvalidGameState = 0, AskKickDeniedMessage_KickDeniedReason_kickDeniedNotPossible = 1, AskKickDeniedMessage_KickDeniedReason_kickDeniedTryAgainLater = 2, @@ -272,40 +697,80 @@ enum AskKickDeniedMessage_KickDeniedReason { AskKickDeniedMessage_KickDeniedReason_kickDeniedInvalidPlayerId = 4 }; bool AskKickDeniedMessage_KickDeniedReason_IsValid(int value); -const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage_KickDeniedReason_KickDeniedReason_MIN = AskKickDeniedMessage_KickDeniedReason_kickDeniedInvalidGameState; -const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage_KickDeniedReason_KickDeniedReason_MAX = AskKickDeniedMessage_KickDeniedReason_kickDeniedInvalidPlayerId; -const int AskKickDeniedMessage_KickDeniedReason_KickDeniedReason_ARRAYSIZE = AskKickDeniedMessage_KickDeniedReason_KickDeniedReason_MAX + 1; +constexpr AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage_KickDeniedReason_KickDeniedReason_MIN = AskKickDeniedMessage_KickDeniedReason_kickDeniedInvalidGameState; +constexpr AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage_KickDeniedReason_KickDeniedReason_MAX = AskKickDeniedMessage_KickDeniedReason_kickDeniedInvalidPlayerId; +constexpr int AskKickDeniedMessage_KickDeniedReason_KickDeniedReason_ARRAYSIZE = AskKickDeniedMessage_KickDeniedReason_KickDeniedReason_MAX + 1; -enum VoteKickReplyMessage_VoteKickReplyType { +const std::string& AskKickDeniedMessage_KickDeniedReason_Name(AskKickDeniedMessage_KickDeniedReason value); +template +inline const std::string& AskKickDeniedMessage_KickDeniedReason_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function AskKickDeniedMessage_KickDeniedReason_Name."); + return AskKickDeniedMessage_KickDeniedReason_Name(static_cast(enum_t_value)); +} +bool AskKickDeniedMessage_KickDeniedReason_Parse( + const std::string& name, AskKickDeniedMessage_KickDeniedReason* value); +enum VoteKickReplyMessage_VoteKickReplyType : int { VoteKickReplyMessage_VoteKickReplyType_voteKickAck = 0, VoteKickReplyMessage_VoteKickReplyType_voteKickDeniedInvalid = 1, VoteKickReplyMessage_VoteKickReplyType_voteKickDeniedAlreadyVoted = 2 }; bool VoteKickReplyMessage_VoteKickReplyType_IsValid(int value); -const VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage_VoteKickReplyType_VoteKickReplyType_MIN = VoteKickReplyMessage_VoteKickReplyType_voteKickAck; -const VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage_VoteKickReplyType_VoteKickReplyType_MAX = VoteKickReplyMessage_VoteKickReplyType_voteKickDeniedAlreadyVoted; -const int VoteKickReplyMessage_VoteKickReplyType_VoteKickReplyType_ARRAYSIZE = VoteKickReplyMessage_VoteKickReplyType_VoteKickReplyType_MAX + 1; +constexpr VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage_VoteKickReplyType_VoteKickReplyType_MIN = VoteKickReplyMessage_VoteKickReplyType_voteKickAck; +constexpr VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage_VoteKickReplyType_VoteKickReplyType_MAX = VoteKickReplyMessage_VoteKickReplyType_voteKickDeniedAlreadyVoted; +constexpr int VoteKickReplyMessage_VoteKickReplyType_VoteKickReplyType_ARRAYSIZE = VoteKickReplyMessage_VoteKickReplyType_VoteKickReplyType_MAX + 1; -enum EndKickPetitionMessage_PetitionEndReason { +const std::string& VoteKickReplyMessage_VoteKickReplyType_Name(VoteKickReplyMessage_VoteKickReplyType value); +template +inline const std::string& VoteKickReplyMessage_VoteKickReplyType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function VoteKickReplyMessage_VoteKickReplyType_Name."); + return VoteKickReplyMessage_VoteKickReplyType_Name(static_cast(enum_t_value)); +} +bool VoteKickReplyMessage_VoteKickReplyType_Parse( + const std::string& name, VoteKickReplyMessage_VoteKickReplyType* value); +enum EndKickPetitionMessage_PetitionEndReason : int { EndKickPetitionMessage_PetitionEndReason_petitionEndEnoughVotes = 0, EndKickPetitionMessage_PetitionEndReason_petitionEndTooFewPlayers = 1, EndKickPetitionMessage_PetitionEndReason_petitionEndPlayerLeft = 2, EndKickPetitionMessage_PetitionEndReason_petitionEndTimeout = 3 }; bool EndKickPetitionMessage_PetitionEndReason_IsValid(int value); -const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage_PetitionEndReason_PetitionEndReason_MIN = EndKickPetitionMessage_PetitionEndReason_petitionEndEnoughVotes; -const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage_PetitionEndReason_PetitionEndReason_MAX = EndKickPetitionMessage_PetitionEndReason_petitionEndTimeout; -const int EndKickPetitionMessage_PetitionEndReason_PetitionEndReason_ARRAYSIZE = EndKickPetitionMessage_PetitionEndReason_PetitionEndReason_MAX + 1; +constexpr EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage_PetitionEndReason_PetitionEndReason_MIN = EndKickPetitionMessage_PetitionEndReason_petitionEndEnoughVotes; +constexpr EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage_PetitionEndReason_PetitionEndReason_MAX = EndKickPetitionMessage_PetitionEndReason_petitionEndTimeout; +constexpr int EndKickPetitionMessage_PetitionEndReason_PetitionEndReason_ARRAYSIZE = EndKickPetitionMessage_PetitionEndReason_PetitionEndReason_MAX + 1; -enum StatisticsMessage_StatisticsData_StatisticsType { +const std::string& EndKickPetitionMessage_PetitionEndReason_Name(EndKickPetitionMessage_PetitionEndReason value); +template +inline const std::string& EndKickPetitionMessage_PetitionEndReason_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function EndKickPetitionMessage_PetitionEndReason_Name."); + return EndKickPetitionMessage_PetitionEndReason_Name(static_cast(enum_t_value)); +} +bool EndKickPetitionMessage_PetitionEndReason_Parse( + const std::string& name, EndKickPetitionMessage_PetitionEndReason* value); +enum StatisticsMessage_StatisticsData_StatisticsType : int { StatisticsMessage_StatisticsData_StatisticsType_statNumberOfPlayers = 1 }; bool StatisticsMessage_StatisticsData_StatisticsType_IsValid(int value); -const StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData_StatisticsType_StatisticsType_MIN = StatisticsMessage_StatisticsData_StatisticsType_statNumberOfPlayers; -const StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData_StatisticsType_StatisticsType_MAX = StatisticsMessage_StatisticsData_StatisticsType_statNumberOfPlayers; -const int StatisticsMessage_StatisticsData_StatisticsType_StatisticsType_ARRAYSIZE = StatisticsMessage_StatisticsData_StatisticsType_StatisticsType_MAX + 1; +constexpr StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData_StatisticsType_StatisticsType_MIN = StatisticsMessage_StatisticsData_StatisticsType_statNumberOfPlayers; +constexpr StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData_StatisticsType_StatisticsType_MAX = StatisticsMessage_StatisticsData_StatisticsType_statNumberOfPlayers; +constexpr int StatisticsMessage_StatisticsData_StatisticsType_StatisticsType_ARRAYSIZE = StatisticsMessage_StatisticsData_StatisticsType_StatisticsType_MAX + 1; -enum ChatMessage_ChatType { +const std::string& StatisticsMessage_StatisticsData_StatisticsType_Name(StatisticsMessage_StatisticsData_StatisticsType value); +template +inline const std::string& StatisticsMessage_StatisticsData_StatisticsType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function StatisticsMessage_StatisticsData_StatisticsType_Name."); + return StatisticsMessage_StatisticsData_StatisticsType_Name(static_cast(enum_t_value)); +} +bool StatisticsMessage_StatisticsData_StatisticsType_Parse( + const std::string& name, StatisticsMessage_StatisticsData_StatisticsType* value); +enum ChatMessage_ChatType : int { ChatMessage_ChatType_chatTypeLobby = 0, ChatMessage_ChatType_chatTypeGame = 1, ChatMessage_ChatType_chatTypeBot = 2, @@ -313,41 +778,81 @@ enum ChatMessage_ChatType { ChatMessage_ChatType_chatTypePrivate = 4 }; bool ChatMessage_ChatType_IsValid(int value); -const ChatMessage_ChatType ChatMessage_ChatType_ChatType_MIN = ChatMessage_ChatType_chatTypeLobby; -const ChatMessage_ChatType ChatMessage_ChatType_ChatType_MAX = ChatMessage_ChatType_chatTypePrivate; -const int ChatMessage_ChatType_ChatType_ARRAYSIZE = ChatMessage_ChatType_ChatType_MAX + 1; +constexpr ChatMessage_ChatType ChatMessage_ChatType_ChatType_MIN = ChatMessage_ChatType_chatTypeLobby; +constexpr ChatMessage_ChatType ChatMessage_ChatType_ChatType_MAX = ChatMessage_ChatType_chatTypePrivate; +constexpr int ChatMessage_ChatType_ChatType_ARRAYSIZE = ChatMessage_ChatType_ChatType_MAX + 1; -enum TimeoutWarningMessage_TimeoutReason { +const std::string& ChatMessage_ChatType_Name(ChatMessage_ChatType value); +template +inline const std::string& ChatMessage_ChatType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ChatMessage_ChatType_Name."); + return ChatMessage_ChatType_Name(static_cast(enum_t_value)); +} +bool ChatMessage_ChatType_Parse( + const std::string& name, ChatMessage_ChatType* value); +enum TimeoutWarningMessage_TimeoutReason : int { TimeoutWarningMessage_TimeoutReason_timeoutNoDataReceived = 0, TimeoutWarningMessage_TimeoutReason_timeoutInactiveGame = 1, TimeoutWarningMessage_TimeoutReason_timeoutKickAfterAutofold = 2 }; bool TimeoutWarningMessage_TimeoutReason_IsValid(int value); -const TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage_TimeoutReason_TimeoutReason_MIN = TimeoutWarningMessage_TimeoutReason_timeoutNoDataReceived; -const TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage_TimeoutReason_TimeoutReason_MAX = TimeoutWarningMessage_TimeoutReason_timeoutKickAfterAutofold; -const int TimeoutWarningMessage_TimeoutReason_TimeoutReason_ARRAYSIZE = TimeoutWarningMessage_TimeoutReason_TimeoutReason_MAX + 1; +constexpr TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage_TimeoutReason_TimeoutReason_MIN = TimeoutWarningMessage_TimeoutReason_timeoutNoDataReceived; +constexpr TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage_TimeoutReason_TimeoutReason_MAX = TimeoutWarningMessage_TimeoutReason_timeoutKickAfterAutofold; +constexpr int TimeoutWarningMessage_TimeoutReason_TimeoutReason_ARRAYSIZE = TimeoutWarningMessage_TimeoutReason_TimeoutReason_MAX + 1; -enum ReportAvatarAckMessage_ReportAvatarResult { +const std::string& TimeoutWarningMessage_TimeoutReason_Name(TimeoutWarningMessage_TimeoutReason value); +template +inline const std::string& TimeoutWarningMessage_TimeoutReason_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function TimeoutWarningMessage_TimeoutReason_Name."); + return TimeoutWarningMessage_TimeoutReason_Name(static_cast(enum_t_value)); +} +bool TimeoutWarningMessage_TimeoutReason_Parse( + const std::string& name, TimeoutWarningMessage_TimeoutReason* value); +enum ReportAvatarAckMessage_ReportAvatarResult : int { ReportAvatarAckMessage_ReportAvatarResult_avatarReportAccepted = 0, ReportAvatarAckMessage_ReportAvatarResult_avatarReportDuplicate = 1, ReportAvatarAckMessage_ReportAvatarResult_avatarReportInvalid = 2 }; bool ReportAvatarAckMessage_ReportAvatarResult_IsValid(int value); -const ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage_ReportAvatarResult_ReportAvatarResult_MIN = ReportAvatarAckMessage_ReportAvatarResult_avatarReportAccepted; -const ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage_ReportAvatarResult_ReportAvatarResult_MAX = ReportAvatarAckMessage_ReportAvatarResult_avatarReportInvalid; -const int ReportAvatarAckMessage_ReportAvatarResult_ReportAvatarResult_ARRAYSIZE = ReportAvatarAckMessage_ReportAvatarResult_ReportAvatarResult_MAX + 1; +constexpr ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage_ReportAvatarResult_ReportAvatarResult_MIN = ReportAvatarAckMessage_ReportAvatarResult_avatarReportAccepted; +constexpr ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage_ReportAvatarResult_ReportAvatarResult_MAX = ReportAvatarAckMessage_ReportAvatarResult_avatarReportInvalid; +constexpr int ReportAvatarAckMessage_ReportAvatarResult_ReportAvatarResult_ARRAYSIZE = ReportAvatarAckMessage_ReportAvatarResult_ReportAvatarResult_MAX + 1; -enum ReportGameAckMessage_ReportGameResult { +const std::string& ReportAvatarAckMessage_ReportAvatarResult_Name(ReportAvatarAckMessage_ReportAvatarResult value); +template +inline const std::string& ReportAvatarAckMessage_ReportAvatarResult_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ReportAvatarAckMessage_ReportAvatarResult_Name."); + return ReportAvatarAckMessage_ReportAvatarResult_Name(static_cast(enum_t_value)); +} +bool ReportAvatarAckMessage_ReportAvatarResult_Parse( + const std::string& name, ReportAvatarAckMessage_ReportAvatarResult* value); +enum ReportGameAckMessage_ReportGameResult : int { ReportGameAckMessage_ReportGameResult_gameReportAccepted = 0, ReportGameAckMessage_ReportGameResult_gameReportDuplicate = 1, ReportGameAckMessage_ReportGameResult_gameReportInvalid = 2 }; bool ReportGameAckMessage_ReportGameResult_IsValid(int value); -const ReportGameAckMessage_ReportGameResult ReportGameAckMessage_ReportGameResult_ReportGameResult_MIN = ReportGameAckMessage_ReportGameResult_gameReportAccepted; -const ReportGameAckMessage_ReportGameResult ReportGameAckMessage_ReportGameResult_ReportGameResult_MAX = ReportGameAckMessage_ReportGameResult_gameReportInvalid; -const int ReportGameAckMessage_ReportGameResult_ReportGameResult_ARRAYSIZE = ReportGameAckMessage_ReportGameResult_ReportGameResult_MAX + 1; +constexpr ReportGameAckMessage_ReportGameResult ReportGameAckMessage_ReportGameResult_ReportGameResult_MIN = ReportGameAckMessage_ReportGameResult_gameReportAccepted; +constexpr ReportGameAckMessage_ReportGameResult ReportGameAckMessage_ReportGameResult_ReportGameResult_MAX = ReportGameAckMessage_ReportGameResult_gameReportInvalid; +constexpr int ReportGameAckMessage_ReportGameResult_ReportGameResult_ARRAYSIZE = ReportGameAckMessage_ReportGameResult_ReportGameResult_MAX + 1; -enum ErrorMessage_ErrorReason { +const std::string& ReportGameAckMessage_ReportGameResult_Name(ReportGameAckMessage_ReportGameResult value); +template +inline const std::string& ReportGameAckMessage_ReportGameResult_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ReportGameAckMessage_ReportGameResult_Name."); + return ReportGameAckMessage_ReportGameResult_Name(static_cast(enum_t_value)); +} +bool ReportGameAckMessage_ReportGameResult_Parse( + const std::string& name, ReportGameAckMessage_ReportGameResult* value); +enum ErrorMessage_ErrorReason : int { ErrorMessage_ErrorReason_custReserved = 0, ErrorMessage_ErrorReason_initVersionNotSupported = 1, ErrorMessage_ErrorReason_initServerFull = 2, @@ -365,20 +870,40 @@ enum ErrorMessage_ErrorReason { ErrorMessage_ErrorReason_sessionTimeout = 14 }; bool ErrorMessage_ErrorReason_IsValid(int value); -const ErrorMessage_ErrorReason ErrorMessage_ErrorReason_ErrorReason_MIN = ErrorMessage_ErrorReason_custReserved; -const ErrorMessage_ErrorReason ErrorMessage_ErrorReason_ErrorReason_MAX = ErrorMessage_ErrorReason_sessionTimeout; -const int ErrorMessage_ErrorReason_ErrorReason_ARRAYSIZE = ErrorMessage_ErrorReason_ErrorReason_MAX + 1; +constexpr ErrorMessage_ErrorReason ErrorMessage_ErrorReason_ErrorReason_MIN = ErrorMessage_ErrorReason_custReserved; +constexpr ErrorMessage_ErrorReason ErrorMessage_ErrorReason_ErrorReason_MAX = ErrorMessage_ErrorReason_sessionTimeout; +constexpr int ErrorMessage_ErrorReason_ErrorReason_ARRAYSIZE = ErrorMessage_ErrorReason_ErrorReason_MAX + 1; -enum AdminRemoveGameAckMessage_AdminRemoveGameResult { +const std::string& ErrorMessage_ErrorReason_Name(ErrorMessage_ErrorReason value); +template +inline const std::string& ErrorMessage_ErrorReason_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ErrorMessage_ErrorReason_Name."); + return ErrorMessage_ErrorReason_Name(static_cast(enum_t_value)); +} +bool ErrorMessage_ErrorReason_Parse( + const std::string& name, ErrorMessage_ErrorReason* value); +enum AdminRemoveGameAckMessage_AdminRemoveGameResult : int { AdminRemoveGameAckMessage_AdminRemoveGameResult_gameRemoveAccepted = 0, AdminRemoveGameAckMessage_AdminRemoveGameResult_gameRemoveInvalid = 1 }; bool AdminRemoveGameAckMessage_AdminRemoveGameResult_IsValid(int value); -const AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage_AdminRemoveGameResult_AdminRemoveGameResult_MIN = AdminRemoveGameAckMessage_AdminRemoveGameResult_gameRemoveAccepted; -const AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage_AdminRemoveGameResult_AdminRemoveGameResult_MAX = AdminRemoveGameAckMessage_AdminRemoveGameResult_gameRemoveInvalid; -const int AdminRemoveGameAckMessage_AdminRemoveGameResult_AdminRemoveGameResult_ARRAYSIZE = AdminRemoveGameAckMessage_AdminRemoveGameResult_AdminRemoveGameResult_MAX + 1; +constexpr AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage_AdminRemoveGameResult_AdminRemoveGameResult_MIN = AdminRemoveGameAckMessage_AdminRemoveGameResult_gameRemoveAccepted; +constexpr AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage_AdminRemoveGameResult_AdminRemoveGameResult_MAX = AdminRemoveGameAckMessage_AdminRemoveGameResult_gameRemoveInvalid; +constexpr int AdminRemoveGameAckMessage_AdminRemoveGameResult_AdminRemoveGameResult_ARRAYSIZE = AdminRemoveGameAckMessage_AdminRemoveGameResult_AdminRemoveGameResult_MAX + 1; -enum AdminBanPlayerAckMessage_AdminBanPlayerResult { +const std::string& AdminRemoveGameAckMessage_AdminRemoveGameResult_Name(AdminRemoveGameAckMessage_AdminRemoveGameResult value); +template +inline const std::string& AdminRemoveGameAckMessage_AdminRemoveGameResult_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function AdminRemoveGameAckMessage_AdminRemoveGameResult_Name."); + return AdminRemoveGameAckMessage_AdminRemoveGameResult_Name(static_cast(enum_t_value)); +} +bool AdminRemoveGameAckMessage_AdminRemoveGameResult_Parse( + const std::string& name, AdminRemoveGameAckMessage_AdminRemoveGameResult* value); +enum AdminBanPlayerAckMessage_AdminBanPlayerResult : int { AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerAccepted = 0, AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerPending = 1, AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerNoDB = 2, @@ -386,11 +911,21 @@ enum AdminBanPlayerAckMessage_AdminBanPlayerResult { AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerInvalid = 4 }; bool AdminBanPlayerAckMessage_AdminBanPlayerResult_IsValid(int value); -const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage_AdminBanPlayerResult_AdminBanPlayerResult_MIN = AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerAccepted; -const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage_AdminBanPlayerResult_AdminBanPlayerResult_MAX = AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerInvalid; -const int AdminBanPlayerAckMessage_AdminBanPlayerResult_AdminBanPlayerResult_ARRAYSIZE = AdminBanPlayerAckMessage_AdminBanPlayerResult_AdminBanPlayerResult_MAX + 1; +constexpr AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage_AdminBanPlayerResult_AdminBanPlayerResult_MIN = AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerAccepted; +constexpr AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage_AdminBanPlayerResult_AdminBanPlayerResult_MAX = AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerInvalid; +constexpr int AdminBanPlayerAckMessage_AdminBanPlayerResult_AdminBanPlayerResult_ARRAYSIZE = AdminBanPlayerAckMessage_AdminBanPlayerResult_AdminBanPlayerResult_MAX + 1; -enum PokerTHMessage_PokerTHMessageType { +const std::string& AdminBanPlayerAckMessage_AdminBanPlayerResult_Name(AdminBanPlayerAckMessage_AdminBanPlayerResult value); +template +inline const std::string& AdminBanPlayerAckMessage_AdminBanPlayerResult_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function AdminBanPlayerAckMessage_AdminBanPlayerResult_Name."); + return AdminBanPlayerAckMessage_AdminBanPlayerResult_Name(static_cast(enum_t_value)); +} +bool AdminBanPlayerAckMessage_AdminBanPlayerResult_Parse( + const std::string& name, AdminBanPlayerAckMessage_AdminBanPlayerResult* value); +enum PokerTHMessage_PokerTHMessageType : int { PokerTHMessage_PokerTHMessageType_Type_AnnounceMessage = 1, PokerTHMessage_PokerTHMessageType_Type_InitMessage = 2, PokerTHMessage_PokerTHMessageType_Type_AuthServerChallengeMessage = 3, @@ -475,21 +1010,41 @@ enum PokerTHMessage_PokerTHMessageType { PokerTHMessage_PokerTHMessageType_Type_GameStartReentryMessage = 82 }; bool PokerTHMessage_PokerTHMessageType_IsValid(int value); -const PokerTHMessage_PokerTHMessageType PokerTHMessage_PokerTHMessageType_PokerTHMessageType_MIN = PokerTHMessage_PokerTHMessageType_Type_AnnounceMessage; -const PokerTHMessage_PokerTHMessageType PokerTHMessage_PokerTHMessageType_PokerTHMessageType_MAX = PokerTHMessage_PokerTHMessageType_Type_GameStartReentryMessage; -const int PokerTHMessage_PokerTHMessageType_PokerTHMessageType_ARRAYSIZE = PokerTHMessage_PokerTHMessageType_PokerTHMessageType_MAX + 1; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage_PokerTHMessageType_PokerTHMessageType_MIN = PokerTHMessage_PokerTHMessageType_Type_AnnounceMessage; +constexpr PokerTHMessage_PokerTHMessageType PokerTHMessage_PokerTHMessageType_PokerTHMessageType_MAX = PokerTHMessage_PokerTHMessageType_Type_GameSpectatorLeftMessage; +constexpr int PokerTHMessage_PokerTHMessageType_PokerTHMessageType_ARRAYSIZE = PokerTHMessage_PokerTHMessageType_PokerTHMessageType_MAX + 1; -enum NetGameMode { +const std::string& PokerTHMessage_PokerTHMessageType_Name(PokerTHMessage_PokerTHMessageType value); +template +inline const std::string& PokerTHMessage_PokerTHMessageType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PokerTHMessage_PokerTHMessageType_Name."); + return PokerTHMessage_PokerTHMessageType_Name(static_cast(enum_t_value)); +} +bool PokerTHMessage_PokerTHMessageType_Parse( + const std::string& name, PokerTHMessage_PokerTHMessageType* value); +enum NetGameMode : int { netGameCreated = 1, netGameStarted = 2, netGameClosed = 3 }; bool NetGameMode_IsValid(int value); -const NetGameMode NetGameMode_MIN = netGameCreated; -const NetGameMode NetGameMode_MAX = netGameClosed; -const int NetGameMode_ARRAYSIZE = NetGameMode_MAX + 1; +constexpr NetGameMode NetGameMode_MIN = netGameCreated; +constexpr NetGameMode NetGameMode_MAX = netGameClosed; +constexpr int NetGameMode_ARRAYSIZE = NetGameMode_MAX + 1; -enum NetGameState { +const std::string& NetGameMode_Name(NetGameMode value); +template +inline const std::string& NetGameMode_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function NetGameMode_Name."); + return NetGameMode_Name(static_cast(enum_t_value)); +} +bool NetGameMode_Parse( + const std::string& name, NetGameMode* value); +enum NetGameState : int { netStatePreflop = 0, netStateFlop = 1, netStateTurn = 2, @@ -498,11 +1053,21 @@ enum NetGameState { netStatePreflopBigBlind = 5 }; bool NetGameState_IsValid(int value); -const NetGameState NetGameState_MIN = netStatePreflop; -const NetGameState NetGameState_MAX = netStatePreflopBigBlind; -const int NetGameState_ARRAYSIZE = NetGameState_MAX + 1; +constexpr NetGameState NetGameState_MIN = netStatePreflop; +constexpr NetGameState NetGameState_MAX = netStatePreflopBigBlind; +constexpr int NetGameState_ARRAYSIZE = NetGameState_MAX + 1; -enum NetPlayerAction { +const std::string& NetGameState_Name(NetGameState value); +template +inline const std::string& NetGameState_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function NetGameState_Name."); + return NetGameState_Name(static_cast(enum_t_value)); +} +bool NetGameState_Parse( + const std::string& name, NetGameState* value); +enum NetPlayerAction : int { netActionNone = 0, netActionFold = 1, netActionCheck = 2, @@ -512,2835 +1077,4707 @@ enum NetPlayerAction { netActionAllIn = 6 }; bool NetPlayerAction_IsValid(int value); -const NetPlayerAction NetPlayerAction_MIN = netActionNone; -const NetPlayerAction NetPlayerAction_MAX = netActionAllIn; -const int NetPlayerAction_ARRAYSIZE = NetPlayerAction_MAX + 1; +constexpr NetPlayerAction NetPlayerAction_MIN = netActionNone; +constexpr NetPlayerAction NetPlayerAction_MAX = netActionAllIn; +constexpr int NetPlayerAction_ARRAYSIZE = NetPlayerAction_MAX + 1; -enum NetPlayerState { +const std::string& NetPlayerAction_Name(NetPlayerAction value); +template +inline const std::string& NetPlayerAction_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function NetPlayerAction_Name."); + return NetPlayerAction_Name(static_cast(enum_t_value)); +} +bool NetPlayerAction_Parse( + const std::string& name, NetPlayerAction* value); +enum NetPlayerState : int { netPlayerStateNormal = 0, netPlayerStateSessionInactive = 1, netPlayerStateNoMoney = 2 }; bool NetPlayerState_IsValid(int value); -const NetPlayerState NetPlayerState_MIN = netPlayerStateNormal; -const NetPlayerState NetPlayerState_MAX = netPlayerStateNoMoney; -const int NetPlayerState_ARRAYSIZE = NetPlayerState_MAX + 1; +constexpr NetPlayerState NetPlayerState_MIN = netPlayerStateNormal; +constexpr NetPlayerState NetPlayerState_MAX = netPlayerStateNoMoney; +constexpr int NetPlayerState_ARRAYSIZE = NetPlayerState_MAX + 1; -enum NetPlayerInfoRights { +const std::string& NetPlayerState_Name(NetPlayerState value); +template +inline const std::string& NetPlayerState_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function NetPlayerState_Name."); + return NetPlayerState_Name(static_cast(enum_t_value)); +} +bool NetPlayerState_Parse( + const std::string& name, NetPlayerState* value); +enum NetPlayerInfoRights : int { netPlayerRightsGuest = 1, netPlayerRightsNormal = 2, netPlayerRightsAdmin = 3 }; bool NetPlayerInfoRights_IsValid(int value); -const NetPlayerInfoRights NetPlayerInfoRights_MIN = netPlayerRightsGuest; -const NetPlayerInfoRights NetPlayerInfoRights_MAX = netPlayerRightsAdmin; -const int NetPlayerInfoRights_ARRAYSIZE = NetPlayerInfoRights_MAX + 1; +constexpr NetPlayerInfoRights NetPlayerInfoRights_MIN = netPlayerRightsGuest; +constexpr NetPlayerInfoRights NetPlayerInfoRights_MAX = netPlayerRightsAdmin; +constexpr int NetPlayerInfoRights_ARRAYSIZE = NetPlayerInfoRights_MAX + 1; -enum NetAvatarType { +const std::string& NetPlayerInfoRights_Name(NetPlayerInfoRights value); +template +inline const std::string& NetPlayerInfoRights_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function NetPlayerInfoRights_Name."); + return NetPlayerInfoRights_Name(static_cast(enum_t_value)); +} +bool NetPlayerInfoRights_Parse( + const std::string& name, NetPlayerInfoRights* value); +enum NetAvatarType : int { netAvatarImagePng = 1, netAvatarImageJpg = 2, netAvatarImageGif = 3 }; bool NetAvatarType_IsValid(int value); -const NetAvatarType NetAvatarType_MIN = netAvatarImagePng; -const NetAvatarType NetAvatarType_MAX = netAvatarImageGif; -const int NetAvatarType_ARRAYSIZE = NetAvatarType_MAX + 1; +constexpr NetAvatarType NetAvatarType_MIN = netAvatarImagePng; +constexpr NetAvatarType NetAvatarType_MAX = netAvatarImageGif; +constexpr int NetAvatarType_ARRAYSIZE = NetAvatarType_MAX + 1; +const std::string& NetAvatarType_Name(NetAvatarType value); +template +inline const std::string& NetAvatarType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function NetAvatarType_Name."); + return NetAvatarType_Name(static_cast(enum_t_value)); +} +bool NetAvatarType_Parse( + const std::string& name, NetAvatarType* value); // =================================================================== -class NetGameInfo : public ::google::protobuf::MessageLite { +class NetGameInfo PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:NetGameInfo) */ { public: - NetGameInfo(); + inline NetGameInfo() : NetGameInfo(nullptr) {}; virtual ~NetGameInfo(); NetGameInfo(const NetGameInfo& from); + NetGameInfo(NetGameInfo&& from) noexcept + : NetGameInfo() { + *this = ::std::move(from); + } inline NetGameInfo& operator=(const NetGameInfo& from) { CopyFrom(from); return *this; } + inline NetGameInfo& operator=(NetGameInfo&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const NetGameInfo& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const NetGameInfo* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_NetGameInfo_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 0; - void Swap(NetGameInfo* other); + friend void swap(NetGameInfo& a, NetGameInfo& b) { + a.Swap(&b); + } + inline void Swap(NetGameInfo* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(NetGameInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - NetGameInfo* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline NetGameInfo* New() const final { + return CreateMaybeMessage(nullptr); + } + + NetGameInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const NetGameInfo& from); void MergeFrom(const NetGameInfo& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(NetGameInfo* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "NetGameInfo"; + } + protected: + explicit NetGameInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef NetGameInfo_NetGameType NetGameType; - static const NetGameType normalGame = NetGameInfo_NetGameType_normalGame; - static const NetGameType registeredOnlyGame = NetGameInfo_NetGameType_registeredOnlyGame; - static const NetGameType inviteOnlyGame = NetGameInfo_NetGameType_inviteOnlyGame; - static const NetGameType rankingGame = NetGameInfo_NetGameType_rankingGame; + static constexpr NetGameType normalGame = + NetGameInfo_NetGameType_normalGame; + static constexpr NetGameType registeredOnlyGame = + NetGameInfo_NetGameType_registeredOnlyGame; + static constexpr NetGameType inviteOnlyGame = + NetGameInfo_NetGameType_inviteOnlyGame; + static constexpr NetGameType rankingGame = + NetGameInfo_NetGameType_rankingGame; static inline bool NetGameType_IsValid(int value) { return NetGameInfo_NetGameType_IsValid(value); } - static const NetGameType NetGameType_MIN = + static constexpr NetGameType NetGameType_MIN = NetGameInfo_NetGameType_NetGameType_MIN; - static const NetGameType NetGameType_MAX = + static constexpr NetGameType NetGameType_MAX = NetGameInfo_NetGameType_NetGameType_MAX; - static const int NetGameType_ARRAYSIZE = + static constexpr int NetGameType_ARRAYSIZE = NetGameInfo_NetGameType_NetGameType_ARRAYSIZE; + template + static inline const std::string& NetGameType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function NetGameType_Name."); + return NetGameInfo_NetGameType_Name(enum_t_value); + } + static inline bool NetGameType_Parse(const std::string& name, + NetGameType* value) { + return NetGameInfo_NetGameType_Parse(name, value); + } typedef NetGameInfo_RaiseIntervalMode RaiseIntervalMode; - static const RaiseIntervalMode raiseOnHandNum = NetGameInfo_RaiseIntervalMode_raiseOnHandNum; - static const RaiseIntervalMode raiseOnMinutes = NetGameInfo_RaiseIntervalMode_raiseOnMinutes; + static constexpr RaiseIntervalMode raiseOnHandNum = + NetGameInfo_RaiseIntervalMode_raiseOnHandNum; + static constexpr RaiseIntervalMode raiseOnMinutes = + NetGameInfo_RaiseIntervalMode_raiseOnMinutes; static inline bool RaiseIntervalMode_IsValid(int value) { return NetGameInfo_RaiseIntervalMode_IsValid(value); } - static const RaiseIntervalMode RaiseIntervalMode_MIN = + static constexpr RaiseIntervalMode RaiseIntervalMode_MIN = NetGameInfo_RaiseIntervalMode_RaiseIntervalMode_MIN; - static const RaiseIntervalMode RaiseIntervalMode_MAX = + static constexpr RaiseIntervalMode RaiseIntervalMode_MAX = NetGameInfo_RaiseIntervalMode_RaiseIntervalMode_MAX; - static const int RaiseIntervalMode_ARRAYSIZE = + static constexpr int RaiseIntervalMode_ARRAYSIZE = NetGameInfo_RaiseIntervalMode_RaiseIntervalMode_ARRAYSIZE; + template + static inline const std::string& RaiseIntervalMode_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function RaiseIntervalMode_Name."); + return NetGameInfo_RaiseIntervalMode_Name(enum_t_value); + } + static inline bool RaiseIntervalMode_Parse(const std::string& name, + RaiseIntervalMode* value) { + return NetGameInfo_RaiseIntervalMode_Parse(name, value); + } typedef NetGameInfo_EndRaiseMode EndRaiseMode; - static const EndRaiseMode doubleBlinds = NetGameInfo_EndRaiseMode_doubleBlinds; - static const EndRaiseMode raiseByEndValue = NetGameInfo_EndRaiseMode_raiseByEndValue; - static const EndRaiseMode keepLastBlind = NetGameInfo_EndRaiseMode_keepLastBlind; + static constexpr EndRaiseMode doubleBlinds = + NetGameInfo_EndRaiseMode_doubleBlinds; + static constexpr EndRaiseMode raiseByEndValue = + NetGameInfo_EndRaiseMode_raiseByEndValue; + static constexpr EndRaiseMode keepLastBlind = + NetGameInfo_EndRaiseMode_keepLastBlind; static inline bool EndRaiseMode_IsValid(int value) { return NetGameInfo_EndRaiseMode_IsValid(value); } - static const EndRaiseMode EndRaiseMode_MIN = + static constexpr EndRaiseMode EndRaiseMode_MIN = NetGameInfo_EndRaiseMode_EndRaiseMode_MIN; - static const EndRaiseMode EndRaiseMode_MAX = + static constexpr EndRaiseMode EndRaiseMode_MAX = NetGameInfo_EndRaiseMode_EndRaiseMode_MAX; - static const int EndRaiseMode_ARRAYSIZE = + static constexpr int EndRaiseMode_ARRAYSIZE = NetGameInfo_EndRaiseMode_EndRaiseMode_ARRAYSIZE; + template + static inline const std::string& EndRaiseMode_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function EndRaiseMode_Name."); + return NetGameInfo_EndRaiseMode_Name(enum_t_value); + } + static inline bool EndRaiseMode_Parse(const std::string& name, + EndRaiseMode* value) { + return NetGameInfo_EndRaiseMode_Parse(name, value); + } // accessors ------------------------------------------------------- - // required string gameName = 1; - inline bool has_gamename() const; - inline void clear_gamename(); - static const int kGameNameFieldNumber = 1; - inline const ::std::string& gamename() const; - inline void set_gamename(const ::std::string& value); - inline void set_gamename(const char* value); - inline void set_gamename(const char* value, size_t size); - inline ::std::string* mutable_gamename(); - inline ::std::string* release_gamename(); - inline void set_allocated_gamename(::std::string* gamename); - - // required .NetGameInfo.NetGameType netGameType = 2; - inline bool has_netgametype() const; - inline void clear_netgametype(); - static const int kNetGameTypeFieldNumber = 2; - inline ::NetGameInfo_NetGameType netgametype() const; - inline void set_netgametype(::NetGameInfo_NetGameType value); - - // required uint32 maxNumPlayers = 3; - inline bool has_maxnumplayers() const; - inline void clear_maxnumplayers(); - static const int kMaxNumPlayersFieldNumber = 3; - inline ::google::protobuf::uint32 maxnumplayers() const; - inline void set_maxnumplayers(::google::protobuf::uint32 value); - - // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - inline bool has_raiseintervalmode() const; - inline void clear_raiseintervalmode(); - static const int kRaiseIntervalModeFieldNumber = 4; - inline ::NetGameInfo_RaiseIntervalMode raiseintervalmode() const; - inline void set_raiseintervalmode(::NetGameInfo_RaiseIntervalMode value); - - // optional uint32 raiseEveryHands = 5; - inline bool has_raiseeveryhands() const; - inline void clear_raiseeveryhands(); - static const int kRaiseEveryHandsFieldNumber = 5; - inline ::google::protobuf::uint32 raiseeveryhands() const; - inline void set_raiseeveryhands(::google::protobuf::uint32 value); - - // optional uint32 raiseEveryMinutes = 6; - inline bool has_raiseeveryminutes() const; - inline void clear_raiseeveryminutes(); - static const int kRaiseEveryMinutesFieldNumber = 6; - inline ::google::protobuf::uint32 raiseeveryminutes() const; - inline void set_raiseeveryminutes(::google::protobuf::uint32 value); - - // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - inline bool has_endraisemode() const; - inline void clear_endraisemode(); - static const int kEndRaiseModeFieldNumber = 7; - inline ::NetGameInfo_EndRaiseMode endraisemode() const; - inline void set_endraisemode(::NetGameInfo_EndRaiseMode value); - - // optional uint32 endRaiseSmallBlindValue = 8; - inline bool has_endraisesmallblindvalue() const; - inline void clear_endraisesmallblindvalue(); - static const int kEndRaiseSmallBlindValueFieldNumber = 8; - inline ::google::protobuf::uint32 endraisesmallblindvalue() const; - inline void set_endraisesmallblindvalue(::google::protobuf::uint32 value); - - // required uint32 proposedGuiSpeed = 9; - inline bool has_proposedguispeed() const; - inline void clear_proposedguispeed(); - static const int kProposedGuiSpeedFieldNumber = 9; - inline ::google::protobuf::uint32 proposedguispeed() const; - inline void set_proposedguispeed(::google::protobuf::uint32 value); - - // required uint32 delayBetweenHands = 10; - inline bool has_delaybetweenhands() const; - inline void clear_delaybetweenhands(); - static const int kDelayBetweenHandsFieldNumber = 10; - inline ::google::protobuf::uint32 delaybetweenhands() const; - inline void set_delaybetweenhands(::google::protobuf::uint32 value); - - // required uint32 playerActionTimeout = 11; - inline bool has_playeractiontimeout() const; - inline void clear_playeractiontimeout(); - static const int kPlayerActionTimeoutFieldNumber = 11; - inline ::google::protobuf::uint32 playeractiontimeout() const; - inline void set_playeractiontimeout(::google::protobuf::uint32 value); - - // required uint32 firstSmallBlind = 12; - inline bool has_firstsmallblind() const; - inline void clear_firstsmallblind(); - static const int kFirstSmallBlindFieldNumber = 12; - inline ::google::protobuf::uint32 firstsmallblind() const; - inline void set_firstsmallblind(::google::protobuf::uint32 value); - - // required uint32 startMoney = 13; - inline bool has_startmoney() const; - inline void clear_startmoney(); - static const int kStartMoneyFieldNumber = 13; - inline ::google::protobuf::uint32 startmoney() const; - inline void set_startmoney(::google::protobuf::uint32 value); - + enum : int { + kManualBlindsFieldNumber = 14, + kGameNameFieldNumber = 1, + kMaxNumPlayersFieldNumber = 3, + kRaiseEveryHandsFieldNumber = 5, + kRaiseEveryMinutesFieldNumber = 6, + kEndRaiseSmallBlindValueFieldNumber = 8, + kProposedGuiSpeedFieldNumber = 9, + kDelayBetweenHandsFieldNumber = 10, + kPlayerActionTimeoutFieldNumber = 11, + kFirstSmallBlindFieldNumber = 12, + kStartMoneyFieldNumber = 13, + kNetGameTypeFieldNumber = 2, + kRaiseIntervalModeFieldNumber = 4, + kEndRaiseModeFieldNumber = 7, + kAllowSpectatorsFieldNumber = 15, + }; // repeated uint32 manualBlinds = 14 [packed = true]; - inline int manualblinds_size() const; - inline void clear_manualblinds(); - static const int kManualBlindsFieldNumber = 14; - inline ::google::protobuf::uint32 manualblinds(int index) const; - inline void set_manualblinds(int index, ::google::protobuf::uint32 value); - inline void add_manualblinds(::google::protobuf::uint32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + int manualblinds_size() const; + private: + int _internal_manualblinds_size() const; + public: + void clear_manualblinds(); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_manualblinds(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& + _internal_manualblinds() const; + void _internal_add_manualblinds(::PROTOBUF_NAMESPACE_ID::uint32 value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* + _internal_mutable_manualblinds(); + public: + ::PROTOBUF_NAMESPACE_ID::uint32 manualblinds(int index) const; + void set_manualblinds(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value); + void add_manualblinds(::PROTOBUF_NAMESPACE_ID::uint32 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& manualblinds() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* mutable_manualblinds(); + // required string gameName = 1; + bool has_gamename() const; + private: + bool _internal_has_gamename() const; + public: + void clear_gamename(); + const std::string& gamename() const; + void set_gamename(const std::string& value); + void set_gamename(std::string&& value); + void set_gamename(const char* value); + void set_gamename(const char* value, size_t size); + std::string* mutable_gamename(); + std::string* release_gamename(); + void set_allocated_gamename(std::string* gamename); + 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_gamename(); + 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_gamename( + std::string* gamename); + private: + const std::string& _internal_gamename() const; + void _internal_set_gamename(const std::string& value); + std::string* _internal_mutable_gamename(); + public: + + // required uint32 maxNumPlayers = 3; + bool has_maxnumplayers() const; + private: + bool _internal_has_maxnumplayers() const; + public: + void clear_maxnumplayers(); + ::PROTOBUF_NAMESPACE_ID::uint32 maxnumplayers() const; + void set_maxnumplayers(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_maxnumplayers() const; + void _internal_set_maxnumplayers(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional uint32 raiseEveryHands = 5; + bool has_raiseeveryhands() const; + private: + bool _internal_has_raiseeveryhands() const; + public: + void clear_raiseeveryhands(); + ::PROTOBUF_NAMESPACE_ID::uint32 raiseeveryhands() const; + void set_raiseeveryhands(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_raiseeveryhands() const; + void _internal_set_raiseeveryhands(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional uint32 raiseEveryMinutes = 6; + bool has_raiseeveryminutes() const; + private: + bool _internal_has_raiseeveryminutes() const; + public: + void clear_raiseeveryminutes(); + ::PROTOBUF_NAMESPACE_ID::uint32 raiseeveryminutes() const; + void set_raiseeveryminutes(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_raiseeveryminutes() const; + void _internal_set_raiseeveryminutes(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional uint32 endRaiseSmallBlindValue = 8; + bool has_endraisesmallblindvalue() const; + private: + bool _internal_has_endraisesmallblindvalue() const; + public: + void clear_endraisesmallblindvalue(); + ::PROTOBUF_NAMESPACE_ID::uint32 endraisesmallblindvalue() const; + void set_endraisesmallblindvalue(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_endraisesmallblindvalue() const; + void _internal_set_endraisesmallblindvalue(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // required uint32 proposedGuiSpeed = 9; + bool has_proposedguispeed() const; + private: + bool _internal_has_proposedguispeed() const; + public: + void clear_proposedguispeed(); + ::PROTOBUF_NAMESPACE_ID::uint32 proposedguispeed() const; + void set_proposedguispeed(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_proposedguispeed() const; + void _internal_set_proposedguispeed(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // required uint32 delayBetweenHands = 10; + bool has_delaybetweenhands() const; + private: + bool _internal_has_delaybetweenhands() const; + public: + void clear_delaybetweenhands(); + ::PROTOBUF_NAMESPACE_ID::uint32 delaybetweenhands() const; + void set_delaybetweenhands(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_delaybetweenhands() const; + void _internal_set_delaybetweenhands(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // required uint32 playerActionTimeout = 11; + bool has_playeractiontimeout() const; + private: + bool _internal_has_playeractiontimeout() const; + public: + void clear_playeractiontimeout(); + ::PROTOBUF_NAMESPACE_ID::uint32 playeractiontimeout() const; + void set_playeractiontimeout(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playeractiontimeout() const; + void _internal_set_playeractiontimeout(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // required uint32 firstSmallBlind = 12; + bool has_firstsmallblind() const; + private: + bool _internal_has_firstsmallblind() const; + public: + void clear_firstsmallblind(); + ::PROTOBUF_NAMESPACE_ID::uint32 firstsmallblind() const; + void set_firstsmallblind(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_firstsmallblind() const; + void _internal_set_firstsmallblind(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // required uint32 startMoney = 13; + bool has_startmoney() const; + private: + bool _internal_has_startmoney() const; + public: + void clear_startmoney(); + ::PROTOBUF_NAMESPACE_ID::uint32 startmoney() const; + void set_startmoney(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_startmoney() const; + void _internal_set_startmoney(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // required .NetGameInfo.NetGameType netGameType = 2; + bool has_netgametype() const; + private: + bool _internal_has_netgametype() const; + public: + void clear_netgametype(); + ::NetGameInfo_NetGameType netgametype() const; + void set_netgametype(::NetGameInfo_NetGameType value); + private: + ::NetGameInfo_NetGameType _internal_netgametype() const; + void _internal_set_netgametype(::NetGameInfo_NetGameType value); + public: + + // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; + bool has_raiseintervalmode() const; + private: + bool _internal_has_raiseintervalmode() const; + public: + void clear_raiseintervalmode(); + ::NetGameInfo_RaiseIntervalMode raiseintervalmode() const; + void set_raiseintervalmode(::NetGameInfo_RaiseIntervalMode value); + private: + ::NetGameInfo_RaiseIntervalMode _internal_raiseintervalmode() const; + void _internal_set_raiseintervalmode(::NetGameInfo_RaiseIntervalMode value); + public: + + // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; + bool has_endraisemode() const; + private: + bool _internal_has_endraisemode() const; + public: + void clear_endraisemode(); + ::NetGameInfo_EndRaiseMode endraisemode() const; + void set_endraisemode(::NetGameInfo_EndRaiseMode value); + private: + ::NetGameInfo_EndRaiseMode _internal_endraisemode() const; + void _internal_set_endraisemode(::NetGameInfo_EndRaiseMode value); + public: + // optional bool allowSpectators = 15 [default = true]; - inline bool has_allowspectators() const; - inline void clear_allowspectators(); - static const int kAllowSpectatorsFieldNumber = 15; - inline bool allowspectators() const; - inline void set_allowspectators(bool value); - - // optional bool allowLateReg = 16 [default = false]; - inline bool has_allowlatereg() const; - inline void clear_allowlatereg(); - static const int kAllowLateRegFieldNumber = 16; - inline bool allowlatereg() const; - inline void set_allowlatereg(bool value); - - // optional bool allowReentries = 17 [default = false]; - inline bool has_allowreentries() const; - inline void clear_allowreentries(); - static const int kAllowReentriesFieldNumber = 17; - inline bool allowreentries() const; - inline void set_allowreentries(bool value); - - // optional uint32 numReentries = 18 [default = 0]; - inline bool has_numreentries() const; - inline void clear_numreentries(); - static const int kNumReentriesFieldNumber = 18; - inline ::google::protobuf::uint32 numreentries() const; - inline void set_numreentries(::google::protobuf::uint32 value); - - // optional uint32 maxTimeLateReg = 19 [default = 0]; - inline bool has_maxtimelatereg() const; - inline void clear_maxtimelatereg(); - static const int kMaxTimeLateRegFieldNumber = 19; - inline ::google::protobuf::uint32 maxtimelatereg() const; - inline void set_maxtimelatereg(::google::protobuf::uint32 value); + bool has_allowspectators() const; + private: + bool _internal_has_allowspectators() const; + public: + void clear_allowspectators(); + bool allowspectators() const; + void set_allowspectators(bool value); + private: + bool _internal_allowspectators() const; + void _internal_set_allowspectators(bool value); + public: // @@protoc_insertion_point(class_scope:NetGameInfo) private: - inline void set_has_gamename(); - inline void clear_has_gamename(); - inline void set_has_netgametype(); - inline void clear_has_netgametype(); - inline void set_has_maxnumplayers(); - inline void clear_has_maxnumplayers(); - inline void set_has_raiseintervalmode(); - inline void clear_has_raiseintervalmode(); - inline void set_has_raiseeveryhands(); - inline void clear_has_raiseeveryhands(); - inline void set_has_raiseeveryminutes(); - inline void clear_has_raiseeveryminutes(); - inline void set_has_endraisemode(); - inline void clear_has_endraisemode(); - inline void set_has_endraisesmallblindvalue(); - inline void clear_has_endraisesmallblindvalue(); - inline void set_has_proposedguispeed(); - inline void clear_has_proposedguispeed(); - inline void set_has_delaybetweenhands(); - inline void clear_has_delaybetweenhands(); - inline void set_has_playeractiontimeout(); - inline void clear_has_playeractiontimeout(); - inline void set_has_firstsmallblind(); - inline void clear_has_firstsmallblind(); - inline void set_has_startmoney(); - inline void clear_has_startmoney(); - inline void set_has_allowspectators(); - inline void clear_has_allowspectators(); - inline void set_has_allowlatereg(); - inline void clear_has_allowlatereg(); - inline void set_has_allowreentries(); - inline void clear_has_allowreentries(); - inline void set_has_numreentries(); - inline void clear_has_numreentries(); - inline void set_has_maxtimelatereg(); - inline void clear_has_maxtimelatereg(); + class _Internal; - ::std::string* gamename_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 > manualblinds_; + mutable std::atomic _manualblinds_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr gamename_; + ::PROTOBUF_NAMESPACE_ID::uint32 maxnumplayers_; + ::PROTOBUF_NAMESPACE_ID::uint32 raiseeveryhands_; + ::PROTOBUF_NAMESPACE_ID::uint32 raiseeveryminutes_; + ::PROTOBUF_NAMESPACE_ID::uint32 endraisesmallblindvalue_; + ::PROTOBUF_NAMESPACE_ID::uint32 proposedguispeed_; + ::PROTOBUF_NAMESPACE_ID::uint32 delaybetweenhands_; + ::PROTOBUF_NAMESPACE_ID::uint32 playeractiontimeout_; + ::PROTOBUF_NAMESPACE_ID::uint32 firstsmallblind_; + ::PROTOBUF_NAMESPACE_ID::uint32 startmoney_; int netgametype_; - ::google::protobuf::uint32 maxnumplayers_; int raiseintervalmode_; - ::google::protobuf::uint32 raiseeveryhands_; - ::google::protobuf::uint32 raiseeveryminutes_; int endraisemode_; - ::google::protobuf::uint32 endraisesmallblindvalue_; - ::google::protobuf::uint32 proposedguispeed_; - ::google::protobuf::uint32 delaybetweenhands_; - ::google::protobuf::uint32 playeractiontimeout_; - ::google::protobuf::uint32 firstsmallblind_; - ::google::protobuf::uint32 startmoney_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > manualblinds_; - mutable int _manualblinds_cached_byte_size_; bool allowspectators_; - bool allowlatereg_; - bool allowreentries_; - ::google::protobuf::uint32 numreentries_; - ::google::protobuf::uint32 maxtimelatereg_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(19 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static NetGameInfo* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class PlayerResult : public ::google::protobuf::MessageLite { +class PlayerResult PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:PlayerResult) */ { public: - PlayerResult(); + inline PlayerResult() : PlayerResult(nullptr) {}; virtual ~PlayerResult(); PlayerResult(const PlayerResult& from); + PlayerResult(PlayerResult&& from) noexcept + : PlayerResult() { + *this = ::std::move(from); + } inline PlayerResult& operator=(const PlayerResult& from) { CopyFrom(from); return *this; } + inline PlayerResult& operator=(PlayerResult&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const PlayerResult& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PlayerResult* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_PlayerResult_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 1; - void Swap(PlayerResult* other); + friend void swap(PlayerResult& a, PlayerResult& b) { + a.Swap(&b); + } + inline void Swap(PlayerResult* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PlayerResult* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - PlayerResult* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline PlayerResult* New() const final { + return CreateMaybeMessage(nullptr); + } + + PlayerResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const PlayerResult& from); void MergeFrom(const PlayerResult& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(PlayerResult* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "PlayerResult"; + } + protected: + explicit PlayerResult(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required uint32 playerId = 1; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); - - // required uint32 resultCard1 = 2; - inline bool has_resultcard1() const; - inline void clear_resultcard1(); - static const int kResultCard1FieldNumber = 2; - inline ::google::protobuf::uint32 resultcard1() const; - inline void set_resultcard1(::google::protobuf::uint32 value); - - // required uint32 resultCard2 = 3; - inline bool has_resultcard2() const; - inline void clear_resultcard2(); - static const int kResultCard2FieldNumber = 3; - inline ::google::protobuf::uint32 resultcard2() const; - inline void set_resultcard2(::google::protobuf::uint32 value); - + enum : int { + kBestHandPositionFieldNumber = 4, + kPlayerIdFieldNumber = 1, + kResultCard1FieldNumber = 2, + kResultCard2FieldNumber = 3, + kMoneyWonFieldNumber = 5, + kPlayerMoneyFieldNumber = 6, + kCardsValueFieldNumber = 7, + }; // repeated uint32 bestHandPosition = 4 [packed = true]; - inline int besthandposition_size() const; - inline void clear_besthandposition(); - static const int kBestHandPositionFieldNumber = 4; - inline ::google::protobuf::uint32 besthandposition(int index) const; - inline void set_besthandposition(int index, ::google::protobuf::uint32 value); - inline void add_besthandposition(::google::protobuf::uint32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + int besthandposition_size() const; + private: + int _internal_besthandposition_size() const; + public: + void clear_besthandposition(); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_besthandposition(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& + _internal_besthandposition() const; + void _internal_add_besthandposition(::PROTOBUF_NAMESPACE_ID::uint32 value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* + _internal_mutable_besthandposition(); + public: + ::PROTOBUF_NAMESPACE_ID::uint32 besthandposition(int index) const; + void set_besthandposition(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value); + void add_besthandposition(::PROTOBUF_NAMESPACE_ID::uint32 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& besthandposition() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* mutable_besthandposition(); + // required uint32 playerId = 1; + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // required uint32 resultCard1 = 2; + bool has_resultcard1() const; + private: + bool _internal_has_resultcard1() const; + public: + void clear_resultcard1(); + ::PROTOBUF_NAMESPACE_ID::uint32 resultcard1() const; + void set_resultcard1(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_resultcard1() const; + void _internal_set_resultcard1(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // required uint32 resultCard2 = 3; + bool has_resultcard2() const; + private: + bool _internal_has_resultcard2() const; + public: + void clear_resultcard2(); + ::PROTOBUF_NAMESPACE_ID::uint32 resultcard2() const; + void set_resultcard2(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_resultcard2() const; + void _internal_set_resultcard2(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + // required uint32 moneyWon = 5; - inline bool has_moneywon() const; - inline void clear_moneywon(); - static const int kMoneyWonFieldNumber = 5; - inline ::google::protobuf::uint32 moneywon() const; - inline void set_moneywon(::google::protobuf::uint32 value); + bool has_moneywon() const; + private: + bool _internal_has_moneywon() const; + public: + void clear_moneywon(); + ::PROTOBUF_NAMESPACE_ID::uint32 moneywon() const; + void set_moneywon(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_moneywon() const; + void _internal_set_moneywon(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerMoney = 6; - inline bool has_playermoney() const; - inline void clear_playermoney(); - static const int kPlayerMoneyFieldNumber = 6; - inline ::google::protobuf::uint32 playermoney() const; - inline void set_playermoney(::google::protobuf::uint32 value); + bool has_playermoney() const; + private: + bool _internal_has_playermoney() const; + public: + void clear_playermoney(); + ::PROTOBUF_NAMESPACE_ID::uint32 playermoney() const; + void set_playermoney(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playermoney() const; + void _internal_set_playermoney(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // optional uint32 cardsValue = 7; - inline bool has_cardsvalue() const; - inline void clear_cardsvalue(); - static const int kCardsValueFieldNumber = 7; - inline ::google::protobuf::uint32 cardsvalue() const; - inline void set_cardsvalue(::google::protobuf::uint32 value); + bool has_cardsvalue() const; + private: + bool _internal_has_cardsvalue() const; + public: + void clear_cardsvalue(); + ::PROTOBUF_NAMESPACE_ID::uint32 cardsvalue() const; + void set_cardsvalue(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_cardsvalue() const; + void _internal_set_cardsvalue(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:PlayerResult) private: - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_resultcard1(); - inline void clear_has_resultcard1(); - inline void set_has_resultcard2(); - inline void clear_has_resultcard2(); - inline void set_has_moneywon(); - inline void clear_has_moneywon(); - inline void set_has_playermoney(); - inline void clear_has_playermoney(); - inline void set_has_cardsvalue(); - inline void clear_has_cardsvalue(); + class _Internal; - ::google::protobuf::uint32 playerid_; - ::google::protobuf::uint32 resultcard1_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > besthandposition_; - mutable int _besthandposition_cached_byte_size_; - ::google::protobuf::uint32 resultcard2_; - ::google::protobuf::uint32 moneywon_; - ::google::protobuf::uint32 playermoney_; - ::google::protobuf::uint32 cardsvalue_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static PlayerResult* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 > besthandposition_; + mutable std::atomic _besthandposition_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; + ::PROTOBUF_NAMESPACE_ID::uint32 resultcard1_; + ::PROTOBUF_NAMESPACE_ID::uint32 resultcard2_; + ::PROTOBUF_NAMESPACE_ID::uint32 moneywon_; + ::PROTOBUF_NAMESPACE_ID::uint32 playermoney_; + ::PROTOBUF_NAMESPACE_ID::uint32 cardsvalue_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AnnounceMessage_Version : public ::google::protobuf::MessageLite { +class AnnounceMessage_Version PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:AnnounceMessage.Version) */ { public: - AnnounceMessage_Version(); + inline AnnounceMessage_Version() : AnnounceMessage_Version(nullptr) {}; virtual ~AnnounceMessage_Version(); AnnounceMessage_Version(const AnnounceMessage_Version& from); + AnnounceMessage_Version(AnnounceMessage_Version&& from) noexcept + : AnnounceMessage_Version() { + *this = ::std::move(from); + } inline AnnounceMessage_Version& operator=(const AnnounceMessage_Version& from) { CopyFrom(from); return *this; } + inline AnnounceMessage_Version& operator=(AnnounceMessage_Version&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const AnnounceMessage_Version& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AnnounceMessage_Version* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AnnounceMessage_Version_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 2; - void Swap(AnnounceMessage_Version* other); + friend void swap(AnnounceMessage_Version& a, AnnounceMessage_Version& b) { + a.Swap(&b); + } + inline void Swap(AnnounceMessage_Version* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AnnounceMessage_Version* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - AnnounceMessage_Version* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline AnnounceMessage_Version* New() const final { + return CreateMaybeMessage(nullptr); + } + + AnnounceMessage_Version* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const AnnounceMessage_Version& from); void MergeFrom(const AnnounceMessage_Version& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(AnnounceMessage_Version* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "AnnounceMessage.Version"; + } + protected: + explicit AnnounceMessage_Version(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kMajorVersionFieldNumber = 1, + kMinorVersionFieldNumber = 2, + }; // required uint32 majorVersion = 1; - inline bool has_majorversion() const; - inline void clear_majorversion(); - static const int kMajorVersionFieldNumber = 1; - inline ::google::protobuf::uint32 majorversion() const; - inline void set_majorversion(::google::protobuf::uint32 value); + bool has_majorversion() const; + private: + bool _internal_has_majorversion() const; + public: + void clear_majorversion(); + ::PROTOBUF_NAMESPACE_ID::uint32 majorversion() const; + void set_majorversion(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_majorversion() const; + void _internal_set_majorversion(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 minorVersion = 2; - inline bool has_minorversion() const; - inline void clear_minorversion(); - static const int kMinorVersionFieldNumber = 2; - inline ::google::protobuf::uint32 minorversion() const; - inline void set_minorversion(::google::protobuf::uint32 value); + bool has_minorversion() const; + private: + bool _internal_has_minorversion() const; + public: + void clear_minorversion(); + ::PROTOBUF_NAMESPACE_ID::uint32 minorversion() const; + void set_minorversion(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_minorversion() const; + void _internal_set_minorversion(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:AnnounceMessage.Version) private: - inline void set_has_majorversion(); - inline void clear_has_majorversion(); - inline void set_has_minorversion(); - inline void clear_has_minorversion(); + class _Internal; - ::google::protobuf::uint32 majorversion_; - ::google::protobuf::uint32 minorversion_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AnnounceMessage_Version* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 majorversion_; + ::PROTOBUF_NAMESPACE_ID::uint32 minorversion_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AnnounceMessage : public ::google::protobuf::MessageLite { +class AnnounceMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:AnnounceMessage) */ { public: - AnnounceMessage(); + inline AnnounceMessage() : AnnounceMessage(nullptr) {}; virtual ~AnnounceMessage(); AnnounceMessage(const AnnounceMessage& from); + AnnounceMessage(AnnounceMessage&& from) noexcept + : AnnounceMessage() { + *this = ::std::move(from); + } inline AnnounceMessage& operator=(const AnnounceMessage& from) { CopyFrom(from); return *this; } + inline AnnounceMessage& operator=(AnnounceMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const AnnounceMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AnnounceMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AnnounceMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 3; - void Swap(AnnounceMessage* other); + friend void swap(AnnounceMessage& a, AnnounceMessage& b) { + a.Swap(&b); + } + inline void Swap(AnnounceMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AnnounceMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - AnnounceMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline AnnounceMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + AnnounceMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const AnnounceMessage& from); void MergeFrom(const AnnounceMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(AnnounceMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "AnnounceMessage"; + } + protected: + explicit AnnounceMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef AnnounceMessage_Version Version; typedef AnnounceMessage_ServerType ServerType; - static const ServerType serverTypeLAN = AnnounceMessage_ServerType_serverTypeLAN; - static const ServerType serverTypeInternetNoAuth = AnnounceMessage_ServerType_serverTypeInternetNoAuth; - static const ServerType serverTypeInternetAuth = AnnounceMessage_ServerType_serverTypeInternetAuth; + static constexpr ServerType serverTypeLAN = + AnnounceMessage_ServerType_serverTypeLAN; + static constexpr ServerType serverTypeInternetNoAuth = + AnnounceMessage_ServerType_serverTypeInternetNoAuth; + static constexpr ServerType serverTypeInternetAuth = + AnnounceMessage_ServerType_serverTypeInternetAuth; static inline bool ServerType_IsValid(int value) { return AnnounceMessage_ServerType_IsValid(value); } - static const ServerType ServerType_MIN = + static constexpr ServerType ServerType_MIN = AnnounceMessage_ServerType_ServerType_MIN; - static const ServerType ServerType_MAX = + static constexpr ServerType ServerType_MAX = AnnounceMessage_ServerType_ServerType_MAX; - static const int ServerType_ARRAYSIZE = + static constexpr int ServerType_ARRAYSIZE = AnnounceMessage_ServerType_ServerType_ARRAYSIZE; + template + static inline const std::string& ServerType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ServerType_Name."); + return AnnounceMessage_ServerType_Name(enum_t_value); + } + static inline bool ServerType_Parse(const std::string& name, + ServerType* value) { + return AnnounceMessage_ServerType_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kProtocolVersionFieldNumber = 1, + kLatestGameVersionFieldNumber = 2, + kLatestBetaRevisionFieldNumber = 3, + kServerTypeFieldNumber = 4, + kNumPlayersOnServerFieldNumber = 5, + }; // required .AnnounceMessage.Version protocolVersion = 1; - inline bool has_protocolversion() const; - inline void clear_protocolversion(); - static const int kProtocolVersionFieldNumber = 1; - inline const ::AnnounceMessage_Version& protocolversion() const; - inline ::AnnounceMessage_Version* mutable_protocolversion(); - inline ::AnnounceMessage_Version* release_protocolversion(); - inline void set_allocated_protocolversion(::AnnounceMessage_Version* protocolversion); + bool has_protocolversion() const; + private: + bool _internal_has_protocolversion() const; + public: + void clear_protocolversion(); + const ::AnnounceMessage_Version& protocolversion() const; + ::AnnounceMessage_Version* release_protocolversion(); + ::AnnounceMessage_Version* mutable_protocolversion(); + void set_allocated_protocolversion(::AnnounceMessage_Version* protocolversion); + private: + const ::AnnounceMessage_Version& _internal_protocolversion() const; + ::AnnounceMessage_Version* _internal_mutable_protocolversion(); + public: + void unsafe_arena_set_allocated_protocolversion( + ::AnnounceMessage_Version* protocolversion); + ::AnnounceMessage_Version* unsafe_arena_release_protocolversion(); // required .AnnounceMessage.Version latestGameVersion = 2; - inline bool has_latestgameversion() const; - inline void clear_latestgameversion(); - static const int kLatestGameVersionFieldNumber = 2; - inline const ::AnnounceMessage_Version& latestgameversion() const; - inline ::AnnounceMessage_Version* mutable_latestgameversion(); - inline ::AnnounceMessage_Version* release_latestgameversion(); - inline void set_allocated_latestgameversion(::AnnounceMessage_Version* latestgameversion); + bool has_latestgameversion() const; + private: + bool _internal_has_latestgameversion() const; + public: + void clear_latestgameversion(); + const ::AnnounceMessage_Version& latestgameversion() const; + ::AnnounceMessage_Version* release_latestgameversion(); + ::AnnounceMessage_Version* mutable_latestgameversion(); + void set_allocated_latestgameversion(::AnnounceMessage_Version* latestgameversion); + private: + const ::AnnounceMessage_Version& _internal_latestgameversion() const; + ::AnnounceMessage_Version* _internal_mutable_latestgameversion(); + public: + void unsafe_arena_set_allocated_latestgameversion( + ::AnnounceMessage_Version* latestgameversion); + ::AnnounceMessage_Version* unsafe_arena_release_latestgameversion(); // required uint32 latestBetaRevision = 3; - inline bool has_latestbetarevision() const; - inline void clear_latestbetarevision(); - static const int kLatestBetaRevisionFieldNumber = 3; - inline ::google::protobuf::uint32 latestbetarevision() const; - inline void set_latestbetarevision(::google::protobuf::uint32 value); + bool has_latestbetarevision() const; + private: + bool _internal_has_latestbetarevision() const; + public: + void clear_latestbetarevision(); + ::PROTOBUF_NAMESPACE_ID::uint32 latestbetarevision() const; + void set_latestbetarevision(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_latestbetarevision() const; + void _internal_set_latestbetarevision(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .AnnounceMessage.ServerType serverType = 4; - inline bool has_servertype() const; - inline void clear_servertype(); - static const int kServerTypeFieldNumber = 4; - inline ::AnnounceMessage_ServerType servertype() const; - inline void set_servertype(::AnnounceMessage_ServerType value); + bool has_servertype() const; + private: + bool _internal_has_servertype() const; + public: + void clear_servertype(); + ::AnnounceMessage_ServerType servertype() const; + void set_servertype(::AnnounceMessage_ServerType value); + private: + ::AnnounceMessage_ServerType _internal_servertype() const; + void _internal_set_servertype(::AnnounceMessage_ServerType value); + public: // required uint32 numPlayersOnServer = 5; - inline bool has_numplayersonserver() const; - inline void clear_numplayersonserver(); - static const int kNumPlayersOnServerFieldNumber = 5; - inline ::google::protobuf::uint32 numplayersonserver() const; - inline void set_numplayersonserver(::google::protobuf::uint32 value); + bool has_numplayersonserver() const; + private: + bool _internal_has_numplayersonserver() const; + public: + void clear_numplayersonserver(); + ::PROTOBUF_NAMESPACE_ID::uint32 numplayersonserver() const; + void set_numplayersonserver(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_numplayersonserver() const; + void _internal_set_numplayersonserver(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:AnnounceMessage) private: - inline void set_has_protocolversion(); - inline void clear_has_protocolversion(); - inline void set_has_latestgameversion(); - inline void clear_has_latestgameversion(); - inline void set_has_latestbetarevision(); - inline void clear_has_latestbetarevision(); - inline void set_has_servertype(); - inline void clear_has_servertype(); - inline void set_has_numplayersonserver(); - inline void clear_has_numplayersonserver(); + class _Internal; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::AnnounceMessage_Version* protocolversion_; ::AnnounceMessage_Version* latestgameversion_; - ::google::protobuf::uint32 latestbetarevision_; + ::PROTOBUF_NAMESPACE_ID::uint32 latestbetarevision_; int servertype_; - ::google::protobuf::uint32 numplayersonserver_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AnnounceMessage* default_instance_; + ::PROTOBUF_NAMESPACE_ID::uint32 numplayersonserver_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class InitMessage : public ::google::protobuf::MessageLite { +class InitMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:InitMessage) */ { public: - InitMessage(); + inline InitMessage() : InitMessage(nullptr) {}; virtual ~InitMessage(); InitMessage(const InitMessage& from); + InitMessage(InitMessage&& from) noexcept + : InitMessage() { + *this = ::std::move(from); + } inline InitMessage& operator=(const InitMessage& from) { CopyFrom(from); return *this; } + inline InitMessage& operator=(InitMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const InitMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const InitMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_InitMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 4; - void Swap(InitMessage* other); + friend void swap(InitMessage& a, InitMessage& b) { + a.Swap(&b); + } + inline void Swap(InitMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(InitMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - InitMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline InitMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + InitMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const InitMessage& from); void MergeFrom(const InitMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(InitMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "InitMessage"; + } + protected: + explicit InitMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef InitMessage_LoginType LoginType; - static const LoginType guestLogin = InitMessage_LoginType_guestLogin; - static const LoginType authenticatedLogin = InitMessage_LoginType_authenticatedLogin; - static const LoginType unauthenticatedLogin = InitMessage_LoginType_unauthenticatedLogin; + static constexpr LoginType guestLogin = + InitMessage_LoginType_guestLogin; + static constexpr LoginType authenticatedLogin = + InitMessage_LoginType_authenticatedLogin; + static constexpr LoginType unauthenticatedLogin = + InitMessage_LoginType_unauthenticatedLogin; static inline bool LoginType_IsValid(int value) { return InitMessage_LoginType_IsValid(value); } - static const LoginType LoginType_MIN = + static constexpr LoginType LoginType_MIN = InitMessage_LoginType_LoginType_MIN; - static const LoginType LoginType_MAX = + static constexpr LoginType LoginType_MAX = InitMessage_LoginType_LoginType_MAX; - static const int LoginType_ARRAYSIZE = + static constexpr int LoginType_ARRAYSIZE = InitMessage_LoginType_LoginType_ARRAYSIZE; + template + static inline const std::string& LoginType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function LoginType_Name."); + return InitMessage_LoginType_Name(enum_t_value); + } + static inline bool LoginType_Parse(const std::string& name, + LoginType* value) { + return InitMessage_LoginType_Parse(name, value); + } // accessors ------------------------------------------------------- - // required .AnnounceMessage.Version requestedVersion = 1; - inline bool has_requestedversion() const; - inline void clear_requestedversion(); - static const int kRequestedVersionFieldNumber = 1; - inline const ::AnnounceMessage_Version& requestedversion() const; - inline ::AnnounceMessage_Version* mutable_requestedversion(); - inline ::AnnounceMessage_Version* release_requestedversion(); - inline void set_allocated_requestedversion(::AnnounceMessage_Version* requestedversion); - - // required uint32 buildId = 2; - inline bool has_buildid() const; - inline void clear_buildid(); - static const int kBuildIdFieldNumber = 2; - inline ::google::protobuf::uint32 buildid() const; - inline void set_buildid(::google::protobuf::uint32 value); - + enum : int { + kMyLastSessionIdFieldNumber = 3, + kAuthServerPasswordFieldNumber = 4, + kNickNameFieldNumber = 6, + kClientUserDataFieldNumber = 7, + kAvatarHashFieldNumber = 8, + kRequestedVersionFieldNumber = 1, + kBuildIdFieldNumber = 2, + kLoginFieldNumber = 5, + }; // optional bytes myLastSessionId = 3; - inline bool has_mylastsessionid() const; - inline void clear_mylastsessionid(); - static const int kMyLastSessionIdFieldNumber = 3; - inline const ::std::string& mylastsessionid() const; - inline void set_mylastsessionid(const ::std::string& value); - inline void set_mylastsessionid(const char* value); - inline void set_mylastsessionid(const void* value, size_t size); - inline ::std::string* mutable_mylastsessionid(); - inline ::std::string* release_mylastsessionid(); - inline void set_allocated_mylastsessionid(::std::string* mylastsessionid); + bool has_mylastsessionid() const; + private: + bool _internal_has_mylastsessionid() const; + public: + void clear_mylastsessionid(); + const std::string& mylastsessionid() const; + void set_mylastsessionid(const std::string& value); + void set_mylastsessionid(std::string&& value); + void set_mylastsessionid(const char* value); + void set_mylastsessionid(const void* value, size_t size); + std::string* mutable_mylastsessionid(); + std::string* release_mylastsessionid(); + void set_allocated_mylastsessionid(std::string* mylastsessionid); + 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_mylastsessionid(); + 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_mylastsessionid( + std::string* mylastsessionid); + private: + const std::string& _internal_mylastsessionid() const; + void _internal_set_mylastsessionid(const std::string& value); + std::string* _internal_mutable_mylastsessionid(); + public: // optional string authServerPassword = 4; - inline bool has_authserverpassword() const; - inline void clear_authserverpassword(); - static const int kAuthServerPasswordFieldNumber = 4; - inline const ::std::string& authserverpassword() const; - inline void set_authserverpassword(const ::std::string& value); - inline void set_authserverpassword(const char* value); - inline void set_authserverpassword(const char* value, size_t size); - inline ::std::string* mutable_authserverpassword(); - inline ::std::string* release_authserverpassword(); - inline void set_allocated_authserverpassword(::std::string* authserverpassword); - - // required .InitMessage.LoginType login = 5; - inline bool has_login() const; - inline void clear_login(); - static const int kLoginFieldNumber = 5; - inline ::InitMessage_LoginType login() const; - inline void set_login(::InitMessage_LoginType value); + bool has_authserverpassword() const; + private: + bool _internal_has_authserverpassword() const; + public: + void clear_authserverpassword(); + const std::string& authserverpassword() const; + void set_authserverpassword(const std::string& value); + void set_authserverpassword(std::string&& value); + void set_authserverpassword(const char* value); + void set_authserverpassword(const char* value, size_t size); + std::string* mutable_authserverpassword(); + std::string* release_authserverpassword(); + void set_allocated_authserverpassword(std::string* authserverpassword); + 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_authserverpassword(); + 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_authserverpassword( + std::string* authserverpassword); + private: + const std::string& _internal_authserverpassword() const; + void _internal_set_authserverpassword(const std::string& value); + std::string* _internal_mutable_authserverpassword(); + public: // optional string nickName = 6; - inline bool has_nickname() const; - inline void clear_nickname(); - static const int kNickNameFieldNumber = 6; - inline const ::std::string& nickname() const; - inline void set_nickname(const ::std::string& value); - inline void set_nickname(const char* value); - inline void set_nickname(const char* value, size_t size); - inline ::std::string* mutable_nickname(); - inline ::std::string* release_nickname(); - inline void set_allocated_nickname(::std::string* nickname); + bool has_nickname() const; + private: + bool _internal_has_nickname() const; + public: + void clear_nickname(); + const std::string& nickname() const; + void set_nickname(const std::string& value); + void set_nickname(std::string&& value); + void set_nickname(const char* value); + void set_nickname(const char* value, size_t size); + std::string* mutable_nickname(); + std::string* release_nickname(); + void set_allocated_nickname(std::string* nickname); + 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_nickname(); + 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_nickname( + std::string* nickname); + private: + const std::string& _internal_nickname() const; + void _internal_set_nickname(const std::string& value); + std::string* _internal_mutable_nickname(); + public: // optional bytes clientUserData = 7; - inline bool has_clientuserdata() const; - inline void clear_clientuserdata(); - static const int kClientUserDataFieldNumber = 7; - inline const ::std::string& clientuserdata() const; - inline void set_clientuserdata(const ::std::string& value); - inline void set_clientuserdata(const char* value); - inline void set_clientuserdata(const void* value, size_t size); - inline ::std::string* mutable_clientuserdata(); - inline ::std::string* release_clientuserdata(); - inline void set_allocated_clientuserdata(::std::string* clientuserdata); + bool has_clientuserdata() const; + private: + bool _internal_has_clientuserdata() const; + public: + void clear_clientuserdata(); + const std::string& clientuserdata() const; + void set_clientuserdata(const std::string& value); + void set_clientuserdata(std::string&& value); + void set_clientuserdata(const char* value); + void set_clientuserdata(const void* value, size_t size); + std::string* mutable_clientuserdata(); + std::string* release_clientuserdata(); + void set_allocated_clientuserdata(std::string* clientuserdata); + 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_clientuserdata(); + 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_clientuserdata( + std::string* clientuserdata); + private: + const std::string& _internal_clientuserdata() const; + void _internal_set_clientuserdata(const std::string& value); + std::string* _internal_mutable_clientuserdata(); + public: // optional bytes avatarHash = 8; - inline bool has_avatarhash() const; - inline void clear_avatarhash(); - static const int kAvatarHashFieldNumber = 8; - inline const ::std::string& avatarhash() const; - inline void set_avatarhash(const ::std::string& value); - inline void set_avatarhash(const char* value); - inline void set_avatarhash(const void* value, size_t size); - inline ::std::string* mutable_avatarhash(); - inline ::std::string* release_avatarhash(); - inline void set_allocated_avatarhash(::std::string* avatarhash); + bool has_avatarhash() const; + private: + bool _internal_has_avatarhash() const; + public: + void clear_avatarhash(); + const std::string& avatarhash() const; + void set_avatarhash(const std::string& value); + void set_avatarhash(std::string&& value); + void set_avatarhash(const char* value); + void set_avatarhash(const void* value, size_t size); + std::string* mutable_avatarhash(); + std::string* release_avatarhash(); + void set_allocated_avatarhash(std::string* avatarhash); + 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_avatarhash(); + 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_avatarhash( + std::string* avatarhash); + private: + const std::string& _internal_avatarhash() const; + void _internal_set_avatarhash(const std::string& value); + std::string* _internal_mutable_avatarhash(); + public: + + // required .AnnounceMessage.Version requestedVersion = 1; + bool has_requestedversion() const; + private: + bool _internal_has_requestedversion() const; + public: + void clear_requestedversion(); + const ::AnnounceMessage_Version& requestedversion() const; + ::AnnounceMessage_Version* release_requestedversion(); + ::AnnounceMessage_Version* mutable_requestedversion(); + void set_allocated_requestedversion(::AnnounceMessage_Version* requestedversion); + private: + const ::AnnounceMessage_Version& _internal_requestedversion() const; + ::AnnounceMessage_Version* _internal_mutable_requestedversion(); + public: + void unsafe_arena_set_allocated_requestedversion( + ::AnnounceMessage_Version* requestedversion); + ::AnnounceMessage_Version* unsafe_arena_release_requestedversion(); + + // required uint32 buildId = 2; + bool has_buildid() const; + private: + bool _internal_has_buildid() const; + public: + void clear_buildid(); + ::PROTOBUF_NAMESPACE_ID::uint32 buildid() const; + void set_buildid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_buildid() const; + void _internal_set_buildid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // required .InitMessage.LoginType login = 5; + bool has_login() const; + private: + bool _internal_has_login() const; + public: + void clear_login(); + ::InitMessage_LoginType login() const; + void set_login(::InitMessage_LoginType value); + private: + ::InitMessage_LoginType _internal_login() const; + void _internal_set_login(::InitMessage_LoginType value); + public: // @@protoc_insertion_point(class_scope:InitMessage) private: - inline void set_has_requestedversion(); - inline void clear_has_requestedversion(); - inline void set_has_buildid(); - inline void clear_has_buildid(); - inline void set_has_mylastsessionid(); - inline void clear_has_mylastsessionid(); - inline void set_has_authserverpassword(); - inline void clear_has_authserverpassword(); - inline void set_has_login(); - inline void clear_has_login(); - inline void set_has_nickname(); - inline void clear_has_nickname(); - inline void set_has_clientuserdata(); - inline void clear_has_clientuserdata(); - inline void set_has_avatarhash(); - inline void clear_has_avatarhash(); + class _Internal; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mylastsessionid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr authserverpassword_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr nickname_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr clientuserdata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr avatarhash_; ::AnnounceMessage_Version* requestedversion_; - ::std::string* mylastsessionid_; - ::google::protobuf::uint32 buildid_; + ::PROTOBUF_NAMESPACE_ID::uint32 buildid_; int login_; - ::std::string* authserverpassword_; - ::std::string* nickname_; - ::std::string* clientuserdata_; - ::std::string* avatarhash_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static InitMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AuthServerChallengeMessage : public ::google::protobuf::MessageLite { +class AuthServerChallengeMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:AuthServerChallengeMessage) */ { public: - AuthServerChallengeMessage(); + inline AuthServerChallengeMessage() : AuthServerChallengeMessage(nullptr) {}; virtual ~AuthServerChallengeMessage(); AuthServerChallengeMessage(const AuthServerChallengeMessage& from); + AuthServerChallengeMessage(AuthServerChallengeMessage&& from) noexcept + : AuthServerChallengeMessage() { + *this = ::std::move(from); + } inline AuthServerChallengeMessage& operator=(const AuthServerChallengeMessage& from) { CopyFrom(from); return *this; } + inline AuthServerChallengeMessage& operator=(AuthServerChallengeMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const AuthServerChallengeMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AuthServerChallengeMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AuthServerChallengeMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 5; - void Swap(AuthServerChallengeMessage* other); + friend void swap(AuthServerChallengeMessage& a, AuthServerChallengeMessage& b) { + a.Swap(&b); + } + inline void Swap(AuthServerChallengeMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AuthServerChallengeMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - AuthServerChallengeMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline AuthServerChallengeMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + AuthServerChallengeMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const AuthServerChallengeMessage& from); void MergeFrom(const AuthServerChallengeMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(AuthServerChallengeMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "AuthServerChallengeMessage"; + } + protected: + explicit AuthServerChallengeMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kServerChallengeFieldNumber = 1, + }; // required bytes serverChallenge = 1; - inline bool has_serverchallenge() const; - inline void clear_serverchallenge(); - static const int kServerChallengeFieldNumber = 1; - inline const ::std::string& serverchallenge() const; - inline void set_serverchallenge(const ::std::string& value); - inline void set_serverchallenge(const char* value); - inline void set_serverchallenge(const void* value, size_t size); - inline ::std::string* mutable_serverchallenge(); - inline ::std::string* release_serverchallenge(); - inline void set_allocated_serverchallenge(::std::string* serverchallenge); + bool has_serverchallenge() const; + private: + bool _internal_has_serverchallenge() const; + public: + void clear_serverchallenge(); + const std::string& serverchallenge() const; + void set_serverchallenge(const std::string& value); + void set_serverchallenge(std::string&& value); + void set_serverchallenge(const char* value); + void set_serverchallenge(const void* value, size_t size); + std::string* mutable_serverchallenge(); + std::string* release_serverchallenge(); + void set_allocated_serverchallenge(std::string* serverchallenge); + 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_serverchallenge(); + 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_serverchallenge( + std::string* serverchallenge); + private: + const std::string& _internal_serverchallenge() const; + void _internal_set_serverchallenge(const std::string& value); + std::string* _internal_mutable_serverchallenge(); + public: // @@protoc_insertion_point(class_scope:AuthServerChallengeMessage) private: - inline void set_has_serverchallenge(); - inline void clear_has_serverchallenge(); + class _Internal; - ::std::string* serverchallenge_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AuthServerChallengeMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr serverchallenge_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AuthClientResponseMessage : public ::google::protobuf::MessageLite { +class AuthClientResponseMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:AuthClientResponseMessage) */ { public: - AuthClientResponseMessage(); + inline AuthClientResponseMessage() : AuthClientResponseMessage(nullptr) {}; virtual ~AuthClientResponseMessage(); AuthClientResponseMessage(const AuthClientResponseMessage& from); + AuthClientResponseMessage(AuthClientResponseMessage&& from) noexcept + : AuthClientResponseMessage() { + *this = ::std::move(from); + } inline AuthClientResponseMessage& operator=(const AuthClientResponseMessage& from) { CopyFrom(from); return *this; } + inline AuthClientResponseMessage& operator=(AuthClientResponseMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const AuthClientResponseMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AuthClientResponseMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AuthClientResponseMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 6; - void Swap(AuthClientResponseMessage* other); + friend void swap(AuthClientResponseMessage& a, AuthClientResponseMessage& b) { + a.Swap(&b); + } + inline void Swap(AuthClientResponseMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AuthClientResponseMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - AuthClientResponseMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline AuthClientResponseMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + AuthClientResponseMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const AuthClientResponseMessage& from); void MergeFrom(const AuthClientResponseMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(AuthClientResponseMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "AuthClientResponseMessage"; + } + protected: + explicit AuthClientResponseMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kClientResponseFieldNumber = 1, + }; // required bytes clientResponse = 1; - inline bool has_clientresponse() const; - inline void clear_clientresponse(); - static const int kClientResponseFieldNumber = 1; - inline const ::std::string& clientresponse() const; - inline void set_clientresponse(const ::std::string& value); - inline void set_clientresponse(const char* value); - inline void set_clientresponse(const void* value, size_t size); - inline ::std::string* mutable_clientresponse(); - inline ::std::string* release_clientresponse(); - inline void set_allocated_clientresponse(::std::string* clientresponse); + bool has_clientresponse() const; + private: + bool _internal_has_clientresponse() const; + public: + void clear_clientresponse(); + const std::string& clientresponse() const; + void set_clientresponse(const std::string& value); + void set_clientresponse(std::string&& value); + void set_clientresponse(const char* value); + void set_clientresponse(const void* value, size_t size); + std::string* mutable_clientresponse(); + std::string* release_clientresponse(); + void set_allocated_clientresponse(std::string* clientresponse); + 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_clientresponse(); + 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_clientresponse( + std::string* clientresponse); + private: + const std::string& _internal_clientresponse() const; + void _internal_set_clientresponse(const std::string& value); + std::string* _internal_mutable_clientresponse(); + public: // @@protoc_insertion_point(class_scope:AuthClientResponseMessage) private: - inline void set_has_clientresponse(); - inline void clear_has_clientresponse(); + class _Internal; - ::std::string* clientresponse_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AuthClientResponseMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr clientresponse_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AuthServerVerificationMessage : public ::google::protobuf::MessageLite { +class AuthServerVerificationMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:AuthServerVerificationMessage) */ { public: - AuthServerVerificationMessage(); + inline AuthServerVerificationMessage() : AuthServerVerificationMessage(nullptr) {}; virtual ~AuthServerVerificationMessage(); AuthServerVerificationMessage(const AuthServerVerificationMessage& from); + AuthServerVerificationMessage(AuthServerVerificationMessage&& from) noexcept + : AuthServerVerificationMessage() { + *this = ::std::move(from); + } inline AuthServerVerificationMessage& operator=(const AuthServerVerificationMessage& from) { CopyFrom(from); return *this; } + inline AuthServerVerificationMessage& operator=(AuthServerVerificationMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const AuthServerVerificationMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AuthServerVerificationMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AuthServerVerificationMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 7; - void Swap(AuthServerVerificationMessage* other); + friend void swap(AuthServerVerificationMessage& a, AuthServerVerificationMessage& b) { + a.Swap(&b); + } + inline void Swap(AuthServerVerificationMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AuthServerVerificationMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - AuthServerVerificationMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline AuthServerVerificationMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + AuthServerVerificationMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const AuthServerVerificationMessage& from); void MergeFrom(const AuthServerVerificationMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(AuthServerVerificationMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "AuthServerVerificationMessage"; + } + protected: + explicit AuthServerVerificationMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kServerVerificationFieldNumber = 1, + }; // required bytes serverVerification = 1; - inline bool has_serververification() const; - inline void clear_serververification(); - static const int kServerVerificationFieldNumber = 1; - inline const ::std::string& serververification() const; - inline void set_serververification(const ::std::string& value); - inline void set_serververification(const char* value); - inline void set_serververification(const void* value, size_t size); - inline ::std::string* mutable_serververification(); - inline ::std::string* release_serververification(); - inline void set_allocated_serververification(::std::string* serververification); + bool has_serververification() const; + private: + bool _internal_has_serververification() const; + public: + void clear_serververification(); + const std::string& serververification() const; + void set_serververification(const std::string& value); + void set_serververification(std::string&& value); + void set_serververification(const char* value); + void set_serververification(const void* value, size_t size); + std::string* mutable_serververification(); + std::string* release_serververification(); + void set_allocated_serververification(std::string* serververification); + 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_serververification(); + 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_serververification( + std::string* serververification); + private: + const std::string& _internal_serververification() const; + void _internal_set_serververification(const std::string& value); + std::string* _internal_mutable_serververification(); + public: // @@protoc_insertion_point(class_scope:AuthServerVerificationMessage) private: - inline void set_has_serververification(); - inline void clear_has_serververification(); + class _Internal; - ::std::string* serververification_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AuthServerVerificationMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr serververification_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class InitAckMessage : public ::google::protobuf::MessageLite { +class InitAckMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:InitAckMessage) */ { public: - InitAckMessage(); + inline InitAckMessage() : InitAckMessage(nullptr) {}; virtual ~InitAckMessage(); InitAckMessage(const InitAckMessage& from); + InitAckMessage(InitAckMessage&& from) noexcept + : InitAckMessage() { + *this = ::std::move(from); + } inline InitAckMessage& operator=(const InitAckMessage& from) { CopyFrom(from); return *this; } + inline InitAckMessage& operator=(InitAckMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const InitAckMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const InitAckMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_InitAckMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 8; - void Swap(InitAckMessage* other); + friend void swap(InitAckMessage& a, InitAckMessage& b) { + a.Swap(&b); + } + inline void Swap(InitAckMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(InitAckMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - InitAckMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline InitAckMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + InitAckMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const InitAckMessage& from); void MergeFrom(const InitAckMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(InitAckMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "InitAckMessage"; + } + protected: + explicit InitAckMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kYourSessionIdFieldNumber = 1, + kYourAvatarHashFieldNumber = 3, + kYourPlayerIdFieldNumber = 2, + kRejoinGameIdFieldNumber = 4, + }; // required bytes yourSessionId = 1; - inline bool has_yoursessionid() const; - inline void clear_yoursessionid(); - static const int kYourSessionIdFieldNumber = 1; - inline const ::std::string& yoursessionid() const; - inline void set_yoursessionid(const ::std::string& value); - inline void set_yoursessionid(const char* value); - inline void set_yoursessionid(const void* value, size_t size); - inline ::std::string* mutable_yoursessionid(); - inline ::std::string* release_yoursessionid(); - inline void set_allocated_yoursessionid(::std::string* yoursessionid); - - // required uint32 yourPlayerId = 2; - inline bool has_yourplayerid() const; - inline void clear_yourplayerid(); - static const int kYourPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 yourplayerid() const; - inline void set_yourplayerid(::google::protobuf::uint32 value); + bool has_yoursessionid() const; + private: + bool _internal_has_yoursessionid() const; + public: + void clear_yoursessionid(); + const std::string& yoursessionid() const; + void set_yoursessionid(const std::string& value); + void set_yoursessionid(std::string&& value); + void set_yoursessionid(const char* value); + void set_yoursessionid(const void* value, size_t size); + std::string* mutable_yoursessionid(); + std::string* release_yoursessionid(); + void set_allocated_yoursessionid(std::string* yoursessionid); + 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_yoursessionid(); + 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_yoursessionid( + std::string* yoursessionid); + private: + const std::string& _internal_yoursessionid() const; + void _internal_set_yoursessionid(const std::string& value); + std::string* _internal_mutable_yoursessionid(); + public: // optional bytes yourAvatarHash = 3; - inline bool has_youravatarhash() const; - inline void clear_youravatarhash(); - static const int kYourAvatarHashFieldNumber = 3; - inline const ::std::string& youravatarhash() const; - inline void set_youravatarhash(const ::std::string& value); - inline void set_youravatarhash(const char* value); - inline void set_youravatarhash(const void* value, size_t size); - inline ::std::string* mutable_youravatarhash(); - inline ::std::string* release_youravatarhash(); - inline void set_allocated_youravatarhash(::std::string* youravatarhash); + bool has_youravatarhash() const; + private: + bool _internal_has_youravatarhash() const; + public: + void clear_youravatarhash(); + const std::string& youravatarhash() const; + void set_youravatarhash(const std::string& value); + void set_youravatarhash(std::string&& value); + void set_youravatarhash(const char* value); + void set_youravatarhash(const void* value, size_t size); + std::string* mutable_youravatarhash(); + std::string* release_youravatarhash(); + void set_allocated_youravatarhash(std::string* youravatarhash); + 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_youravatarhash(); + 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_youravatarhash( + std::string* youravatarhash); + private: + const std::string& _internal_youravatarhash() const; + void _internal_set_youravatarhash(const std::string& value); + std::string* _internal_mutable_youravatarhash(); + public: + + // required uint32 yourPlayerId = 2; + bool has_yourplayerid() const; + private: + bool _internal_has_yourplayerid() const; + public: + void clear_yourplayerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 yourplayerid() const; + void set_yourplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_yourplayerid() const; + void _internal_set_yourplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // optional uint32 rejoinGameId = 4; - inline bool has_rejoingameid() const; - inline void clear_rejoingameid(); - static const int kRejoinGameIdFieldNumber = 4; - inline ::google::protobuf::uint32 rejoingameid() const; - inline void set_rejoingameid(::google::protobuf::uint32 value); + bool has_rejoingameid() const; + private: + bool _internal_has_rejoingameid() const; + public: + void clear_rejoingameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 rejoingameid() const; + void set_rejoingameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_rejoingameid() const; + void _internal_set_rejoingameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:InitAckMessage) private: - inline void set_has_yoursessionid(); - inline void clear_has_yoursessionid(); - inline void set_has_yourplayerid(); - inline void clear_has_yourplayerid(); - inline void set_has_youravatarhash(); - inline void clear_has_youravatarhash(); - inline void set_has_rejoingameid(); - inline void clear_has_rejoingameid(); + class _Internal; - ::std::string* yoursessionid_; - ::std::string* youravatarhash_; - ::google::protobuf::uint32 yourplayerid_; - ::google::protobuf::uint32 rejoingameid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static InitAckMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr yoursessionid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr youravatarhash_; + ::PROTOBUF_NAMESPACE_ID::uint32 yourplayerid_; + ::PROTOBUF_NAMESPACE_ID::uint32 rejoingameid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AvatarRequestMessage : public ::google::protobuf::MessageLite { +class AvatarRequestMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:AvatarRequestMessage) */ { public: - AvatarRequestMessage(); + inline AvatarRequestMessage() : AvatarRequestMessage(nullptr) {}; virtual ~AvatarRequestMessage(); AvatarRequestMessage(const AvatarRequestMessage& from); + AvatarRequestMessage(AvatarRequestMessage&& from) noexcept + : AvatarRequestMessage() { + *this = ::std::move(from); + } inline AvatarRequestMessage& operator=(const AvatarRequestMessage& from) { CopyFrom(from); return *this; } + inline AvatarRequestMessage& operator=(AvatarRequestMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const AvatarRequestMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AvatarRequestMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AvatarRequestMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 9; - void Swap(AvatarRequestMessage* other); + friend void swap(AvatarRequestMessage& a, AvatarRequestMessage& b) { + a.Swap(&b); + } + inline void Swap(AvatarRequestMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AvatarRequestMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - AvatarRequestMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline AvatarRequestMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + AvatarRequestMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const AvatarRequestMessage& from); void MergeFrom(const AvatarRequestMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(AvatarRequestMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "AvatarRequestMessage"; + } + protected: + explicit AvatarRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required uint32 requestId = 1; - inline bool has_requestid() const; - inline void clear_requestid(); - static const int kRequestIdFieldNumber = 1; - inline ::google::protobuf::uint32 requestid() const; - inline void set_requestid(::google::protobuf::uint32 value); - + enum : int { + kAvatarHashFieldNumber = 2, + kRequestIdFieldNumber = 1, + }; // required bytes avatarHash = 2; - inline bool has_avatarhash() const; - inline void clear_avatarhash(); - static const int kAvatarHashFieldNumber = 2; - inline const ::std::string& avatarhash() const; - inline void set_avatarhash(const ::std::string& value); - inline void set_avatarhash(const char* value); - inline void set_avatarhash(const void* value, size_t size); - inline ::std::string* mutable_avatarhash(); - inline ::std::string* release_avatarhash(); - inline void set_allocated_avatarhash(::std::string* avatarhash); + bool has_avatarhash() const; + private: + bool _internal_has_avatarhash() const; + public: + void clear_avatarhash(); + const std::string& avatarhash() const; + void set_avatarhash(const std::string& value); + void set_avatarhash(std::string&& value); + void set_avatarhash(const char* value); + void set_avatarhash(const void* value, size_t size); + std::string* mutable_avatarhash(); + std::string* release_avatarhash(); + void set_allocated_avatarhash(std::string* avatarhash); + 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_avatarhash(); + 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_avatarhash( + std::string* avatarhash); + private: + const std::string& _internal_avatarhash() const; + void _internal_set_avatarhash(const std::string& value); + std::string* _internal_mutable_avatarhash(); + public: + + // required uint32 requestId = 1; + bool has_requestid() const; + private: + bool _internal_has_requestid() const; + public: + void clear_requestid(); + ::PROTOBUF_NAMESPACE_ID::uint32 requestid() const; + void set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_requestid() const; + void _internal_set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:AvatarRequestMessage) private: - inline void set_has_requestid(); - inline void clear_has_requestid(); - inline void set_has_avatarhash(); - inline void clear_has_avatarhash(); + class _Internal; - ::std::string* avatarhash_; - ::google::protobuf::uint32 requestid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AvatarRequestMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr avatarhash_; + ::PROTOBUF_NAMESPACE_ID::uint32 requestid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AvatarHeaderMessage : public ::google::protobuf::MessageLite { +class AvatarHeaderMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:AvatarHeaderMessage) */ { public: - AvatarHeaderMessage(); + inline AvatarHeaderMessage() : AvatarHeaderMessage(nullptr) {}; virtual ~AvatarHeaderMessage(); AvatarHeaderMessage(const AvatarHeaderMessage& from); + AvatarHeaderMessage(AvatarHeaderMessage&& from) noexcept + : AvatarHeaderMessage() { + *this = ::std::move(from); + } inline AvatarHeaderMessage& operator=(const AvatarHeaderMessage& from) { CopyFrom(from); return *this; } + inline AvatarHeaderMessage& operator=(AvatarHeaderMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const AvatarHeaderMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AvatarHeaderMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AvatarHeaderMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 10; - void Swap(AvatarHeaderMessage* other); + friend void swap(AvatarHeaderMessage& a, AvatarHeaderMessage& b) { + a.Swap(&b); + } + inline void Swap(AvatarHeaderMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AvatarHeaderMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - AvatarHeaderMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline AvatarHeaderMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + AvatarHeaderMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const AvatarHeaderMessage& from); void MergeFrom(const AvatarHeaderMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(AvatarHeaderMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "AvatarHeaderMessage"; + } + protected: + explicit AvatarHeaderMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kRequestIdFieldNumber = 1, + kAvatarSizeFieldNumber = 3, + kAvatarTypeFieldNumber = 2, + }; // required uint32 requestId = 1; - inline bool has_requestid() const; - inline void clear_requestid(); - static const int kRequestIdFieldNumber = 1; - inline ::google::protobuf::uint32 requestid() const; - inline void set_requestid(::google::protobuf::uint32 value); - - // required .NetAvatarType avatarType = 2; - inline bool has_avatartype() const; - inline void clear_avatartype(); - static const int kAvatarTypeFieldNumber = 2; - inline ::NetAvatarType avatartype() const; - inline void set_avatartype(::NetAvatarType value); + bool has_requestid() const; + private: + bool _internal_has_requestid() const; + public: + void clear_requestid(); + ::PROTOBUF_NAMESPACE_ID::uint32 requestid() const; + void set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_requestid() const; + void _internal_set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 avatarSize = 3; - inline bool has_avatarsize() const; - inline void clear_avatarsize(); - static const int kAvatarSizeFieldNumber = 3; - inline ::google::protobuf::uint32 avatarsize() const; - inline void set_avatarsize(::google::protobuf::uint32 value); + bool has_avatarsize() const; + private: + bool _internal_has_avatarsize() const; + public: + void clear_avatarsize(); + ::PROTOBUF_NAMESPACE_ID::uint32 avatarsize() const; + void set_avatarsize(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_avatarsize() const; + void _internal_set_avatarsize(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // required .NetAvatarType avatarType = 2; + bool has_avatartype() const; + private: + bool _internal_has_avatartype() const; + public: + void clear_avatartype(); + ::NetAvatarType avatartype() const; + void set_avatartype(::NetAvatarType value); + private: + ::NetAvatarType _internal_avatartype() const; + void _internal_set_avatartype(::NetAvatarType value); + public: // @@protoc_insertion_point(class_scope:AvatarHeaderMessage) private: - inline void set_has_requestid(); - inline void clear_has_requestid(); - inline void set_has_avatartype(); - inline void clear_has_avatartype(); - inline void set_has_avatarsize(); - inline void clear_has_avatarsize(); + class _Internal; - ::google::protobuf::uint32 requestid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 requestid_; + ::PROTOBUF_NAMESPACE_ID::uint32 avatarsize_; int avatartype_; - ::google::protobuf::uint32 avatarsize_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AvatarHeaderMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AvatarDataMessage : public ::google::protobuf::MessageLite { +class AvatarDataMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:AvatarDataMessage) */ { public: - AvatarDataMessage(); + inline AvatarDataMessage() : AvatarDataMessage(nullptr) {}; virtual ~AvatarDataMessage(); AvatarDataMessage(const AvatarDataMessage& from); + AvatarDataMessage(AvatarDataMessage&& from) noexcept + : AvatarDataMessage() { + *this = ::std::move(from); + } inline AvatarDataMessage& operator=(const AvatarDataMessage& from) { CopyFrom(from); return *this; } + inline AvatarDataMessage& operator=(AvatarDataMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const AvatarDataMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AvatarDataMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AvatarDataMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 11; - void Swap(AvatarDataMessage* other); + friend void swap(AvatarDataMessage& a, AvatarDataMessage& b) { + a.Swap(&b); + } + inline void Swap(AvatarDataMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AvatarDataMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - AvatarDataMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline AvatarDataMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + AvatarDataMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const AvatarDataMessage& from); void MergeFrom(const AvatarDataMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(AvatarDataMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "AvatarDataMessage"; + } + protected: + explicit AvatarDataMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required uint32 requestId = 1; - inline bool has_requestid() const; - inline void clear_requestid(); - static const int kRequestIdFieldNumber = 1; - inline ::google::protobuf::uint32 requestid() const; - inline void set_requestid(::google::protobuf::uint32 value); - + enum : int { + kAvatarBlockFieldNumber = 2, + kRequestIdFieldNumber = 1, + }; // required bytes avatarBlock = 2; - inline bool has_avatarblock() const; - inline void clear_avatarblock(); - static const int kAvatarBlockFieldNumber = 2; - inline const ::std::string& avatarblock() const; - inline void set_avatarblock(const ::std::string& value); - inline void set_avatarblock(const char* value); - inline void set_avatarblock(const void* value, size_t size); - inline ::std::string* mutable_avatarblock(); - inline ::std::string* release_avatarblock(); - inline void set_allocated_avatarblock(::std::string* avatarblock); + bool has_avatarblock() const; + private: + bool _internal_has_avatarblock() const; + public: + void clear_avatarblock(); + const std::string& avatarblock() const; + void set_avatarblock(const std::string& value); + void set_avatarblock(std::string&& value); + void set_avatarblock(const char* value); + void set_avatarblock(const void* value, size_t size); + std::string* mutable_avatarblock(); + std::string* release_avatarblock(); + void set_allocated_avatarblock(std::string* avatarblock); + 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_avatarblock(); + 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_avatarblock( + std::string* avatarblock); + private: + const std::string& _internal_avatarblock() const; + void _internal_set_avatarblock(const std::string& value); + std::string* _internal_mutable_avatarblock(); + public: + + // required uint32 requestId = 1; + bool has_requestid() const; + private: + bool _internal_has_requestid() const; + public: + void clear_requestid(); + ::PROTOBUF_NAMESPACE_ID::uint32 requestid() const; + void set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_requestid() const; + void _internal_set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:AvatarDataMessage) private: - inline void set_has_requestid(); - inline void clear_has_requestid(); - inline void set_has_avatarblock(); - inline void clear_has_avatarblock(); + class _Internal; - ::std::string* avatarblock_; - ::google::protobuf::uint32 requestid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AvatarDataMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr avatarblock_; + ::PROTOBUF_NAMESPACE_ID::uint32 requestid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AvatarEndMessage : public ::google::protobuf::MessageLite { +class AvatarEndMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:AvatarEndMessage) */ { public: - AvatarEndMessage(); + inline AvatarEndMessage() : AvatarEndMessage(nullptr) {}; virtual ~AvatarEndMessage(); AvatarEndMessage(const AvatarEndMessage& from); + AvatarEndMessage(AvatarEndMessage&& from) noexcept + : AvatarEndMessage() { + *this = ::std::move(from); + } inline AvatarEndMessage& operator=(const AvatarEndMessage& from) { CopyFrom(from); return *this; } + inline AvatarEndMessage& operator=(AvatarEndMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const AvatarEndMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AvatarEndMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AvatarEndMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 12; - void Swap(AvatarEndMessage* other); + friend void swap(AvatarEndMessage& a, AvatarEndMessage& b) { + a.Swap(&b); + } + inline void Swap(AvatarEndMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AvatarEndMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - AvatarEndMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline AvatarEndMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + AvatarEndMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const AvatarEndMessage& from); void MergeFrom(const AvatarEndMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(AvatarEndMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "AvatarEndMessage"; + } + protected: + explicit AvatarEndMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kRequestIdFieldNumber = 1, + }; // required uint32 requestId = 1; - inline bool has_requestid() const; - inline void clear_requestid(); - static const int kRequestIdFieldNumber = 1; - inline ::google::protobuf::uint32 requestid() const; - inline void set_requestid(::google::protobuf::uint32 value); + bool has_requestid() const; + private: + bool _internal_has_requestid() const; + public: + void clear_requestid(); + ::PROTOBUF_NAMESPACE_ID::uint32 requestid() const; + void set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_requestid() const; + void _internal_set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:AvatarEndMessage) private: - inline void set_has_requestid(); - inline void clear_has_requestid(); + class _Internal; - ::google::protobuf::uint32 requestid_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AvatarEndMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 requestid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class UnknownAvatarMessage : public ::google::protobuf::MessageLite { +class UnknownAvatarMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:UnknownAvatarMessage) */ { public: - UnknownAvatarMessage(); + inline UnknownAvatarMessage() : UnknownAvatarMessage(nullptr) {}; virtual ~UnknownAvatarMessage(); UnknownAvatarMessage(const UnknownAvatarMessage& from); + UnknownAvatarMessage(UnknownAvatarMessage&& from) noexcept + : UnknownAvatarMessage() { + *this = ::std::move(from); + } inline UnknownAvatarMessage& operator=(const UnknownAvatarMessage& from) { CopyFrom(from); return *this; } + inline UnknownAvatarMessage& operator=(UnknownAvatarMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const UnknownAvatarMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const UnknownAvatarMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_UnknownAvatarMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 13; - void Swap(UnknownAvatarMessage* other); + friend void swap(UnknownAvatarMessage& a, UnknownAvatarMessage& b) { + a.Swap(&b); + } + inline void Swap(UnknownAvatarMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(UnknownAvatarMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - UnknownAvatarMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline UnknownAvatarMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + UnknownAvatarMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const UnknownAvatarMessage& from); void MergeFrom(const UnknownAvatarMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(UnknownAvatarMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "UnknownAvatarMessage"; + } + protected: + explicit UnknownAvatarMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kRequestIdFieldNumber = 1, + }; // required uint32 requestId = 1; - inline bool has_requestid() const; - inline void clear_requestid(); - static const int kRequestIdFieldNumber = 1; - inline ::google::protobuf::uint32 requestid() const; - inline void set_requestid(::google::protobuf::uint32 value); + bool has_requestid() const; + private: + bool _internal_has_requestid() const; + public: + void clear_requestid(); + ::PROTOBUF_NAMESPACE_ID::uint32 requestid() const; + void set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_requestid() const; + void _internal_set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:UnknownAvatarMessage) private: - inline void set_has_requestid(); - inline void clear_has_requestid(); + class _Internal; - ::google::protobuf::uint32 requestid_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static UnknownAvatarMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 requestid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class PlayerListMessage : public ::google::protobuf::MessageLite { +class PlayerListMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:PlayerListMessage) */ { public: - PlayerListMessage(); + inline PlayerListMessage() : PlayerListMessage(nullptr) {}; virtual ~PlayerListMessage(); PlayerListMessage(const PlayerListMessage& from); + PlayerListMessage(PlayerListMessage&& from) noexcept + : PlayerListMessage() { + *this = ::std::move(from); + } inline PlayerListMessage& operator=(const PlayerListMessage& from) { CopyFrom(from); return *this; } + inline PlayerListMessage& operator=(PlayerListMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const PlayerListMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PlayerListMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_PlayerListMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 14; - void Swap(PlayerListMessage* other); + friend void swap(PlayerListMessage& a, PlayerListMessage& b) { + a.Swap(&b); + } + inline void Swap(PlayerListMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PlayerListMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - PlayerListMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline PlayerListMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + PlayerListMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const PlayerListMessage& from); void MergeFrom(const PlayerListMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(PlayerListMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "PlayerListMessage"; + } + protected: + explicit PlayerListMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef PlayerListMessage_PlayerListNotification PlayerListNotification; - static const PlayerListNotification playerListNew = PlayerListMessage_PlayerListNotification_playerListNew; - static const PlayerListNotification playerListLeft = PlayerListMessage_PlayerListNotification_playerListLeft; + static constexpr PlayerListNotification playerListNew = + PlayerListMessage_PlayerListNotification_playerListNew; + static constexpr PlayerListNotification playerListLeft = + PlayerListMessage_PlayerListNotification_playerListLeft; static inline bool PlayerListNotification_IsValid(int value) { return PlayerListMessage_PlayerListNotification_IsValid(value); } - static const PlayerListNotification PlayerListNotification_MIN = + static constexpr PlayerListNotification PlayerListNotification_MIN = PlayerListMessage_PlayerListNotification_PlayerListNotification_MIN; - static const PlayerListNotification PlayerListNotification_MAX = + static constexpr PlayerListNotification PlayerListNotification_MAX = PlayerListMessage_PlayerListNotification_PlayerListNotification_MAX; - static const int PlayerListNotification_ARRAYSIZE = + static constexpr int PlayerListNotification_ARRAYSIZE = PlayerListMessage_PlayerListNotification_PlayerListNotification_ARRAYSIZE; + template + static inline const std::string& PlayerListNotification_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PlayerListNotification_Name."); + return PlayerListMessage_PlayerListNotification_Name(enum_t_value); + } + static inline bool PlayerListNotification_Parse(const std::string& name, + PlayerListNotification* value) { + return PlayerListMessage_PlayerListNotification_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kPlayerIdFieldNumber = 1, + kPlayerListNotificationFieldNumber = 2, + }; // required uint32 playerId = 1; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - inline bool has_playerlistnotification() const; - inline void clear_playerlistnotification(); - static const int kPlayerListNotificationFieldNumber = 2; - inline ::PlayerListMessage_PlayerListNotification playerlistnotification() const; - inline void set_playerlistnotification(::PlayerListMessage_PlayerListNotification value); + bool has_playerlistnotification() const; + private: + bool _internal_has_playerlistnotification() const; + public: + void clear_playerlistnotification(); + ::PlayerListMessage_PlayerListNotification playerlistnotification() const; + void set_playerlistnotification(::PlayerListMessage_PlayerListNotification value); + private: + ::PlayerListMessage_PlayerListNotification _internal_playerlistnotification() const; + void _internal_set_playerlistnotification(::PlayerListMessage_PlayerListNotification value); + public: // @@protoc_insertion_point(class_scope:PlayerListMessage) private: - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_playerlistnotification(); - inline void clear_has_playerlistnotification(); + class _Internal; - ::google::protobuf::uint32 playerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; int playerlistnotification_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static PlayerListMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameListNewMessage : public ::google::protobuf::MessageLite { +class GameListNewMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GameListNewMessage) */ { public: - GameListNewMessage(); + inline GameListNewMessage() : GameListNewMessage(nullptr) {}; virtual ~GameListNewMessage(); GameListNewMessage(const GameListNewMessage& from); + GameListNewMessage(GameListNewMessage&& from) noexcept + : GameListNewMessage() { + *this = ::std::move(from); + } inline GameListNewMessage& operator=(const GameListNewMessage& from) { CopyFrom(from); return *this; } + inline GameListNewMessage& operator=(GameListNewMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const GameListNewMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameListNewMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameListNewMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 15; - void Swap(GameListNewMessage* other); + friend void swap(GameListNewMessage& a, GameListNewMessage& b) { + a.Swap(&b); + } + inline void Swap(GameListNewMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GameListNewMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - GameListNewMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline GameListNewMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + GameListNewMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const GameListNewMessage& from); void MergeFrom(const GameListNewMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(GameListNewMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "GameListNewMessage"; + } + protected: + explicit GameListNewMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); - - // required .NetGameMode gameMode = 2; - inline bool has_gamemode() const; - inline void clear_gamemode(); - static const int kGameModeFieldNumber = 2; - inline ::NetGameMode gamemode() const; - inline void set_gamemode(::NetGameMode value); - - // required bool isPrivate = 3; - inline bool has_isprivate() const; - inline void clear_isprivate(); - static const int kIsPrivateFieldNumber = 3; - inline bool isprivate() const; - inline void set_isprivate(bool value); - + enum : int { + kPlayerIdsFieldNumber = 4, + kSpectatorIdsFieldNumber = 7, + kGameInfoFieldNumber = 6, + kGameIdFieldNumber = 1, + kIsPrivateFieldNumber = 3, + kAdminPlayerIdFieldNumber = 5, + kGameModeFieldNumber = 2, + }; // repeated uint32 playerIds = 4 [packed = true]; - inline int playerids_size() const; - inline void clear_playerids(); - static const int kPlayerIdsFieldNumber = 4; - inline ::google::protobuf::uint32 playerids(int index) const; - inline void set_playerids(int index, ::google::protobuf::uint32 value); - inline void add_playerids(::google::protobuf::uint32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + int playerids_size() const; + private: + int _internal_playerids_size() const; + public: + void clear_playerids(); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerids(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& + _internal_playerids() const; + void _internal_add_playerids(::PROTOBUF_NAMESPACE_ID::uint32 value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* + _internal_mutable_playerids(); + public: + ::PROTOBUF_NAMESPACE_ID::uint32 playerids(int index) const; + void set_playerids(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value); + void add_playerids(::PROTOBUF_NAMESPACE_ID::uint32 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& playerids() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* mutable_playerids(); - // required uint32 adminPlayerId = 5; - inline bool has_adminplayerid() const; - inline void clear_adminplayerid(); - static const int kAdminPlayerIdFieldNumber = 5; - inline ::google::protobuf::uint32 adminplayerid() const; - inline void set_adminplayerid(::google::protobuf::uint32 value); + // repeated uint32 spectatorIds = 7 [packed = true]; + int spectatorids_size() const; + private: + int _internal_spectatorids_size() const; + public: + void clear_spectatorids(); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_spectatorids(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& + _internal_spectatorids() const; + void _internal_add_spectatorids(::PROTOBUF_NAMESPACE_ID::uint32 value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* + _internal_mutable_spectatorids(); + public: + ::PROTOBUF_NAMESPACE_ID::uint32 spectatorids(int index) const; + void set_spectatorids(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value); + void add_spectatorids(::PROTOBUF_NAMESPACE_ID::uint32 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& + spectatorids() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* + mutable_spectatorids(); // required .NetGameInfo gameInfo = 6; - inline bool has_gameinfo() const; - inline void clear_gameinfo(); - static const int kGameInfoFieldNumber = 6; - inline const ::NetGameInfo& gameinfo() const; - inline ::NetGameInfo* mutable_gameinfo(); - inline ::NetGameInfo* release_gameinfo(); - inline void set_allocated_gameinfo(::NetGameInfo* gameinfo); + bool has_gameinfo() const; + private: + bool _internal_has_gameinfo() const; + public: + void clear_gameinfo(); + const ::NetGameInfo& gameinfo() const; + ::NetGameInfo* release_gameinfo(); + ::NetGameInfo* mutable_gameinfo(); + void set_allocated_gameinfo(::NetGameInfo* gameinfo); + private: + const ::NetGameInfo& _internal_gameinfo() const; + ::NetGameInfo* _internal_mutable_gameinfo(); + public: + void unsafe_arena_set_allocated_gameinfo( + ::NetGameInfo* gameinfo); + ::NetGameInfo* unsafe_arena_release_gameinfo(); - // repeated uint32 spectatorIds = 7 [packed = true]; - inline int spectatorids_size() const; - inline void clear_spectatorids(); - static const int kSpectatorIdsFieldNumber = 7; - inline ::google::protobuf::uint32 spectatorids(int index) const; - inline void set_spectatorids(int index, ::google::protobuf::uint32 value); - inline void add_spectatorids(::google::protobuf::uint32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - spectatorids() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_spectatorids(); + // required uint32 gameId = 1; + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // required bool isPrivate = 3; + bool has_isprivate() const; + private: + bool _internal_has_isprivate() const; + public: + void clear_isprivate(); + bool isprivate() const; + void set_isprivate(bool value); + private: + bool _internal_isprivate() const; + void _internal_set_isprivate(bool value); + public: + + // required uint32 adminPlayerId = 5; + bool has_adminplayerid() const; + private: + bool _internal_has_adminplayerid() const; + public: + void clear_adminplayerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 adminplayerid() const; + void set_adminplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_adminplayerid() const; + void _internal_set_adminplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // required .NetGameMode gameMode = 2; + bool has_gamemode() const; + private: + bool _internal_has_gamemode() const; + public: + void clear_gamemode(); + ::NetGameMode gamemode() const; + void set_gamemode(::NetGameMode value); + private: + ::NetGameMode _internal_gamemode() const; + void _internal_set_gamemode(::NetGameMode value); + public: // @@protoc_insertion_point(class_scope:GameListNewMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_gamemode(); - inline void clear_has_gamemode(); - inline void set_has_isprivate(); - inline void clear_has_isprivate(); - inline void set_has_adminplayerid(); - inline void clear_has_adminplayerid(); - inline void set_has_gameinfo(); - inline void clear_has_gameinfo(); + class _Internal; - ::google::protobuf::uint32 gameid_; - int gamemode_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > playerids_; - mutable int _playerids_cached_byte_size_; - bool isprivate_; - ::google::protobuf::uint32 adminplayerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 > playerids_; + mutable std::atomic _playerids_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 > spectatorids_; + mutable std::atomic _spectatorids_cached_byte_size_; ::NetGameInfo* gameinfo_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > spectatorids_; - mutable int _spectatorids_cached_byte_size_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameListNewMessage* default_instance_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + bool isprivate_; + ::PROTOBUF_NAMESPACE_ID::uint32 adminplayerid_; + int gamemode_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameListUpdateMessage : public ::google::protobuf::MessageLite { +class GameListUpdateMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GameListUpdateMessage) */ { public: - GameListUpdateMessage(); + inline GameListUpdateMessage() : GameListUpdateMessage(nullptr) {}; virtual ~GameListUpdateMessage(); GameListUpdateMessage(const GameListUpdateMessage& from); + GameListUpdateMessage(GameListUpdateMessage&& from) noexcept + : GameListUpdateMessage() { + *this = ::std::move(from); + } inline GameListUpdateMessage& operator=(const GameListUpdateMessage& from) { CopyFrom(from); return *this; } + inline GameListUpdateMessage& operator=(GameListUpdateMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const GameListUpdateMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameListUpdateMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameListUpdateMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 16; - void Swap(GameListUpdateMessage* other); + friend void swap(GameListUpdateMessage& a, GameListUpdateMessage& b) { + a.Swap(&b); + } + inline void Swap(GameListUpdateMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GameListUpdateMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - GameListUpdateMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline GameListUpdateMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + GameListUpdateMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const GameListUpdateMessage& from); void MergeFrom(const GameListUpdateMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(GameListUpdateMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "GameListUpdateMessage"; + } + protected: + explicit GameListUpdateMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kGameModeFieldNumber = 2, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .NetGameMode gameMode = 2; - inline bool has_gamemode() const; - inline void clear_gamemode(); - static const int kGameModeFieldNumber = 2; - inline ::NetGameMode gamemode() const; - inline void set_gamemode(::NetGameMode value); + bool has_gamemode() const; + private: + bool _internal_has_gamemode() const; + public: + void clear_gamemode(); + ::NetGameMode gamemode() const; + void set_gamemode(::NetGameMode value); + private: + ::NetGameMode _internal_gamemode() const; + void _internal_set_gamemode(::NetGameMode value); + public: // @@protoc_insertion_point(class_scope:GameListUpdateMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_gamemode(); - inline void clear_has_gamemode(); + class _Internal; - ::google::protobuf::uint32 gameid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; int gamemode_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameListUpdateMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameListPlayerJoinedMessage : public ::google::protobuf::MessageLite { +class GameListPlayerJoinedMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GameListPlayerJoinedMessage) */ { public: - GameListPlayerJoinedMessage(); + inline GameListPlayerJoinedMessage() : GameListPlayerJoinedMessage(nullptr) {}; virtual ~GameListPlayerJoinedMessage(); GameListPlayerJoinedMessage(const GameListPlayerJoinedMessage& from); + GameListPlayerJoinedMessage(GameListPlayerJoinedMessage&& from) noexcept + : GameListPlayerJoinedMessage() { + *this = ::std::move(from); + } inline GameListPlayerJoinedMessage& operator=(const GameListPlayerJoinedMessage& from) { CopyFrom(from); return *this; } + inline GameListPlayerJoinedMessage& operator=(GameListPlayerJoinedMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const GameListPlayerJoinedMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameListPlayerJoinedMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameListPlayerJoinedMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 17; - void Swap(GameListPlayerJoinedMessage* other); + friend void swap(GameListPlayerJoinedMessage& a, GameListPlayerJoinedMessage& b) { + a.Swap(&b); + } + inline void Swap(GameListPlayerJoinedMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GameListPlayerJoinedMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - GameListPlayerJoinedMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline GameListPlayerJoinedMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + GameListPlayerJoinedMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const GameListPlayerJoinedMessage& from); void MergeFrom(const GameListPlayerJoinedMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(GameListPlayerJoinedMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "GameListPlayerJoinedMessage"; + } + protected: + explicit GameListPlayerJoinedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPlayerIdFieldNumber = 2, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:GameListPlayerJoinedMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 playerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameListPlayerJoinedMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameListPlayerLeftMessage : public ::google::protobuf::MessageLite { +class GameListPlayerLeftMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GameListPlayerLeftMessage) */ { public: - GameListPlayerLeftMessage(); + inline GameListPlayerLeftMessage() : GameListPlayerLeftMessage(nullptr) {}; virtual ~GameListPlayerLeftMessage(); GameListPlayerLeftMessage(const GameListPlayerLeftMessage& from); + GameListPlayerLeftMessage(GameListPlayerLeftMessage&& from) noexcept + : GameListPlayerLeftMessage() { + *this = ::std::move(from); + } inline GameListPlayerLeftMessage& operator=(const GameListPlayerLeftMessage& from) { CopyFrom(from); return *this; } + inline GameListPlayerLeftMessage& operator=(GameListPlayerLeftMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const GameListPlayerLeftMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameListPlayerLeftMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameListPlayerLeftMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 18; - void Swap(GameListPlayerLeftMessage* other); + friend void swap(GameListPlayerLeftMessage& a, GameListPlayerLeftMessage& b) { + a.Swap(&b); + } + inline void Swap(GameListPlayerLeftMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GameListPlayerLeftMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - GameListPlayerLeftMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline GameListPlayerLeftMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + GameListPlayerLeftMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const GameListPlayerLeftMessage& from); void MergeFrom(const GameListPlayerLeftMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(GameListPlayerLeftMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "GameListPlayerLeftMessage"; + } + protected: + explicit GameListPlayerLeftMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPlayerIdFieldNumber = 2, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:GameListPlayerLeftMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 playerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameListPlayerLeftMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameListSpectatorJoinedMessage : public ::google::protobuf::MessageLite { +class GameListSpectatorJoinedMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GameListSpectatorJoinedMessage) */ { public: - GameListSpectatorJoinedMessage(); + inline GameListSpectatorJoinedMessage() : GameListSpectatorJoinedMessage(nullptr) {}; virtual ~GameListSpectatorJoinedMessage(); GameListSpectatorJoinedMessage(const GameListSpectatorJoinedMessage& from); + GameListSpectatorJoinedMessage(GameListSpectatorJoinedMessage&& from) noexcept + : GameListSpectatorJoinedMessage() { + *this = ::std::move(from); + } inline GameListSpectatorJoinedMessage& operator=(const GameListSpectatorJoinedMessage& from) { CopyFrom(from); return *this; } + inline GameListSpectatorJoinedMessage& operator=(GameListSpectatorJoinedMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const GameListSpectatorJoinedMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameListSpectatorJoinedMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameListSpectatorJoinedMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 19; - void Swap(GameListSpectatorJoinedMessage* other); + friend void swap(GameListSpectatorJoinedMessage& a, GameListSpectatorJoinedMessage& b) { + a.Swap(&b); + } + inline void Swap(GameListSpectatorJoinedMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GameListSpectatorJoinedMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - GameListSpectatorJoinedMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline GameListSpectatorJoinedMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + GameListSpectatorJoinedMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const GameListSpectatorJoinedMessage& from); void MergeFrom(const GameListSpectatorJoinedMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(GameListSpectatorJoinedMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "GameListSpectatorJoinedMessage"; + } + protected: + explicit GameListSpectatorJoinedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPlayerIdFieldNumber = 2, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:GameListSpectatorJoinedMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 playerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameListSpectatorJoinedMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameListSpectatorLeftMessage : public ::google::protobuf::MessageLite { +class GameListSpectatorLeftMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GameListSpectatorLeftMessage) */ { public: - GameListSpectatorLeftMessage(); + inline GameListSpectatorLeftMessage() : GameListSpectatorLeftMessage(nullptr) {}; virtual ~GameListSpectatorLeftMessage(); GameListSpectatorLeftMessage(const GameListSpectatorLeftMessage& from); + GameListSpectatorLeftMessage(GameListSpectatorLeftMessage&& from) noexcept + : GameListSpectatorLeftMessage() { + *this = ::std::move(from); + } inline GameListSpectatorLeftMessage& operator=(const GameListSpectatorLeftMessage& from) { CopyFrom(from); return *this; } + inline GameListSpectatorLeftMessage& operator=(GameListSpectatorLeftMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const GameListSpectatorLeftMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameListSpectatorLeftMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameListSpectatorLeftMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 20; - void Swap(GameListSpectatorLeftMessage* other); + friend void swap(GameListSpectatorLeftMessage& a, GameListSpectatorLeftMessage& b) { + a.Swap(&b); + } + inline void Swap(GameListSpectatorLeftMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GameListSpectatorLeftMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - GameListSpectatorLeftMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline GameListSpectatorLeftMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + GameListSpectatorLeftMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const GameListSpectatorLeftMessage& from); void MergeFrom(const GameListSpectatorLeftMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(GameListSpectatorLeftMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "GameListSpectatorLeftMessage"; + } + protected: + explicit GameListSpectatorLeftMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPlayerIdFieldNumber = 2, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:GameListSpectatorLeftMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 playerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameListSpectatorLeftMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameListAdminChangedMessage : public ::google::protobuf::MessageLite { +class GameListAdminChangedMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GameListAdminChangedMessage) */ { public: - GameListAdminChangedMessage(); + inline GameListAdminChangedMessage() : GameListAdminChangedMessage(nullptr) {}; virtual ~GameListAdminChangedMessage(); GameListAdminChangedMessage(const GameListAdminChangedMessage& from); + GameListAdminChangedMessage(GameListAdminChangedMessage&& from) noexcept + : GameListAdminChangedMessage() { + *this = ::std::move(from); + } inline GameListAdminChangedMessage& operator=(const GameListAdminChangedMessage& from) { CopyFrom(from); return *this; } + inline GameListAdminChangedMessage& operator=(GameListAdminChangedMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const GameListAdminChangedMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameListAdminChangedMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameListAdminChangedMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 21; - void Swap(GameListAdminChangedMessage* other); + friend void swap(GameListAdminChangedMessage& a, GameListAdminChangedMessage& b) { + a.Swap(&b); + } + inline void Swap(GameListAdminChangedMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GameListAdminChangedMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - GameListAdminChangedMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline GameListAdminChangedMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + GameListAdminChangedMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const GameListAdminChangedMessage& from); void MergeFrom(const GameListAdminChangedMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(GameListAdminChangedMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "GameListAdminChangedMessage"; + } + protected: + explicit GameListAdminChangedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kNewAdminPlayerIdFieldNumber = 2, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 newAdminPlayerId = 2; - inline bool has_newadminplayerid() const; - inline void clear_newadminplayerid(); - static const int kNewAdminPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 newadminplayerid() const; - inline void set_newadminplayerid(::google::protobuf::uint32 value); + bool has_newadminplayerid() const; + private: + bool _internal_has_newadminplayerid() const; + public: + void clear_newadminplayerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 newadminplayerid() const; + void set_newadminplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_newadminplayerid() const; + void _internal_set_newadminplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:GameListAdminChangedMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_newadminplayerid(); - inline void clear_has_newadminplayerid(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 newadminplayerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameListAdminChangedMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 newadminplayerid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class PlayerInfoRequestMessage : public ::google::protobuf::MessageLite { +class PlayerInfoRequestMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:PlayerInfoRequestMessage) */ { public: - PlayerInfoRequestMessage(); + inline PlayerInfoRequestMessage() : PlayerInfoRequestMessage(nullptr) {}; virtual ~PlayerInfoRequestMessage(); PlayerInfoRequestMessage(const PlayerInfoRequestMessage& from); + PlayerInfoRequestMessage(PlayerInfoRequestMessage&& from) noexcept + : PlayerInfoRequestMessage() { + *this = ::std::move(from); + } inline PlayerInfoRequestMessage& operator=(const PlayerInfoRequestMessage& from) { CopyFrom(from); return *this; } + inline PlayerInfoRequestMessage& operator=(PlayerInfoRequestMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const PlayerInfoRequestMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PlayerInfoRequestMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_PlayerInfoRequestMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 22; - void Swap(PlayerInfoRequestMessage* other); + friend void swap(PlayerInfoRequestMessage& a, PlayerInfoRequestMessage& b) { + a.Swap(&b); + } + inline void Swap(PlayerInfoRequestMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PlayerInfoRequestMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - PlayerInfoRequestMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline PlayerInfoRequestMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + PlayerInfoRequestMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const PlayerInfoRequestMessage& from); void MergeFrom(const PlayerInfoRequestMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(PlayerInfoRequestMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "PlayerInfoRequestMessage"; + } + protected: + explicit PlayerInfoRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kPlayerIdFieldNumber = 1, + }; // repeated uint32 playerId = 1 [packed = true]; - inline int playerid_size() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 playerid(int index) const; - inline void set_playerid(int index, ::google::protobuf::uint32 value); - inline void add_playerid(::google::protobuf::uint32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + int playerid_size() const; + private: + int _internal_playerid_size() const; + public: + void clear_playerid(); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& + _internal_playerid() const; + void _internal_add_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* + _internal_mutable_playerid(); + public: + ::PROTOBUF_NAMESPACE_ID::uint32 playerid(int index) const; + void set_playerid(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value); + void add_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& playerid() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* mutable_playerid(); // @@protoc_insertion_point(class_scope:PlayerInfoRequestMessage) private: + class _Internal; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > playerid_; - mutable int _playerid_cached_byte_size_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static PlayerInfoRequestMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 > playerid_; + mutable std::atomic _playerid_cached_byte_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class PlayerInfoReplyMessage_PlayerInfoData_AvatarData : public ::google::protobuf::MessageLite { +class PlayerInfoReplyMessage_PlayerInfoData_AvatarData PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) */ { public: - PlayerInfoReplyMessage_PlayerInfoData_AvatarData(); + inline PlayerInfoReplyMessage_PlayerInfoData_AvatarData() : PlayerInfoReplyMessage_PlayerInfoData_AvatarData(nullptr) {}; virtual ~PlayerInfoReplyMessage_PlayerInfoData_AvatarData(); PlayerInfoReplyMessage_PlayerInfoData_AvatarData(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from); + PlayerInfoReplyMessage_PlayerInfoData_AvatarData(PlayerInfoReplyMessage_PlayerInfoData_AvatarData&& from) noexcept + : PlayerInfoReplyMessage_PlayerInfoData_AvatarData() { + *this = ::std::move(from); + } inline PlayerInfoReplyMessage_PlayerInfoData_AvatarData& operator=(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from) { CopyFrom(from); return *this; } + inline PlayerInfoReplyMessage_PlayerInfoData_AvatarData& operator=(PlayerInfoReplyMessage_PlayerInfoData_AvatarData&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PlayerInfoReplyMessage_PlayerInfoData_AvatarData* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 23; - void Swap(PlayerInfoReplyMessage_PlayerInfoData_AvatarData* other); + friend void swap(PlayerInfoReplyMessage_PlayerInfoData_AvatarData& a, PlayerInfoReplyMessage_PlayerInfoData_AvatarData& b) { + a.Swap(&b); + } + inline void Swap(PlayerInfoReplyMessage_PlayerInfoData_AvatarData* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PlayerInfoReplyMessage_PlayerInfoData_AvatarData* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - PlayerInfoReplyMessage_PlayerInfoData_AvatarData* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline PlayerInfoReplyMessage_PlayerInfoData_AvatarData* New() const final { + return CreateMaybeMessage(nullptr); + } + + PlayerInfoReplyMessage_PlayerInfoData_AvatarData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from); void MergeFrom(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(PlayerInfoReplyMessage_PlayerInfoData_AvatarData* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "PlayerInfoReplyMessage.PlayerInfoData.AvatarData"; + } + protected: + explicit PlayerInfoReplyMessage_PlayerInfoData_AvatarData(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required .NetAvatarType avatarType = 1; - inline bool has_avatartype() const; - inline void clear_avatartype(); - static const int kAvatarTypeFieldNumber = 1; - inline ::NetAvatarType avatartype() const; - inline void set_avatartype(::NetAvatarType value); - + enum : int { + kAvatarHashFieldNumber = 2, + kAvatarTypeFieldNumber = 1, + }; // required bytes avatarHash = 2; - inline bool has_avatarhash() const; - inline void clear_avatarhash(); - static const int kAvatarHashFieldNumber = 2; - inline const ::std::string& avatarhash() const; - inline void set_avatarhash(const ::std::string& value); - inline void set_avatarhash(const char* value); - inline void set_avatarhash(const void* value, size_t size); - inline ::std::string* mutable_avatarhash(); - inline ::std::string* release_avatarhash(); - inline void set_allocated_avatarhash(::std::string* avatarhash); + bool has_avatarhash() const; + private: + bool _internal_has_avatarhash() const; + public: + void clear_avatarhash(); + const std::string& avatarhash() const; + void set_avatarhash(const std::string& value); + void set_avatarhash(std::string&& value); + void set_avatarhash(const char* value); + void set_avatarhash(const void* value, size_t size); + std::string* mutable_avatarhash(); + std::string* release_avatarhash(); + void set_allocated_avatarhash(std::string* avatarhash); + 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_avatarhash(); + 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_avatarhash( + std::string* avatarhash); + private: + const std::string& _internal_avatarhash() const; + void _internal_set_avatarhash(const std::string& value); + std::string* _internal_mutable_avatarhash(); + public: + + // required .NetAvatarType avatarType = 1; + bool has_avatartype() const; + private: + bool _internal_has_avatartype() const; + public: + void clear_avatartype(); + ::NetAvatarType avatartype() const; + void set_avatartype(::NetAvatarType value); + private: + ::NetAvatarType _internal_avatartype() const; + void _internal_set_avatartype(::NetAvatarType value); + public: // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) private: - inline void set_has_avatartype(); - inline void clear_has_avatartype(); - inline void set_has_avatarhash(); - inline void clear_has_avatarhash(); + class _Internal; - ::std::string* avatarhash_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr avatarhash_; int avatartype_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static PlayerInfoReplyMessage_PlayerInfoData_AvatarData* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class PlayerInfoReplyMessage_PlayerInfoData : public ::google::protobuf::MessageLite { +class PlayerInfoReplyMessage_PlayerInfoData PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:PlayerInfoReplyMessage.PlayerInfoData) */ { public: - PlayerInfoReplyMessage_PlayerInfoData(); + inline PlayerInfoReplyMessage_PlayerInfoData() : PlayerInfoReplyMessage_PlayerInfoData(nullptr) {}; virtual ~PlayerInfoReplyMessage_PlayerInfoData(); PlayerInfoReplyMessage_PlayerInfoData(const PlayerInfoReplyMessage_PlayerInfoData& from); + PlayerInfoReplyMessage_PlayerInfoData(PlayerInfoReplyMessage_PlayerInfoData&& from) noexcept + : PlayerInfoReplyMessage_PlayerInfoData() { + *this = ::std::move(from); + } inline PlayerInfoReplyMessage_PlayerInfoData& operator=(const PlayerInfoReplyMessage_PlayerInfoData& from) { CopyFrom(from); return *this; } + inline PlayerInfoReplyMessage_PlayerInfoData& operator=(PlayerInfoReplyMessage_PlayerInfoData&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const PlayerInfoReplyMessage_PlayerInfoData& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PlayerInfoReplyMessage_PlayerInfoData* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_PlayerInfoReplyMessage_PlayerInfoData_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 24; - void Swap(PlayerInfoReplyMessage_PlayerInfoData* other); + friend void swap(PlayerInfoReplyMessage_PlayerInfoData& a, PlayerInfoReplyMessage_PlayerInfoData& b) { + a.Swap(&b); + } + inline void Swap(PlayerInfoReplyMessage_PlayerInfoData* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PlayerInfoReplyMessage_PlayerInfoData* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - PlayerInfoReplyMessage_PlayerInfoData* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline PlayerInfoReplyMessage_PlayerInfoData* New() const final { + return CreateMaybeMessage(nullptr); + } + + PlayerInfoReplyMessage_PlayerInfoData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const PlayerInfoReplyMessage_PlayerInfoData& from); void MergeFrom(const PlayerInfoReplyMessage_PlayerInfoData& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(PlayerInfoReplyMessage_PlayerInfoData* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "PlayerInfoReplyMessage.PlayerInfoData"; + } + protected: + explicit PlayerInfoReplyMessage_PlayerInfoData(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- @@ -3348,136 +5785,235 @@ class PlayerInfoReplyMessage_PlayerInfoData : public ::google::protobuf::Message // accessors ------------------------------------------------------- + enum : int { + kPlayerNameFieldNumber = 1, + kCountryCodeFieldNumber = 4, + kAvatarDataFieldNumber = 5, + kIsHumanFieldNumber = 2, + kPlayerRightsFieldNumber = 3, + }; // required string playerName = 1; - inline bool has_playername() const; - inline void clear_playername(); - static const int kPlayerNameFieldNumber = 1; - inline const ::std::string& playername() const; - inline void set_playername(const ::std::string& value); - inline void set_playername(const char* value); - inline void set_playername(const char* value, size_t size); - inline ::std::string* mutable_playername(); - inline ::std::string* release_playername(); - inline void set_allocated_playername(::std::string* playername); - - // required bool isHuman = 2; - inline bool has_ishuman() const; - inline void clear_ishuman(); - static const int kIsHumanFieldNumber = 2; - inline bool ishuman() const; - inline void set_ishuman(bool value); - - // required .NetPlayerInfoRights playerRights = 3; - inline bool has_playerrights() const; - inline void clear_playerrights(); - static const int kPlayerRightsFieldNumber = 3; - inline ::NetPlayerInfoRights playerrights() const; - inline void set_playerrights(::NetPlayerInfoRights value); + bool has_playername() const; + private: + bool _internal_has_playername() const; + public: + void clear_playername(); + const std::string& playername() const; + void set_playername(const std::string& value); + void set_playername(std::string&& value); + void set_playername(const char* value); + void set_playername(const char* value, size_t size); + std::string* mutable_playername(); + std::string* release_playername(); + void set_allocated_playername(std::string* playername); + 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_playername(); + 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_playername( + std::string* playername); + private: + const std::string& _internal_playername() const; + void _internal_set_playername(const std::string& value); + std::string* _internal_mutable_playername(); + public: // optional string countryCode = 4; - inline bool has_countrycode() const; - inline void clear_countrycode(); - static const int kCountryCodeFieldNumber = 4; - inline const ::std::string& countrycode() const; - inline void set_countrycode(const ::std::string& value); - inline void set_countrycode(const char* value); - inline void set_countrycode(const char* value, size_t size); - inline ::std::string* mutable_countrycode(); - inline ::std::string* release_countrycode(); - inline void set_allocated_countrycode(::std::string* countrycode); + bool has_countrycode() const; + private: + bool _internal_has_countrycode() const; + public: + void clear_countrycode(); + const std::string& countrycode() const; + void set_countrycode(const std::string& value); + void set_countrycode(std::string&& value); + void set_countrycode(const char* value); + void set_countrycode(const char* value, size_t size); + std::string* mutable_countrycode(); + std::string* release_countrycode(); + void set_allocated_countrycode(std::string* countrycode); + 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_countrycode(); + 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_countrycode( + std::string* countrycode); + private: + const std::string& _internal_countrycode() const; + void _internal_set_countrycode(const std::string& value); + std::string* _internal_mutable_countrycode(); + public: // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - inline bool has_avatardata() const; - inline void clear_avatardata(); - static const int kAvatarDataFieldNumber = 5; - inline const ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData& avatardata() const; - inline ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* mutable_avatardata(); - inline ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* release_avatardata(); - inline void set_allocated_avatardata(::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* avatardata); + bool has_avatardata() const; + private: + bool _internal_has_avatardata() const; + public: + void clear_avatardata(); + const ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData& avatardata() const; + ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* release_avatardata(); + ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* mutable_avatardata(); + void set_allocated_avatardata(::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* avatardata); + private: + const ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData& _internal_avatardata() const; + ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* _internal_mutable_avatardata(); + public: + void unsafe_arena_set_allocated_avatardata( + ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* avatardata); + ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* unsafe_arena_release_avatardata(); + + // required bool isHuman = 2; + bool has_ishuman() const; + private: + bool _internal_has_ishuman() const; + public: + void clear_ishuman(); + bool ishuman() const; + void set_ishuman(bool value); + private: + bool _internal_ishuman() const; + void _internal_set_ishuman(bool value); + public: + + // required .NetPlayerInfoRights playerRights = 3; + bool has_playerrights() const; + private: + bool _internal_has_playerrights() const; + public: + void clear_playerrights(); + ::NetPlayerInfoRights playerrights() const; + void set_playerrights(::NetPlayerInfoRights value); + private: + ::NetPlayerInfoRights _internal_playerrights() const; + void _internal_set_playerrights(::NetPlayerInfoRights value); + public: // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage.PlayerInfoData) private: - inline void set_has_playername(); - inline void clear_has_playername(); - inline void set_has_ishuman(); - inline void clear_has_ishuman(); - inline void set_has_playerrights(); - inline void clear_has_playerrights(); - inline void set_has_countrycode(); - inline void clear_has_countrycode(); - inline void set_has_avatardata(); - inline void clear_has_avatardata(); + class _Internal; - ::std::string* playername_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr playername_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr countrycode_; + ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* avatardata_; bool ishuman_; int playerrights_; - ::std::string* countrycode_; - ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* avatardata_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static PlayerInfoReplyMessage_PlayerInfoData* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class PlayerInfoReplyMessage : public ::google::protobuf::MessageLite { +class PlayerInfoReplyMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:PlayerInfoReplyMessage) */ { public: - PlayerInfoReplyMessage(); + inline PlayerInfoReplyMessage() : PlayerInfoReplyMessage(nullptr) {}; virtual ~PlayerInfoReplyMessage(); PlayerInfoReplyMessage(const PlayerInfoReplyMessage& from); + PlayerInfoReplyMessage(PlayerInfoReplyMessage&& from) noexcept + : PlayerInfoReplyMessage() { + *this = ::std::move(from); + } inline PlayerInfoReplyMessage& operator=(const PlayerInfoReplyMessage& from) { CopyFrom(from); return *this; } + inline PlayerInfoReplyMessage& operator=(PlayerInfoReplyMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const PlayerInfoReplyMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PlayerInfoReplyMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_PlayerInfoReplyMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 25; - void Swap(PlayerInfoReplyMessage* other); + friend void swap(PlayerInfoReplyMessage& a, PlayerInfoReplyMessage& b) { + a.Swap(&b); + } + inline void Swap(PlayerInfoReplyMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PlayerInfoReplyMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - PlayerInfoReplyMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline PlayerInfoReplyMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + PlayerInfoReplyMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const PlayerInfoReplyMessage& from); void MergeFrom(const PlayerInfoReplyMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(PlayerInfoReplyMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "PlayerInfoReplyMessage"; + } + protected: + explicit PlayerInfoReplyMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- @@ -3485,2345 +6021,3856 @@ class PlayerInfoReplyMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- - // required uint32 playerId = 1; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); - + enum : int { + kPlayerInfoDataFieldNumber = 2, + kPlayerIdFieldNumber = 1, + }; // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - inline bool has_playerinfodata() const; - inline void clear_playerinfodata(); - static const int kPlayerInfoDataFieldNumber = 2; - inline const ::PlayerInfoReplyMessage_PlayerInfoData& playerinfodata() const; - inline ::PlayerInfoReplyMessage_PlayerInfoData* mutable_playerinfodata(); - inline ::PlayerInfoReplyMessage_PlayerInfoData* release_playerinfodata(); - inline void set_allocated_playerinfodata(::PlayerInfoReplyMessage_PlayerInfoData* playerinfodata); + bool has_playerinfodata() const; + private: + bool _internal_has_playerinfodata() const; + public: + void clear_playerinfodata(); + const ::PlayerInfoReplyMessage_PlayerInfoData& playerinfodata() const; + ::PlayerInfoReplyMessage_PlayerInfoData* release_playerinfodata(); + ::PlayerInfoReplyMessage_PlayerInfoData* mutable_playerinfodata(); + void set_allocated_playerinfodata(::PlayerInfoReplyMessage_PlayerInfoData* playerinfodata); + private: + const ::PlayerInfoReplyMessage_PlayerInfoData& _internal_playerinfodata() const; + ::PlayerInfoReplyMessage_PlayerInfoData* _internal_mutable_playerinfodata(); + public: + void unsafe_arena_set_allocated_playerinfodata( + ::PlayerInfoReplyMessage_PlayerInfoData* playerinfodata); + ::PlayerInfoReplyMessage_PlayerInfoData* unsafe_arena_release_playerinfodata(); + + // required uint32 playerId = 1; + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage) private: - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_playerinfodata(); - inline void clear_has_playerinfodata(); + class _Internal; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PlayerInfoReplyMessage_PlayerInfoData* playerinfodata_; - ::google::protobuf::uint32 playerid_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static PlayerInfoReplyMessage* default_instance_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class SubscriptionRequestMessage : public ::google::protobuf::MessageLite { +class SubscriptionRequestMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:SubscriptionRequestMessage) */ { public: - SubscriptionRequestMessage(); + inline SubscriptionRequestMessage() : SubscriptionRequestMessage(nullptr) {}; virtual ~SubscriptionRequestMessage(); SubscriptionRequestMessage(const SubscriptionRequestMessage& from); + SubscriptionRequestMessage(SubscriptionRequestMessage&& from) noexcept + : SubscriptionRequestMessage() { + *this = ::std::move(from); + } inline SubscriptionRequestMessage& operator=(const SubscriptionRequestMessage& from) { CopyFrom(from); return *this; } + inline SubscriptionRequestMessage& operator=(SubscriptionRequestMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const SubscriptionRequestMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SubscriptionRequestMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_SubscriptionRequestMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 26; - void Swap(SubscriptionRequestMessage* other); + friend void swap(SubscriptionRequestMessage& a, SubscriptionRequestMessage& b) { + a.Swap(&b); + } + inline void Swap(SubscriptionRequestMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SubscriptionRequestMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - SubscriptionRequestMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline SubscriptionRequestMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + SubscriptionRequestMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const SubscriptionRequestMessage& from); void MergeFrom(const SubscriptionRequestMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(SubscriptionRequestMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "SubscriptionRequestMessage"; + } + protected: + explicit SubscriptionRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef SubscriptionRequestMessage_SubscriptionAction SubscriptionAction; - static const SubscriptionAction unsubscribeGameList = SubscriptionRequestMessage_SubscriptionAction_unsubscribeGameList; - static const SubscriptionAction resubscribeGameList = SubscriptionRequestMessage_SubscriptionAction_resubscribeGameList; + static constexpr SubscriptionAction unsubscribeGameList = + SubscriptionRequestMessage_SubscriptionAction_unsubscribeGameList; + static constexpr SubscriptionAction resubscribeGameList = + SubscriptionRequestMessage_SubscriptionAction_resubscribeGameList; static inline bool SubscriptionAction_IsValid(int value) { return SubscriptionRequestMessage_SubscriptionAction_IsValid(value); } - static const SubscriptionAction SubscriptionAction_MIN = + static constexpr SubscriptionAction SubscriptionAction_MIN = SubscriptionRequestMessage_SubscriptionAction_SubscriptionAction_MIN; - static const SubscriptionAction SubscriptionAction_MAX = + static constexpr SubscriptionAction SubscriptionAction_MAX = SubscriptionRequestMessage_SubscriptionAction_SubscriptionAction_MAX; - static const int SubscriptionAction_ARRAYSIZE = + static constexpr int SubscriptionAction_ARRAYSIZE = SubscriptionRequestMessage_SubscriptionAction_SubscriptionAction_ARRAYSIZE; + template + static inline const std::string& SubscriptionAction_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function SubscriptionAction_Name."); + return SubscriptionRequestMessage_SubscriptionAction_Name(enum_t_value); + } + static inline bool SubscriptionAction_Parse(const std::string& name, + SubscriptionAction* value) { + return SubscriptionRequestMessage_SubscriptionAction_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kSubscriptionActionFieldNumber = 1, + }; // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - inline bool has_subscriptionaction() const; - inline void clear_subscriptionaction(); - static const int kSubscriptionActionFieldNumber = 1; - inline ::SubscriptionRequestMessage_SubscriptionAction subscriptionaction() const; - inline void set_subscriptionaction(::SubscriptionRequestMessage_SubscriptionAction value); + bool has_subscriptionaction() const; + private: + bool _internal_has_subscriptionaction() const; + public: + void clear_subscriptionaction(); + ::SubscriptionRequestMessage_SubscriptionAction subscriptionaction() const; + void set_subscriptionaction(::SubscriptionRequestMessage_SubscriptionAction value); + private: + ::SubscriptionRequestMessage_SubscriptionAction _internal_subscriptionaction() const; + void _internal_set_subscriptionaction(::SubscriptionRequestMessage_SubscriptionAction value); + public: // @@protoc_insertion_point(class_scope:SubscriptionRequestMessage) private: - inline void set_has_subscriptionaction(); - inline void clear_has_subscriptionaction(); + class _Internal; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; int subscriptionaction_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static SubscriptionRequestMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class JoinExistingGameMessage : public ::google::protobuf::MessageLite { +class JoinExistingGameMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:JoinExistingGameMessage) */ { public: - JoinExistingGameMessage(); + inline JoinExistingGameMessage() : JoinExistingGameMessage(nullptr) {}; virtual ~JoinExistingGameMessage(); JoinExistingGameMessage(const JoinExistingGameMessage& from); + JoinExistingGameMessage(JoinExistingGameMessage&& from) noexcept + : JoinExistingGameMessage() { + *this = ::std::move(from); + } inline JoinExistingGameMessage& operator=(const JoinExistingGameMessage& from) { CopyFrom(from); return *this; } + inline JoinExistingGameMessage& operator=(JoinExistingGameMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const JoinExistingGameMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const JoinExistingGameMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_JoinExistingGameMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 27; - void Swap(JoinExistingGameMessage* other); + friend void swap(JoinExistingGameMessage& a, JoinExistingGameMessage& b) { + a.Swap(&b); + } + inline void Swap(JoinExistingGameMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(JoinExistingGameMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - JoinExistingGameMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline JoinExistingGameMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + JoinExistingGameMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const JoinExistingGameMessage& from); void MergeFrom(const JoinExistingGameMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(JoinExistingGameMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "JoinExistingGameMessage"; + } + protected: + explicit JoinExistingGameMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); - + enum : int { + kPasswordFieldNumber = 2, + kGameIdFieldNumber = 1, + kAutoLeaveFieldNumber = 3, + kSpectateOnlyFieldNumber = 4, + }; // optional string password = 2; - inline bool has_password() const; - inline void clear_password(); - static const int kPasswordFieldNumber = 2; - inline const ::std::string& password() const; - inline void set_password(const ::std::string& value); - inline void set_password(const char* value); - inline void set_password(const char* value, size_t size); - inline ::std::string* mutable_password(); - inline ::std::string* release_password(); - inline void set_allocated_password(::std::string* password); + bool has_password() const; + private: + bool _internal_has_password() const; + public: + 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: + + // required uint32 gameId = 1; + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // optional bool autoLeave = 3 [default = false]; - inline bool has_autoleave() const; - inline void clear_autoleave(); - static const int kAutoLeaveFieldNumber = 3; - inline bool autoleave() const; - inline void set_autoleave(bool value); + bool has_autoleave() const; + private: + bool _internal_has_autoleave() const; + public: + void clear_autoleave(); + bool autoleave() const; + void set_autoleave(bool value); + private: + bool _internal_autoleave() const; + void _internal_set_autoleave(bool value); + public: // optional bool spectateOnly = 4 [default = false]; - inline bool has_spectateonly() const; - inline void clear_spectateonly(); - static const int kSpectateOnlyFieldNumber = 4; - inline bool spectateonly() const; - inline void set_spectateonly(bool value); + bool has_spectateonly() const; + private: + bool _internal_has_spectateonly() const; + public: + void clear_spectateonly(); + bool spectateonly() const; + void set_spectateonly(bool value); + private: + bool _internal_spectateonly() const; + void _internal_set_spectateonly(bool value); + public: // @@protoc_insertion_point(class_scope:JoinExistingGameMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_password(); - inline void clear_has_password(); - inline void set_has_autoleave(); - inline void clear_has_autoleave(); - inline void set_has_spectateonly(); - inline void clear_has_spectateonly(); + class _Internal; - ::std::string* password_; - ::google::protobuf::uint32 gameid_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr password_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; bool autoleave_; bool spectateonly_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static JoinExistingGameMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class JoinNewGameMessage : public ::google::protobuf::MessageLite { +class JoinNewGameMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:JoinNewGameMessage) */ { public: - JoinNewGameMessage(); + inline JoinNewGameMessage() : JoinNewGameMessage(nullptr) {}; virtual ~JoinNewGameMessage(); JoinNewGameMessage(const JoinNewGameMessage& from); + JoinNewGameMessage(JoinNewGameMessage&& from) noexcept + : JoinNewGameMessage() { + *this = ::std::move(from); + } inline JoinNewGameMessage& operator=(const JoinNewGameMessage& from) { CopyFrom(from); return *this; } + inline JoinNewGameMessage& operator=(JoinNewGameMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const JoinNewGameMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const JoinNewGameMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_JoinNewGameMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 28; - void Swap(JoinNewGameMessage* other); + friend void swap(JoinNewGameMessage& a, JoinNewGameMessage& b) { + a.Swap(&b); + } + inline void Swap(JoinNewGameMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(JoinNewGameMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - JoinNewGameMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline JoinNewGameMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + JoinNewGameMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const JoinNewGameMessage& from); void MergeFrom(const JoinNewGameMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(JoinNewGameMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "JoinNewGameMessage"; + } + protected: + explicit JoinNewGameMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required .NetGameInfo gameInfo = 1; - inline bool has_gameinfo() const; - inline void clear_gameinfo(); - static const int kGameInfoFieldNumber = 1; - inline const ::NetGameInfo& gameinfo() const; - inline ::NetGameInfo* mutable_gameinfo(); - inline ::NetGameInfo* release_gameinfo(); - inline void set_allocated_gameinfo(::NetGameInfo* gameinfo); - + enum : int { + kPasswordFieldNumber = 2, + kGameInfoFieldNumber = 1, + kAutoLeaveFieldNumber = 3, + }; // optional string password = 2; - inline bool has_password() const; - inline void clear_password(); - static const int kPasswordFieldNumber = 2; - inline const ::std::string& password() const; - inline void set_password(const ::std::string& value); - inline void set_password(const char* value); - inline void set_password(const char* value, size_t size); - inline ::std::string* mutable_password(); - inline ::std::string* release_password(); - inline void set_allocated_password(::std::string* password); + bool has_password() const; + private: + bool _internal_has_password() const; + public: + 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: + + // required .NetGameInfo gameInfo = 1; + bool has_gameinfo() const; + private: + bool _internal_has_gameinfo() const; + public: + void clear_gameinfo(); + const ::NetGameInfo& gameinfo() const; + ::NetGameInfo* release_gameinfo(); + ::NetGameInfo* mutable_gameinfo(); + void set_allocated_gameinfo(::NetGameInfo* gameinfo); + private: + const ::NetGameInfo& _internal_gameinfo() const; + ::NetGameInfo* _internal_mutable_gameinfo(); + public: + void unsafe_arena_set_allocated_gameinfo( + ::NetGameInfo* gameinfo); + ::NetGameInfo* unsafe_arena_release_gameinfo(); // optional bool autoLeave = 3; - inline bool has_autoleave() const; - inline void clear_autoleave(); - static const int kAutoLeaveFieldNumber = 3; - inline bool autoleave() const; - inline void set_autoleave(bool value); + bool has_autoleave() const; + private: + bool _internal_has_autoleave() const; + public: + void clear_autoleave(); + bool autoleave() const; + void set_autoleave(bool value); + private: + bool _internal_autoleave() const; + void _internal_set_autoleave(bool value); + public: // @@protoc_insertion_point(class_scope:JoinNewGameMessage) private: - inline void set_has_gameinfo(); - inline void clear_has_gameinfo(); - inline void set_has_password(); - inline void clear_has_password(); - inline void set_has_autoleave(); - inline void clear_has_autoleave(); + class _Internal; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr password_; ::NetGameInfo* gameinfo_; - ::std::string* password_; bool autoleave_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static JoinNewGameMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class RejoinExistingGameMessage : public ::google::protobuf::MessageLite { +class RejoinExistingGameMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:RejoinExistingGameMessage) */ { public: - RejoinExistingGameMessage(); + inline RejoinExistingGameMessage() : RejoinExistingGameMessage(nullptr) {}; virtual ~RejoinExistingGameMessage(); RejoinExistingGameMessage(const RejoinExistingGameMessage& from); + RejoinExistingGameMessage(RejoinExistingGameMessage&& from) noexcept + : RejoinExistingGameMessage() { + *this = ::std::move(from); + } inline RejoinExistingGameMessage& operator=(const RejoinExistingGameMessage& from) { CopyFrom(from); return *this; } + inline RejoinExistingGameMessage& operator=(RejoinExistingGameMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const RejoinExistingGameMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const RejoinExistingGameMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_RejoinExistingGameMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 29; - void Swap(RejoinExistingGameMessage* other); + friend void swap(RejoinExistingGameMessage& a, RejoinExistingGameMessage& b) { + a.Swap(&b); + } + inline void Swap(RejoinExistingGameMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(RejoinExistingGameMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - RejoinExistingGameMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline RejoinExistingGameMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + RejoinExistingGameMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const RejoinExistingGameMessage& from); void MergeFrom(const RejoinExistingGameMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(RejoinExistingGameMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "RejoinExistingGameMessage"; + } + protected: + explicit RejoinExistingGameMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kAutoLeaveFieldNumber = 2, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // optional bool autoLeave = 2; - inline bool has_autoleave() const; - inline void clear_autoleave(); - static const int kAutoLeaveFieldNumber = 2; - inline bool autoleave() const; - inline void set_autoleave(bool value); + bool has_autoleave() const; + private: + bool _internal_has_autoleave() const; + public: + void clear_autoleave(); + bool autoleave() const; + void set_autoleave(bool value); + private: + bool _internal_autoleave() const; + void _internal_set_autoleave(bool value); + public: // @@protoc_insertion_point(class_scope:RejoinExistingGameMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_autoleave(); - inline void clear_has_autoleave(); + class _Internal; - ::google::protobuf::uint32 gameid_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; bool autoleave_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static RejoinExistingGameMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class JoinGameAckMessage : public ::google::protobuf::MessageLite { +class JoinGameAckMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:JoinGameAckMessage) */ { public: - JoinGameAckMessage(); + inline JoinGameAckMessage() : JoinGameAckMessage(nullptr) {}; virtual ~JoinGameAckMessage(); JoinGameAckMessage(const JoinGameAckMessage& from); + JoinGameAckMessage(JoinGameAckMessage&& from) noexcept + : JoinGameAckMessage() { + *this = ::std::move(from); + } inline JoinGameAckMessage& operator=(const JoinGameAckMessage& from) { CopyFrom(from); return *this; } + inline JoinGameAckMessage& operator=(JoinGameAckMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const JoinGameAckMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const JoinGameAckMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_JoinGameAckMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 30; - void Swap(JoinGameAckMessage* other); + friend void swap(JoinGameAckMessage& a, JoinGameAckMessage& b) { + a.Swap(&b); + } + inline void Swap(JoinGameAckMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(JoinGameAckMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - JoinGameAckMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline JoinGameAckMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + JoinGameAckMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const JoinGameAckMessage& from); void MergeFrom(const JoinGameAckMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(JoinGameAckMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "JoinGameAckMessage"; + } + protected: + explicit JoinGameAckMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameInfoFieldNumber = 3, + kGameIdFieldNumber = 1, + kAreYouGameAdminFieldNumber = 2, + kSpectateOnlyFieldNumber = 4, + }; + // required .NetGameInfo gameInfo = 3; + bool has_gameinfo() const; + private: + bool _internal_has_gameinfo() const; + public: + void clear_gameinfo(); + const ::NetGameInfo& gameinfo() const; + ::NetGameInfo* release_gameinfo(); + ::NetGameInfo* mutable_gameinfo(); + void set_allocated_gameinfo(::NetGameInfo* gameinfo); + private: + const ::NetGameInfo& _internal_gameinfo() const; + ::NetGameInfo* _internal_mutable_gameinfo(); + public: + void unsafe_arena_set_allocated_gameinfo( + ::NetGameInfo* gameinfo); + ::NetGameInfo* unsafe_arena_release_gameinfo(); + // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required bool areYouGameAdmin = 2; - inline bool has_areyougameadmin() const; - inline void clear_areyougameadmin(); - static const int kAreYouGameAdminFieldNumber = 2; - inline bool areyougameadmin() const; - inline void set_areyougameadmin(bool value); - - // required .NetGameInfo gameInfo = 3; - inline bool has_gameinfo() const; - inline void clear_gameinfo(); - static const int kGameInfoFieldNumber = 3; - inline const ::NetGameInfo& gameinfo() const; - inline ::NetGameInfo* mutable_gameinfo(); - inline ::NetGameInfo* release_gameinfo(); - inline void set_allocated_gameinfo(::NetGameInfo* gameinfo); + bool has_areyougameadmin() const; + private: + bool _internal_has_areyougameadmin() const; + public: + void clear_areyougameadmin(); + bool areyougameadmin() const; + void set_areyougameadmin(bool value); + private: + bool _internal_areyougameadmin() const; + void _internal_set_areyougameadmin(bool value); + public: // optional bool spectateOnly = 4; - inline bool has_spectateonly() const; - inline void clear_spectateonly(); - static const int kSpectateOnlyFieldNumber = 4; - inline bool spectateonly() const; - inline void set_spectateonly(bool value); + bool has_spectateonly() const; + private: + bool _internal_has_spectateonly() const; + public: + void clear_spectateonly(); + bool spectateonly() const; + void set_spectateonly(bool value); + private: + bool _internal_spectateonly() const; + void _internal_set_spectateonly(bool value); + public: // @@protoc_insertion_point(class_scope:JoinGameAckMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_areyougameadmin(); - inline void clear_has_areyougameadmin(); - inline void set_has_gameinfo(); - inline void clear_has_gameinfo(); - inline void set_has_spectateonly(); - inline void clear_has_spectateonly(); + class _Internal; - ::google::protobuf::uint32 gameid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::NetGameInfo* gameinfo_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; bool areyougameadmin_; bool spectateonly_; - ::NetGameInfo* gameinfo_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static JoinGameAckMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class JoinGameFailedMessage : public ::google::protobuf::MessageLite { +class JoinGameFailedMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:JoinGameFailedMessage) */ { public: - JoinGameFailedMessage(); + inline JoinGameFailedMessage() : JoinGameFailedMessage(nullptr) {}; virtual ~JoinGameFailedMessage(); JoinGameFailedMessage(const JoinGameFailedMessage& from); + JoinGameFailedMessage(JoinGameFailedMessage&& from) noexcept + : JoinGameFailedMessage() { + *this = ::std::move(from); + } inline JoinGameFailedMessage& operator=(const JoinGameFailedMessage& from) { CopyFrom(from); return *this; } + inline JoinGameFailedMessage& operator=(JoinGameFailedMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const JoinGameFailedMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const JoinGameFailedMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_JoinGameFailedMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 31; - void Swap(JoinGameFailedMessage* other); + friend void swap(JoinGameFailedMessage& a, JoinGameFailedMessage& b) { + a.Swap(&b); + } + inline void Swap(JoinGameFailedMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(JoinGameFailedMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - JoinGameFailedMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline JoinGameFailedMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + JoinGameFailedMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const JoinGameFailedMessage& from); void MergeFrom(const JoinGameFailedMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(JoinGameFailedMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "JoinGameFailedMessage"; + } + protected: + explicit JoinGameFailedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef JoinGameFailedMessage_JoinGameFailureReason JoinGameFailureReason; - static const JoinGameFailureReason invalidGame = JoinGameFailedMessage_JoinGameFailureReason_invalidGame; - static const JoinGameFailureReason gameIsFull = JoinGameFailedMessage_JoinGameFailureReason_gameIsFull; - static const JoinGameFailureReason gameIsRunning = JoinGameFailedMessage_JoinGameFailureReason_gameIsRunning; - static const JoinGameFailureReason invalidPassword = JoinGameFailedMessage_JoinGameFailureReason_invalidPassword; - static const JoinGameFailureReason notAllowedAsGuest = JoinGameFailedMessage_JoinGameFailureReason_notAllowedAsGuest; - static const JoinGameFailureReason notInvited = JoinGameFailedMessage_JoinGameFailureReason_notInvited; - static const JoinGameFailureReason gameNameInUse = JoinGameFailedMessage_JoinGameFailureReason_gameNameInUse; - static const JoinGameFailureReason badGameName = JoinGameFailedMessage_JoinGameFailureReason_badGameName; - static const JoinGameFailureReason invalidSettings = JoinGameFailedMessage_JoinGameFailureReason_invalidSettings; - static const JoinGameFailureReason ipAddressBlocked = JoinGameFailedMessage_JoinGameFailureReason_ipAddressBlocked; - static const JoinGameFailureReason rejoinFailed = JoinGameFailedMessage_JoinGameFailureReason_rejoinFailed; - static const JoinGameFailureReason noSpectatorsAllowed = JoinGameFailedMessage_JoinGameFailureReason_noSpectatorsAllowed; + static constexpr JoinGameFailureReason invalidGame = + JoinGameFailedMessage_JoinGameFailureReason_invalidGame; + static constexpr JoinGameFailureReason gameIsFull = + JoinGameFailedMessage_JoinGameFailureReason_gameIsFull; + static constexpr JoinGameFailureReason gameIsRunning = + JoinGameFailedMessage_JoinGameFailureReason_gameIsRunning; + static constexpr JoinGameFailureReason invalidPassword = + JoinGameFailedMessage_JoinGameFailureReason_invalidPassword; + static constexpr JoinGameFailureReason notAllowedAsGuest = + JoinGameFailedMessage_JoinGameFailureReason_notAllowedAsGuest; + static constexpr JoinGameFailureReason notInvited = + JoinGameFailedMessage_JoinGameFailureReason_notInvited; + static constexpr JoinGameFailureReason gameNameInUse = + JoinGameFailedMessage_JoinGameFailureReason_gameNameInUse; + static constexpr JoinGameFailureReason badGameName = + JoinGameFailedMessage_JoinGameFailureReason_badGameName; + static constexpr JoinGameFailureReason invalidSettings = + JoinGameFailedMessage_JoinGameFailureReason_invalidSettings; + static constexpr JoinGameFailureReason ipAddressBlocked = + JoinGameFailedMessage_JoinGameFailureReason_ipAddressBlocked; + static constexpr JoinGameFailureReason rejoinFailed = + JoinGameFailedMessage_JoinGameFailureReason_rejoinFailed; + static constexpr JoinGameFailureReason noSpectatorsAllowed = + JoinGameFailedMessage_JoinGameFailureReason_noSpectatorsAllowed; static inline bool JoinGameFailureReason_IsValid(int value) { return JoinGameFailedMessage_JoinGameFailureReason_IsValid(value); } - static const JoinGameFailureReason JoinGameFailureReason_MIN = + static constexpr JoinGameFailureReason JoinGameFailureReason_MIN = JoinGameFailedMessage_JoinGameFailureReason_JoinGameFailureReason_MIN; - static const JoinGameFailureReason JoinGameFailureReason_MAX = + static constexpr JoinGameFailureReason JoinGameFailureReason_MAX = JoinGameFailedMessage_JoinGameFailureReason_JoinGameFailureReason_MAX; - static const int JoinGameFailureReason_ARRAYSIZE = + static constexpr int JoinGameFailureReason_ARRAYSIZE = JoinGameFailedMessage_JoinGameFailureReason_JoinGameFailureReason_ARRAYSIZE; + template + static inline const std::string& JoinGameFailureReason_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function JoinGameFailureReason_Name."); + return JoinGameFailedMessage_JoinGameFailureReason_Name(enum_t_value); + } + static inline bool JoinGameFailureReason_Parse(const std::string& name, + JoinGameFailureReason* value) { + return JoinGameFailedMessage_JoinGameFailureReason_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kJoinGameFailureReasonFieldNumber = 2, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - inline bool has_joingamefailurereason() const; - inline void clear_joingamefailurereason(); - static const int kJoinGameFailureReasonFieldNumber = 2; - inline ::JoinGameFailedMessage_JoinGameFailureReason joingamefailurereason() const; - inline void set_joingamefailurereason(::JoinGameFailedMessage_JoinGameFailureReason value); + bool has_joingamefailurereason() const; + private: + bool _internal_has_joingamefailurereason() const; + public: + void clear_joingamefailurereason(); + ::JoinGameFailedMessage_JoinGameFailureReason joingamefailurereason() const; + void set_joingamefailurereason(::JoinGameFailedMessage_JoinGameFailureReason value); + private: + ::JoinGameFailedMessage_JoinGameFailureReason _internal_joingamefailurereason() const; + void _internal_set_joingamefailurereason(::JoinGameFailedMessage_JoinGameFailureReason value); + public: // @@protoc_insertion_point(class_scope:JoinGameFailedMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_joingamefailurereason(); - inline void clear_has_joingamefailurereason(); + class _Internal; - ::google::protobuf::uint32 gameid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; int joingamefailurereason_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static JoinGameFailedMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GamePlayerJoinedMessage : public ::google::protobuf::MessageLite { +class GamePlayerJoinedMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GamePlayerJoinedMessage) */ { public: - GamePlayerJoinedMessage(); + inline GamePlayerJoinedMessage() : GamePlayerJoinedMessage(nullptr) {}; virtual ~GamePlayerJoinedMessage(); GamePlayerJoinedMessage(const GamePlayerJoinedMessage& from); + GamePlayerJoinedMessage(GamePlayerJoinedMessage&& from) noexcept + : GamePlayerJoinedMessage() { + *this = ::std::move(from); + } inline GamePlayerJoinedMessage& operator=(const GamePlayerJoinedMessage& from) { CopyFrom(from); return *this; } + inline GamePlayerJoinedMessage& operator=(GamePlayerJoinedMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const GamePlayerJoinedMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GamePlayerJoinedMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GamePlayerJoinedMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 32; - void Swap(GamePlayerJoinedMessage* other); + friend void swap(GamePlayerJoinedMessage& a, GamePlayerJoinedMessage& b) { + a.Swap(&b); + } + inline void Swap(GamePlayerJoinedMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GamePlayerJoinedMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - GamePlayerJoinedMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline GamePlayerJoinedMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + GamePlayerJoinedMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const GamePlayerJoinedMessage& from); void MergeFrom(const GamePlayerJoinedMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(GamePlayerJoinedMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "GamePlayerJoinedMessage"; + } + protected: + explicit GamePlayerJoinedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPlayerIdFieldNumber = 2, + kIsGameAdminFieldNumber = 3, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required bool isGameAdmin = 3; - inline bool has_isgameadmin() const; - inline void clear_isgameadmin(); - static const int kIsGameAdminFieldNumber = 3; - inline bool isgameadmin() const; - inline void set_isgameadmin(bool value); + bool has_isgameadmin() const; + private: + bool _internal_has_isgameadmin() const; + public: + void clear_isgameadmin(); + bool isgameadmin() const; + void set_isgameadmin(bool value); + private: + bool _internal_isgameadmin() const; + void _internal_set_isgameadmin(bool value); + public: // @@protoc_insertion_point(class_scope:GamePlayerJoinedMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_isgameadmin(); - inline void clear_has_isgameadmin(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 playerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; bool isgameadmin_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GamePlayerJoinedMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GamePlayerLeftMessage : public ::google::protobuf::MessageLite { +class GamePlayerLeftMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GamePlayerLeftMessage) */ { public: - GamePlayerLeftMessage(); + inline GamePlayerLeftMessage() : GamePlayerLeftMessage(nullptr) {}; virtual ~GamePlayerLeftMessage(); GamePlayerLeftMessage(const GamePlayerLeftMessage& from); + GamePlayerLeftMessage(GamePlayerLeftMessage&& from) noexcept + : GamePlayerLeftMessage() { + *this = ::std::move(from); + } inline GamePlayerLeftMessage& operator=(const GamePlayerLeftMessage& from) { CopyFrom(from); return *this; } + inline GamePlayerLeftMessage& operator=(GamePlayerLeftMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const GamePlayerLeftMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GamePlayerLeftMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GamePlayerLeftMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 33; - void Swap(GamePlayerLeftMessage* other); + friend void swap(GamePlayerLeftMessage& a, GamePlayerLeftMessage& b) { + a.Swap(&b); + } + inline void Swap(GamePlayerLeftMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GamePlayerLeftMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - GamePlayerLeftMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline GamePlayerLeftMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + GamePlayerLeftMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const GamePlayerLeftMessage& from); void MergeFrom(const GamePlayerLeftMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(GamePlayerLeftMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "GamePlayerLeftMessage"; + } + protected: + explicit GamePlayerLeftMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftReason; - static const GamePlayerLeftReason leftOnRequest = GamePlayerLeftMessage_GamePlayerLeftReason_leftOnRequest; - static const GamePlayerLeftReason leftKicked = GamePlayerLeftMessage_GamePlayerLeftReason_leftKicked; - static const GamePlayerLeftReason leftError = GamePlayerLeftMessage_GamePlayerLeftReason_leftError; + static constexpr GamePlayerLeftReason leftOnRequest = + GamePlayerLeftMessage_GamePlayerLeftReason_leftOnRequest; + static constexpr GamePlayerLeftReason leftKicked = + GamePlayerLeftMessage_GamePlayerLeftReason_leftKicked; + static constexpr GamePlayerLeftReason leftError = + GamePlayerLeftMessage_GamePlayerLeftReason_leftError; static inline bool GamePlayerLeftReason_IsValid(int value) { return GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(value); } - static const GamePlayerLeftReason GamePlayerLeftReason_MIN = + static constexpr GamePlayerLeftReason GamePlayerLeftReason_MIN = GamePlayerLeftMessage_GamePlayerLeftReason_GamePlayerLeftReason_MIN; - static const GamePlayerLeftReason GamePlayerLeftReason_MAX = + static constexpr GamePlayerLeftReason GamePlayerLeftReason_MAX = GamePlayerLeftMessage_GamePlayerLeftReason_GamePlayerLeftReason_MAX; - static const int GamePlayerLeftReason_ARRAYSIZE = + static constexpr int GamePlayerLeftReason_ARRAYSIZE = GamePlayerLeftMessage_GamePlayerLeftReason_GamePlayerLeftReason_ARRAYSIZE; + template + static inline const std::string& GamePlayerLeftReason_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function GamePlayerLeftReason_Name."); + return GamePlayerLeftMessage_GamePlayerLeftReason_Name(enum_t_value); + } + static inline bool GamePlayerLeftReason_Parse(const std::string& name, + GamePlayerLeftReason* value) { + return GamePlayerLeftMessage_GamePlayerLeftReason_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPlayerIdFieldNumber = 2, + kGamePlayerLeftReasonFieldNumber = 3, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - inline bool has_gameplayerleftreason() const; - inline void clear_gameplayerleftreason(); - static const int kGamePlayerLeftReasonFieldNumber = 3; - inline ::GamePlayerLeftMessage_GamePlayerLeftReason gameplayerleftreason() const; - inline void set_gameplayerleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value); + bool has_gameplayerleftreason() const; + private: + bool _internal_has_gameplayerleftreason() const; + public: + void clear_gameplayerleftreason(); + ::GamePlayerLeftMessage_GamePlayerLeftReason gameplayerleftreason() const; + void set_gameplayerleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value); + private: + ::GamePlayerLeftMessage_GamePlayerLeftReason _internal_gameplayerleftreason() const; + void _internal_set_gameplayerleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value); + public: // @@protoc_insertion_point(class_scope:GamePlayerLeftMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_gameplayerleftreason(); - inline void clear_has_gameplayerleftreason(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 playerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; int gameplayerleftreason_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GamePlayerLeftMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameSpectatorJoinedMessage : public ::google::protobuf::MessageLite { +class GameSpectatorJoinedMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GameSpectatorJoinedMessage) */ { public: - GameSpectatorJoinedMessage(); + inline GameSpectatorJoinedMessage() : GameSpectatorJoinedMessage(nullptr) {}; virtual ~GameSpectatorJoinedMessage(); GameSpectatorJoinedMessage(const GameSpectatorJoinedMessage& from); + GameSpectatorJoinedMessage(GameSpectatorJoinedMessage&& from) noexcept + : GameSpectatorJoinedMessage() { + *this = ::std::move(from); + } inline GameSpectatorJoinedMessage& operator=(const GameSpectatorJoinedMessage& from) { CopyFrom(from); return *this; } + inline GameSpectatorJoinedMessage& operator=(GameSpectatorJoinedMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const GameSpectatorJoinedMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameSpectatorJoinedMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameSpectatorJoinedMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 34; - void Swap(GameSpectatorJoinedMessage* other); + friend void swap(GameSpectatorJoinedMessage& a, GameSpectatorJoinedMessage& b) { + a.Swap(&b); + } + inline void Swap(GameSpectatorJoinedMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GameSpectatorJoinedMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - GameSpectatorJoinedMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline GameSpectatorJoinedMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + GameSpectatorJoinedMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const GameSpectatorJoinedMessage& from); void MergeFrom(const GameSpectatorJoinedMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(GameSpectatorJoinedMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "GameSpectatorJoinedMessage"; + } + protected: + explicit GameSpectatorJoinedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPlayerIdFieldNumber = 2, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:GameSpectatorJoinedMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 playerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameSpectatorJoinedMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameSpectatorLeftMessage : public ::google::protobuf::MessageLite { +class GameSpectatorLeftMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GameSpectatorLeftMessage) */ { public: - GameSpectatorLeftMessage(); + inline GameSpectatorLeftMessage() : GameSpectatorLeftMessage(nullptr) {}; virtual ~GameSpectatorLeftMessage(); GameSpectatorLeftMessage(const GameSpectatorLeftMessage& from); + GameSpectatorLeftMessage(GameSpectatorLeftMessage&& from) noexcept + : GameSpectatorLeftMessage() { + *this = ::std::move(from); + } inline GameSpectatorLeftMessage& operator=(const GameSpectatorLeftMessage& from) { CopyFrom(from); return *this; } + inline GameSpectatorLeftMessage& operator=(GameSpectatorLeftMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const GameSpectatorLeftMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameSpectatorLeftMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameSpectatorLeftMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 35; - void Swap(GameSpectatorLeftMessage* other); + friend void swap(GameSpectatorLeftMessage& a, GameSpectatorLeftMessage& b) { + a.Swap(&b); + } + inline void Swap(GameSpectatorLeftMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GameSpectatorLeftMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - GameSpectatorLeftMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline GameSpectatorLeftMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + GameSpectatorLeftMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const GameSpectatorLeftMessage& from); void MergeFrom(const GameSpectatorLeftMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(GameSpectatorLeftMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "GameSpectatorLeftMessage"; + } + protected: + explicit GameSpectatorLeftMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPlayerIdFieldNumber = 2, + kGameSpectatorLeftReasonFieldNumber = 3, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - inline bool has_gamespectatorleftreason() const; - inline void clear_gamespectatorleftreason(); - static const int kGameSpectatorLeftReasonFieldNumber = 3; - inline ::GamePlayerLeftMessage_GamePlayerLeftReason gamespectatorleftreason() const; - inline void set_gamespectatorleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value); + bool has_gamespectatorleftreason() const; + private: + bool _internal_has_gamespectatorleftreason() const; + public: + void clear_gamespectatorleftreason(); + ::GamePlayerLeftMessage_GamePlayerLeftReason gamespectatorleftreason() const; + void set_gamespectatorleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value); + private: + ::GamePlayerLeftMessage_GamePlayerLeftReason _internal_gamespectatorleftreason() const; + void _internal_set_gamespectatorleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value); + public: // @@protoc_insertion_point(class_scope:GameSpectatorLeftMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_gamespectatorleftreason(); - inline void clear_has_gamespectatorleftreason(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 playerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; int gamespectatorleftreason_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameSpectatorLeftMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameAdminChangedMessage : public ::google::protobuf::MessageLite { +class GameAdminChangedMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GameAdminChangedMessage) */ { public: - GameAdminChangedMessage(); + inline GameAdminChangedMessage() : GameAdminChangedMessage(nullptr) {}; virtual ~GameAdminChangedMessage(); GameAdminChangedMessage(const GameAdminChangedMessage& from); + GameAdminChangedMessage(GameAdminChangedMessage&& from) noexcept + : GameAdminChangedMessage() { + *this = ::std::move(from); + } inline GameAdminChangedMessage& operator=(const GameAdminChangedMessage& from) { CopyFrom(from); return *this; } + inline GameAdminChangedMessage& operator=(GameAdminChangedMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const GameAdminChangedMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameAdminChangedMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameAdminChangedMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 36; - void Swap(GameAdminChangedMessage* other); + friend void swap(GameAdminChangedMessage& a, GameAdminChangedMessage& b) { + a.Swap(&b); + } + inline void Swap(GameAdminChangedMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GameAdminChangedMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - GameAdminChangedMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline GameAdminChangedMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + GameAdminChangedMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const GameAdminChangedMessage& from); void MergeFrom(const GameAdminChangedMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(GameAdminChangedMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "GameAdminChangedMessage"; + } + protected: + explicit GameAdminChangedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kNewAdminPlayerIdFieldNumber = 2, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 newAdminPlayerId = 2; - inline bool has_newadminplayerid() const; - inline void clear_newadminplayerid(); - static const int kNewAdminPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 newadminplayerid() const; - inline void set_newadminplayerid(::google::protobuf::uint32 value); + bool has_newadminplayerid() const; + private: + bool _internal_has_newadminplayerid() const; + public: + void clear_newadminplayerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 newadminplayerid() const; + void set_newadminplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_newadminplayerid() const; + void _internal_set_newadminplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:GameAdminChangedMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_newadminplayerid(); - inline void clear_has_newadminplayerid(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 newadminplayerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameAdminChangedMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 newadminplayerid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class RemovedFromGameMessage : public ::google::protobuf::MessageLite { +class RemovedFromGameMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:RemovedFromGameMessage) */ { public: - RemovedFromGameMessage(); + inline RemovedFromGameMessage() : RemovedFromGameMessage(nullptr) {}; virtual ~RemovedFromGameMessage(); RemovedFromGameMessage(const RemovedFromGameMessage& from); + RemovedFromGameMessage(RemovedFromGameMessage&& from) noexcept + : RemovedFromGameMessage() { + *this = ::std::move(from); + } inline RemovedFromGameMessage& operator=(const RemovedFromGameMessage& from) { CopyFrom(from); return *this; } + inline RemovedFromGameMessage& operator=(RemovedFromGameMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const RemovedFromGameMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const RemovedFromGameMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_RemovedFromGameMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 37; - void Swap(RemovedFromGameMessage* other); + friend void swap(RemovedFromGameMessage& a, RemovedFromGameMessage& b) { + a.Swap(&b); + } + inline void Swap(RemovedFromGameMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(RemovedFromGameMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - RemovedFromGameMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline RemovedFromGameMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + RemovedFromGameMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const RemovedFromGameMessage& from); void MergeFrom(const RemovedFromGameMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(RemovedFromGameMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "RemovedFromGameMessage"; + } + protected: + explicit RemovedFromGameMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameReason; - static const RemovedFromGameReason removedOnRequest = RemovedFromGameMessage_RemovedFromGameReason_removedOnRequest; - static const RemovedFromGameReason kickedFromGame = RemovedFromGameMessage_RemovedFromGameReason_kickedFromGame; - static const RemovedFromGameReason gameIsFull = RemovedFromGameMessage_RemovedFromGameReason_gameIsFull; - static const RemovedFromGameReason gameIsRunning = RemovedFromGameMessage_RemovedFromGameReason_gameIsRunning; - static const RemovedFromGameReason gameTimeout = RemovedFromGameMessage_RemovedFromGameReason_gameTimeout; - static const RemovedFromGameReason removedStartFailed = RemovedFromGameMessage_RemovedFromGameReason_removedStartFailed; - static const RemovedFromGameReason gameClosed = RemovedFromGameMessage_RemovedFromGameReason_gameClosed; + static constexpr RemovedFromGameReason removedOnRequest = + RemovedFromGameMessage_RemovedFromGameReason_removedOnRequest; + static constexpr RemovedFromGameReason kickedFromGame = + RemovedFromGameMessage_RemovedFromGameReason_kickedFromGame; + static constexpr RemovedFromGameReason gameIsFull = + RemovedFromGameMessage_RemovedFromGameReason_gameIsFull; + static constexpr RemovedFromGameReason gameIsRunning = + RemovedFromGameMessage_RemovedFromGameReason_gameIsRunning; + static constexpr RemovedFromGameReason gameTimeout = + RemovedFromGameMessage_RemovedFromGameReason_gameTimeout; + static constexpr RemovedFromGameReason removedStartFailed = + RemovedFromGameMessage_RemovedFromGameReason_removedStartFailed; + static constexpr RemovedFromGameReason gameClosed = + RemovedFromGameMessage_RemovedFromGameReason_gameClosed; static inline bool RemovedFromGameReason_IsValid(int value) { return RemovedFromGameMessage_RemovedFromGameReason_IsValid(value); } - static const RemovedFromGameReason RemovedFromGameReason_MIN = + static constexpr RemovedFromGameReason RemovedFromGameReason_MIN = RemovedFromGameMessage_RemovedFromGameReason_RemovedFromGameReason_MIN; - static const RemovedFromGameReason RemovedFromGameReason_MAX = + static constexpr RemovedFromGameReason RemovedFromGameReason_MAX = RemovedFromGameMessage_RemovedFromGameReason_RemovedFromGameReason_MAX; - static const int RemovedFromGameReason_ARRAYSIZE = + static constexpr int RemovedFromGameReason_ARRAYSIZE = RemovedFromGameMessage_RemovedFromGameReason_RemovedFromGameReason_ARRAYSIZE; + template + static inline const std::string& RemovedFromGameReason_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function RemovedFromGameReason_Name."); + return RemovedFromGameMessage_RemovedFromGameReason_Name(enum_t_value); + } + static inline bool RemovedFromGameReason_Parse(const std::string& name, + RemovedFromGameReason* value) { + return RemovedFromGameMessage_RemovedFromGameReason_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kRemovedFromGameReasonFieldNumber = 2, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - inline bool has_removedfromgamereason() const; - inline void clear_removedfromgamereason(); - static const int kRemovedFromGameReasonFieldNumber = 2; - inline ::RemovedFromGameMessage_RemovedFromGameReason removedfromgamereason() const; - inline void set_removedfromgamereason(::RemovedFromGameMessage_RemovedFromGameReason value); + bool has_removedfromgamereason() const; + private: + bool _internal_has_removedfromgamereason() const; + public: + void clear_removedfromgamereason(); + ::RemovedFromGameMessage_RemovedFromGameReason removedfromgamereason() const; + void set_removedfromgamereason(::RemovedFromGameMessage_RemovedFromGameReason value); + private: + ::RemovedFromGameMessage_RemovedFromGameReason _internal_removedfromgamereason() const; + void _internal_set_removedfromgamereason(::RemovedFromGameMessage_RemovedFromGameReason value); + public: // @@protoc_insertion_point(class_scope:RemovedFromGameMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_removedfromgamereason(); - inline void clear_has_removedfromgamereason(); + class _Internal; - ::google::protobuf::uint32 gameid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; int removedfromgamereason_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static RemovedFromGameMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class KickPlayerRequestMessage : public ::google::protobuf::MessageLite { +class KickPlayerRequestMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:KickPlayerRequestMessage) */ { public: - KickPlayerRequestMessage(); + inline KickPlayerRequestMessage() : KickPlayerRequestMessage(nullptr) {}; virtual ~KickPlayerRequestMessage(); KickPlayerRequestMessage(const KickPlayerRequestMessage& from); + KickPlayerRequestMessage(KickPlayerRequestMessage&& from) noexcept + : KickPlayerRequestMessage() { + *this = ::std::move(from); + } inline KickPlayerRequestMessage& operator=(const KickPlayerRequestMessage& from) { CopyFrom(from); return *this; } + inline KickPlayerRequestMessage& operator=(KickPlayerRequestMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const KickPlayerRequestMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const KickPlayerRequestMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_KickPlayerRequestMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 38; - void Swap(KickPlayerRequestMessage* other); + friend void swap(KickPlayerRequestMessage& a, KickPlayerRequestMessage& b) { + a.Swap(&b); + } + inline void Swap(KickPlayerRequestMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(KickPlayerRequestMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - KickPlayerRequestMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline KickPlayerRequestMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + KickPlayerRequestMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const KickPlayerRequestMessage& from); void MergeFrom(const KickPlayerRequestMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(KickPlayerRequestMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "KickPlayerRequestMessage"; + } + protected: + explicit KickPlayerRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPlayerIdFieldNumber = 2, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:KickPlayerRequestMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 playerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static KickPlayerRequestMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class LeaveGameRequestMessage : public ::google::protobuf::MessageLite { +class LeaveGameRequestMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:LeaveGameRequestMessage) */ { public: - LeaveGameRequestMessage(); + inline LeaveGameRequestMessage() : LeaveGameRequestMessage(nullptr) {}; virtual ~LeaveGameRequestMessage(); LeaveGameRequestMessage(const LeaveGameRequestMessage& from); + LeaveGameRequestMessage(LeaveGameRequestMessage&& from) noexcept + : LeaveGameRequestMessage() { + *this = ::std::move(from); + } inline LeaveGameRequestMessage& operator=(const LeaveGameRequestMessage& from) { CopyFrom(from); return *this; } + inline LeaveGameRequestMessage& operator=(LeaveGameRequestMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const LeaveGameRequestMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const LeaveGameRequestMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_LeaveGameRequestMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 39; - void Swap(LeaveGameRequestMessage* other); + friend void swap(LeaveGameRequestMessage& a, LeaveGameRequestMessage& b) { + a.Swap(&b); + } + inline void Swap(LeaveGameRequestMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(LeaveGameRequestMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - LeaveGameRequestMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline LeaveGameRequestMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + LeaveGameRequestMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const LeaveGameRequestMessage& from); void MergeFrom(const LeaveGameRequestMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(LeaveGameRequestMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "LeaveGameRequestMessage"; + } + protected: + explicit LeaveGameRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:LeaveGameRequestMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); + class _Internal; - ::google::protobuf::uint32 gameid_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static LeaveGameRequestMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class InvitePlayerToGameMessage : public ::google::protobuf::MessageLite { +class InvitePlayerToGameMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:InvitePlayerToGameMessage) */ { public: - InvitePlayerToGameMessage(); + inline InvitePlayerToGameMessage() : InvitePlayerToGameMessage(nullptr) {}; virtual ~InvitePlayerToGameMessage(); InvitePlayerToGameMessage(const InvitePlayerToGameMessage& from); + InvitePlayerToGameMessage(InvitePlayerToGameMessage&& from) noexcept + : InvitePlayerToGameMessage() { + *this = ::std::move(from); + } inline InvitePlayerToGameMessage& operator=(const InvitePlayerToGameMessage& from) { CopyFrom(from); return *this; } + inline InvitePlayerToGameMessage& operator=(InvitePlayerToGameMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const InvitePlayerToGameMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const InvitePlayerToGameMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_InvitePlayerToGameMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 40; - void Swap(InvitePlayerToGameMessage* other); + friend void swap(InvitePlayerToGameMessage& a, InvitePlayerToGameMessage& b) { + a.Swap(&b); + } + inline void Swap(InvitePlayerToGameMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(InvitePlayerToGameMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - InvitePlayerToGameMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline InvitePlayerToGameMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + InvitePlayerToGameMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const InvitePlayerToGameMessage& from); void MergeFrom(const InvitePlayerToGameMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(InvitePlayerToGameMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "InvitePlayerToGameMessage"; + } + protected: + explicit InvitePlayerToGameMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPlayerIdFieldNumber = 2, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:InvitePlayerToGameMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 playerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static InvitePlayerToGameMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class InviteNotifyMessage : public ::google::protobuf::MessageLite { +class InviteNotifyMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:InviteNotifyMessage) */ { public: - InviteNotifyMessage(); + inline InviteNotifyMessage() : InviteNotifyMessage(nullptr) {}; virtual ~InviteNotifyMessage(); InviteNotifyMessage(const InviteNotifyMessage& from); + InviteNotifyMessage(InviteNotifyMessage&& from) noexcept + : InviteNotifyMessage() { + *this = ::std::move(from); + } inline InviteNotifyMessage& operator=(const InviteNotifyMessage& from) { CopyFrom(from); return *this; } + inline InviteNotifyMessage& operator=(InviteNotifyMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const InviteNotifyMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const InviteNotifyMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_InviteNotifyMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 41; - void Swap(InviteNotifyMessage* other); + friend void swap(InviteNotifyMessage& a, InviteNotifyMessage& b) { + a.Swap(&b); + } + inline void Swap(InviteNotifyMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(InviteNotifyMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - InviteNotifyMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline InviteNotifyMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + InviteNotifyMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const InviteNotifyMessage& from); void MergeFrom(const InviteNotifyMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(InviteNotifyMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "InviteNotifyMessage"; + } + protected: + explicit InviteNotifyMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPlayerIdWhoFieldNumber = 2, + kPlayerIdByWhomFieldNumber = 3, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerIdWho = 2; - inline bool has_playeridwho() const; - inline void clear_playeridwho(); - static const int kPlayerIdWhoFieldNumber = 2; - inline ::google::protobuf::uint32 playeridwho() const; - inline void set_playeridwho(::google::protobuf::uint32 value); + bool has_playeridwho() const; + private: + bool _internal_has_playeridwho() const; + public: + void clear_playeridwho(); + ::PROTOBUF_NAMESPACE_ID::uint32 playeridwho() const; + void set_playeridwho(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playeridwho() const; + void _internal_set_playeridwho(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerIdByWhom = 3; - inline bool has_playeridbywhom() const; - inline void clear_playeridbywhom(); - static const int kPlayerIdByWhomFieldNumber = 3; - inline ::google::protobuf::uint32 playeridbywhom() const; - inline void set_playeridbywhom(::google::protobuf::uint32 value); + bool has_playeridbywhom() const; + private: + bool _internal_has_playeridbywhom() const; + public: + void clear_playeridbywhom(); + ::PROTOBUF_NAMESPACE_ID::uint32 playeridbywhom() const; + void set_playeridbywhom(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playeridbywhom() const; + void _internal_set_playeridbywhom(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:InviteNotifyMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playeridwho(); - inline void clear_has_playeridwho(); - inline void set_has_playeridbywhom(); - inline void clear_has_playeridbywhom(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 playeridwho_; - ::google::protobuf::uint32 playeridbywhom_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static InviteNotifyMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playeridwho_; + ::PROTOBUF_NAMESPACE_ID::uint32 playeridbywhom_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class RejectGameInvitationMessage : public ::google::protobuf::MessageLite { +class RejectGameInvitationMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:RejectGameInvitationMessage) */ { public: - RejectGameInvitationMessage(); + inline RejectGameInvitationMessage() : RejectGameInvitationMessage(nullptr) {}; virtual ~RejectGameInvitationMessage(); RejectGameInvitationMessage(const RejectGameInvitationMessage& from); + RejectGameInvitationMessage(RejectGameInvitationMessage&& from) noexcept + : RejectGameInvitationMessage() { + *this = ::std::move(from); + } inline RejectGameInvitationMessage& operator=(const RejectGameInvitationMessage& from) { CopyFrom(from); return *this; } + inline RejectGameInvitationMessage& operator=(RejectGameInvitationMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const RejectGameInvitationMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const RejectGameInvitationMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_RejectGameInvitationMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 42; - void Swap(RejectGameInvitationMessage* other); + friend void swap(RejectGameInvitationMessage& a, RejectGameInvitationMessage& b) { + a.Swap(&b); + } + inline void Swap(RejectGameInvitationMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(RejectGameInvitationMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - RejectGameInvitationMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline RejectGameInvitationMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + RejectGameInvitationMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const RejectGameInvitationMessage& from); void MergeFrom(const RejectGameInvitationMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(RejectGameInvitationMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "RejectGameInvitationMessage"; + } + protected: + explicit RejectGameInvitationMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef RejectGameInvitationMessage_RejectGameInvReason RejectGameInvReason; - static const RejectGameInvReason rejectReasonNo = RejectGameInvitationMessage_RejectGameInvReason_rejectReasonNo; - static const RejectGameInvReason rejectReasonBusy = RejectGameInvitationMessage_RejectGameInvReason_rejectReasonBusy; + static constexpr RejectGameInvReason rejectReasonNo = + RejectGameInvitationMessage_RejectGameInvReason_rejectReasonNo; + static constexpr RejectGameInvReason rejectReasonBusy = + RejectGameInvitationMessage_RejectGameInvReason_rejectReasonBusy; static inline bool RejectGameInvReason_IsValid(int value) { return RejectGameInvitationMessage_RejectGameInvReason_IsValid(value); } - static const RejectGameInvReason RejectGameInvReason_MIN = + static constexpr RejectGameInvReason RejectGameInvReason_MIN = RejectGameInvitationMessage_RejectGameInvReason_RejectGameInvReason_MIN; - static const RejectGameInvReason RejectGameInvReason_MAX = + static constexpr RejectGameInvReason RejectGameInvReason_MAX = RejectGameInvitationMessage_RejectGameInvReason_RejectGameInvReason_MAX; - static const int RejectGameInvReason_ARRAYSIZE = + static constexpr int RejectGameInvReason_ARRAYSIZE = RejectGameInvitationMessage_RejectGameInvReason_RejectGameInvReason_ARRAYSIZE; + template + static inline const std::string& RejectGameInvReason_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function RejectGameInvReason_Name."); + return RejectGameInvitationMessage_RejectGameInvReason_Name(enum_t_value); + } + static inline bool RejectGameInvReason_Parse(const std::string& name, + RejectGameInvReason* value) { + return RejectGameInvitationMessage_RejectGameInvReason_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kMyRejectReasonFieldNumber = 2, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - inline bool has_myrejectreason() const; - inline void clear_myrejectreason(); - static const int kMyRejectReasonFieldNumber = 2; - inline ::RejectGameInvitationMessage_RejectGameInvReason myrejectreason() const; - inline void set_myrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value); + bool has_myrejectreason() const; + private: + bool _internal_has_myrejectreason() const; + public: + void clear_myrejectreason(); + ::RejectGameInvitationMessage_RejectGameInvReason myrejectreason() const; + void set_myrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value); + private: + ::RejectGameInvitationMessage_RejectGameInvReason _internal_myrejectreason() const; + void _internal_set_myrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value); + public: // @@protoc_insertion_point(class_scope:RejectGameInvitationMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_myrejectreason(); - inline void clear_has_myrejectreason(); + class _Internal; - ::google::protobuf::uint32 gameid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; int myrejectreason_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static RejectGameInvitationMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class RejectInvNotifyMessage : public ::google::protobuf::MessageLite { +class RejectInvNotifyMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:RejectInvNotifyMessage) */ { public: - RejectInvNotifyMessage(); + inline RejectInvNotifyMessage() : RejectInvNotifyMessage(nullptr) {}; virtual ~RejectInvNotifyMessage(); RejectInvNotifyMessage(const RejectInvNotifyMessage& from); + RejectInvNotifyMessage(RejectInvNotifyMessage&& from) noexcept + : RejectInvNotifyMessage() { + *this = ::std::move(from); + } inline RejectInvNotifyMessage& operator=(const RejectInvNotifyMessage& from) { CopyFrom(from); return *this; } + inline RejectInvNotifyMessage& operator=(RejectInvNotifyMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const RejectInvNotifyMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const RejectInvNotifyMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_RejectInvNotifyMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 43; - void Swap(RejectInvNotifyMessage* other); + friend void swap(RejectInvNotifyMessage& a, RejectInvNotifyMessage& b) { + a.Swap(&b); + } + inline void Swap(RejectInvNotifyMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(RejectInvNotifyMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - RejectInvNotifyMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline RejectInvNotifyMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + RejectInvNotifyMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const RejectInvNotifyMessage& from); void MergeFrom(const RejectInvNotifyMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(RejectInvNotifyMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "RejectInvNotifyMessage"; + } + protected: + explicit RejectInvNotifyMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPlayerIdFieldNumber = 2, + kPlayerRejectReasonFieldNumber = 3, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - inline bool has_playerrejectreason() const; - inline void clear_playerrejectreason(); - static const int kPlayerRejectReasonFieldNumber = 3; - inline ::RejectGameInvitationMessage_RejectGameInvReason playerrejectreason() const; - inline void set_playerrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value); + bool has_playerrejectreason() const; + private: + bool _internal_has_playerrejectreason() const; + public: + void clear_playerrejectreason(); + ::RejectGameInvitationMessage_RejectGameInvReason playerrejectreason() const; + void set_playerrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value); + private: + ::RejectGameInvitationMessage_RejectGameInvReason _internal_playerrejectreason() const; + void _internal_set_playerrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value); + public: // @@protoc_insertion_point(class_scope:RejectInvNotifyMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_playerrejectreason(); - inline void clear_has_playerrejectreason(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 playerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; int playerrejectreason_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static RejectInvNotifyMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class StartEventMessage : public ::google::protobuf::MessageLite { +class StartEventMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:StartEventMessage) */ { public: - StartEventMessage(); + inline StartEventMessage() : StartEventMessage(nullptr) {}; virtual ~StartEventMessage(); StartEventMessage(const StartEventMessage& from); + StartEventMessage(StartEventMessage&& from) noexcept + : StartEventMessage() { + *this = ::std::move(from); + } inline StartEventMessage& operator=(const StartEventMessage& from) { CopyFrom(from); return *this; } + inline StartEventMessage& operator=(StartEventMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const StartEventMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const StartEventMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_StartEventMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 44; - void Swap(StartEventMessage* other); + friend void swap(StartEventMessage& a, StartEventMessage& b) { + a.Swap(&b); + } + inline void Swap(StartEventMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(StartEventMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - StartEventMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline StartEventMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + StartEventMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const StartEventMessage& from); void MergeFrom(const StartEventMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(StartEventMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "StartEventMessage"; + } + protected: + explicit StartEventMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef StartEventMessage_StartEventType StartEventType; - static const StartEventType startEvent = StartEventMessage_StartEventType_startEvent; - static const StartEventType rejoinEvent = StartEventMessage_StartEventType_rejoinEvent; - static const StartEventType reentryEvent = StartEventMessage_StartEventType_reentryEvent; + static constexpr StartEventType startEvent = + StartEventMessage_StartEventType_startEvent; + static constexpr StartEventType rejoinEvent = + StartEventMessage_StartEventType_rejoinEvent; static inline bool StartEventType_IsValid(int value) { return StartEventMessage_StartEventType_IsValid(value); } - static const StartEventType StartEventType_MIN = + static constexpr StartEventType StartEventType_MIN = StartEventMessage_StartEventType_StartEventType_MIN; - static const StartEventType StartEventType_MAX = + static constexpr StartEventType StartEventType_MAX = StartEventMessage_StartEventType_StartEventType_MAX; - static const int StartEventType_ARRAYSIZE = + static constexpr int StartEventType_ARRAYSIZE = StartEventMessage_StartEventType_StartEventType_ARRAYSIZE; + template + static inline const std::string& StartEventType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function StartEventType_Name."); + return StartEventMessage_StartEventType_Name(enum_t_value); + } + static inline bool StartEventType_Parse(const std::string& name, + StartEventType* value) { + return StartEventMessage_StartEventType_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kStartEventTypeFieldNumber = 2, + kFillWithComputerPlayersFieldNumber = 3, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .StartEventMessage.StartEventType startEventType = 2; - inline bool has_starteventtype() const; - inline void clear_starteventtype(); - static const int kStartEventTypeFieldNumber = 2; - inline ::StartEventMessage_StartEventType starteventtype() const; - inline void set_starteventtype(::StartEventMessage_StartEventType value); + bool has_starteventtype() const; + private: + bool _internal_has_starteventtype() const; + public: + void clear_starteventtype(); + ::StartEventMessage_StartEventType starteventtype() const; + void set_starteventtype(::StartEventMessage_StartEventType value); + private: + ::StartEventMessage_StartEventType _internal_starteventtype() const; + void _internal_set_starteventtype(::StartEventMessage_StartEventType value); + public: // optional bool fillWithComputerPlayers = 3; - inline bool has_fillwithcomputerplayers() const; - inline void clear_fillwithcomputerplayers(); - static const int kFillWithComputerPlayersFieldNumber = 3; - inline bool fillwithcomputerplayers() const; - inline void set_fillwithcomputerplayers(bool value); + bool has_fillwithcomputerplayers() const; + private: + bool _internal_has_fillwithcomputerplayers() const; + public: + void clear_fillwithcomputerplayers(); + bool fillwithcomputerplayers() const; + void set_fillwithcomputerplayers(bool value); + private: + bool _internal_fillwithcomputerplayers() const; + void _internal_set_fillwithcomputerplayers(bool value); + public: // @@protoc_insertion_point(class_scope:StartEventMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_starteventtype(); - inline void clear_has_starteventtype(); - inline void set_has_fillwithcomputerplayers(); - inline void clear_has_fillwithcomputerplayers(); + class _Internal; - ::google::protobuf::uint32 gameid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; int starteventtype_; bool fillwithcomputerplayers_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static StartEventMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class StartEventAckMessage : public ::google::protobuf::MessageLite { +class StartEventAckMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:StartEventAckMessage) */ { public: - StartEventAckMessage(); + inline StartEventAckMessage() : StartEventAckMessage(nullptr) {}; virtual ~StartEventAckMessage(); StartEventAckMessage(const StartEventAckMessage& from); + StartEventAckMessage(StartEventAckMessage&& from) noexcept + : StartEventAckMessage() { + *this = ::std::move(from); + } inline StartEventAckMessage& operator=(const StartEventAckMessage& from) { CopyFrom(from); return *this; } + inline StartEventAckMessage& operator=(StartEventAckMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const StartEventAckMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const StartEventAckMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_StartEventAckMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 45; - void Swap(StartEventAckMessage* other); + friend void swap(StartEventAckMessage& a, StartEventAckMessage& b) { + a.Swap(&b); + } + inline void Swap(StartEventAckMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(StartEventAckMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - StartEventAckMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline StartEventAckMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + StartEventAckMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const StartEventAckMessage& from); void MergeFrom(const StartEventAckMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(StartEventAckMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "StartEventAckMessage"; + } + protected: + explicit StartEventAckMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:StartEventAckMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); + class _Internal; - ::google::protobuf::uint32 gameid_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static StartEventAckMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameStartInitialMessage : public ::google::protobuf::MessageLite { +class GameStartInitialMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GameStartInitialMessage) */ { public: - GameStartInitialMessage(); + inline GameStartInitialMessage() : GameStartInitialMessage(nullptr) {}; virtual ~GameStartInitialMessage(); GameStartInitialMessage(const GameStartInitialMessage& from); + GameStartInitialMessage(GameStartInitialMessage&& from) noexcept + : GameStartInitialMessage() { + *this = ::std::move(from); + } inline GameStartInitialMessage& operator=(const GameStartInitialMessage& from) { CopyFrom(from); return *this; } + inline GameStartInitialMessage& operator=(GameStartInitialMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const GameStartInitialMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameStartInitialMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameStartInitialMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 46; - void Swap(GameStartInitialMessage* other); + friend void swap(GameStartInitialMessage& a, GameStartInitialMessage& b) { + a.Swap(&b); + } + inline void Swap(GameStartInitialMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GameStartInitialMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - GameStartInitialMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline GameStartInitialMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + GameStartInitialMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const GameStartInitialMessage& from); void MergeFrom(const GameStartInitialMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(GameStartInitialMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "GameStartInitialMessage"; + } + protected: + explicit GameStartInitialMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kPlayerSeatsFieldNumber = 3, + kGameIdFieldNumber = 1, + kStartDealerPlayerIdFieldNumber = 2, + }; + // repeated uint32 playerSeats = 3 [packed = true]; + int playerseats_size() const; + private: + int _internal_playerseats_size() const; + public: + void clear_playerseats(); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerseats(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& + _internal_playerseats() const; + void _internal_add_playerseats(::PROTOBUF_NAMESPACE_ID::uint32 value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* + _internal_mutable_playerseats(); + public: + ::PROTOBUF_NAMESPACE_ID::uint32 playerseats(int index) const; + void set_playerseats(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value); + void add_playerseats(::PROTOBUF_NAMESPACE_ID::uint32 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& + playerseats() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* + mutable_playerseats(); + // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 startDealerPlayerId = 2; - inline bool has_startdealerplayerid() const; - inline void clear_startdealerplayerid(); - static const int kStartDealerPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 startdealerplayerid() const; - inline void set_startdealerplayerid(::google::protobuf::uint32 value); - - // repeated uint32 playerSeats = 3 [packed = true]; - inline int playerseats_size() const; - inline void clear_playerseats(); - static const int kPlayerSeatsFieldNumber = 3; - inline ::google::protobuf::uint32 playerseats(int index) const; - inline void set_playerseats(int index, ::google::protobuf::uint32 value); - inline void add_playerseats(::google::protobuf::uint32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - playerseats() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_playerseats(); + bool has_startdealerplayerid() const; + private: + bool _internal_has_startdealerplayerid() const; + public: + void clear_startdealerplayerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 startdealerplayerid() const; + void set_startdealerplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_startdealerplayerid() const; + void _internal_set_startdealerplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:GameStartInitialMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_startdealerplayerid(); - inline void clear_has_startdealerplayerid(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 startdealerplayerid_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > playerseats_; - mutable int _playerseats_cached_byte_size_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameStartInitialMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 > playerseats_; + mutable std::atomic _playerseats_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 startdealerplayerid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameStartRejoinMessage_RejoinPlayerData : public ::google::protobuf::MessageLite { +class GameStartRejoinMessage_RejoinPlayerData PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GameStartRejoinMessage.RejoinPlayerData) */ { public: - GameStartRejoinMessage_RejoinPlayerData(); + inline GameStartRejoinMessage_RejoinPlayerData() : GameStartRejoinMessage_RejoinPlayerData(nullptr) {}; virtual ~GameStartRejoinMessage_RejoinPlayerData(); GameStartRejoinMessage_RejoinPlayerData(const GameStartRejoinMessage_RejoinPlayerData& from); + GameStartRejoinMessage_RejoinPlayerData(GameStartRejoinMessage_RejoinPlayerData&& from) noexcept + : GameStartRejoinMessage_RejoinPlayerData() { + *this = ::std::move(from); + } inline GameStartRejoinMessage_RejoinPlayerData& operator=(const GameStartRejoinMessage_RejoinPlayerData& from) { CopyFrom(from); return *this; } + inline GameStartRejoinMessage_RejoinPlayerData& operator=(GameStartRejoinMessage_RejoinPlayerData&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const GameStartRejoinMessage_RejoinPlayerData& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameStartRejoinMessage_RejoinPlayerData* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameStartRejoinMessage_RejoinPlayerData_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 47; - void Swap(GameStartRejoinMessage_RejoinPlayerData* other); + friend void swap(GameStartRejoinMessage_RejoinPlayerData& a, GameStartRejoinMessage_RejoinPlayerData& b) { + a.Swap(&b); + } + inline void Swap(GameStartRejoinMessage_RejoinPlayerData* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GameStartRejoinMessage_RejoinPlayerData* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - GameStartRejoinMessage_RejoinPlayerData* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline GameStartRejoinMessage_RejoinPlayerData* New() const final { + return CreateMaybeMessage(nullptr); + } + + GameStartRejoinMessage_RejoinPlayerData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const GameStartRejoinMessage_RejoinPlayerData& from); void MergeFrom(const GameStartRejoinMessage_RejoinPlayerData& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(GameStartRejoinMessage_RejoinPlayerData* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "GameStartRejoinMessage.RejoinPlayerData"; + } + protected: + explicit GameStartRejoinMessage_RejoinPlayerData(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kPlayerIdFieldNumber = 1, + kPlayerMoneyFieldNumber = 2, + }; // required uint32 playerId = 1; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerMoney = 2; - inline bool has_playermoney() const; - inline void clear_playermoney(); - static const int kPlayerMoneyFieldNumber = 2; - inline ::google::protobuf::uint32 playermoney() const; - inline void set_playermoney(::google::protobuf::uint32 value); + bool has_playermoney() const; + private: + bool _internal_has_playermoney() const; + public: + void clear_playermoney(); + ::PROTOBUF_NAMESPACE_ID::uint32 playermoney() const; + void set_playermoney(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playermoney() const; + void _internal_set_playermoney(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:GameStartRejoinMessage.RejoinPlayerData) private: - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_playermoney(); - inline void clear_has_playermoney(); + class _Internal; - ::google::protobuf::uint32 playerid_; - ::google::protobuf::uint32 playermoney_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameStartRejoinMessage_RejoinPlayerData* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playermoney_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameStartRejoinMessage : public ::google::protobuf::MessageLite { +class GameStartRejoinMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:GameStartRejoinMessage) */ { public: - GameStartRejoinMessage(); + inline GameStartRejoinMessage() : GameStartRejoinMessage(nullptr) {}; virtual ~GameStartRejoinMessage(); GameStartRejoinMessage(const GameStartRejoinMessage& from); + GameStartRejoinMessage(GameStartRejoinMessage&& from) noexcept + : GameStartRejoinMessage() { + *this = ::std::move(from); + } inline GameStartRejoinMessage& operator=(const GameStartRejoinMessage& from) { CopyFrom(from); return *this; } + inline GameStartRejoinMessage& operator=(GameStartRejoinMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const GameStartRejoinMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameStartRejoinMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameStartRejoinMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 48; - void Swap(GameStartRejoinMessage* other); + friend void swap(GameStartRejoinMessage& a, GameStartRejoinMessage& b) { + a.Swap(&b); + } + inline void Swap(GameStartRejoinMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GameStartRejoinMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - GameStartRejoinMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline GameStartRejoinMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + GameStartRejoinMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const GameStartRejoinMessage& from); void MergeFrom(const GameStartRejoinMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(GameStartRejoinMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "GameStartRejoinMessage"; + } + protected: + explicit GameStartRejoinMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- @@ -5831,421 +9878,340 @@ class GameStartRejoinMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- + enum : int { + kRejoinPlayerDataFieldNumber = 4, + kGameIdFieldNumber = 1, + kStartDealerPlayerIdFieldNumber = 2, + kHandNumFieldNumber = 3, + }; + // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; + int rejoinplayerdata_size() const; + private: + int _internal_rejoinplayerdata_size() const; + public: + void clear_rejoinplayerdata(); + ::GameStartRejoinMessage_RejoinPlayerData* mutable_rejoinplayerdata(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData >* + mutable_rejoinplayerdata(); + private: + const ::GameStartRejoinMessage_RejoinPlayerData& _internal_rejoinplayerdata(int index) const; + ::GameStartRejoinMessage_RejoinPlayerData* _internal_add_rejoinplayerdata(); + public: + const ::GameStartRejoinMessage_RejoinPlayerData& rejoinplayerdata(int index) const; + ::GameStartRejoinMessage_RejoinPlayerData* add_rejoinplayerdata(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData >& + rejoinplayerdata() const; + // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 startDealerPlayerId = 2; - inline bool has_startdealerplayerid() const; - inline void clear_startdealerplayerid(); - static const int kStartDealerPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 startdealerplayerid() const; - inline void set_startdealerplayerid(::google::protobuf::uint32 value); + bool has_startdealerplayerid() const; + private: + bool _internal_has_startdealerplayerid() const; + public: + void clear_startdealerplayerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 startdealerplayerid() const; + void set_startdealerplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_startdealerplayerid() const; + void _internal_set_startdealerplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 handNum = 3; - inline bool has_handnum() const; - inline void clear_handnum(); - static const int kHandNumFieldNumber = 3; - inline ::google::protobuf::uint32 handnum() const; - inline void set_handnum(::google::protobuf::uint32 value); - - // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - inline int rejoinplayerdata_size() const; - inline void clear_rejoinplayerdata(); - static const int kRejoinPlayerDataFieldNumber = 4; - inline const ::GameStartRejoinMessage_RejoinPlayerData& rejoinplayerdata(int index) const; - inline ::GameStartRejoinMessage_RejoinPlayerData* mutable_rejoinplayerdata(int index); - inline ::GameStartRejoinMessage_RejoinPlayerData* add_rejoinplayerdata(); - inline const ::google::protobuf::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData >& - rejoinplayerdata() const; - inline ::google::protobuf::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData >* - mutable_rejoinplayerdata(); + bool has_handnum() const; + private: + bool _internal_has_handnum() const; + public: + void clear_handnum(); + ::PROTOBUF_NAMESPACE_ID::uint32 handnum() const; + void set_handnum(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_handnum() const; + void _internal_set_handnum(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:GameStartRejoinMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_startdealerplayerid(); - inline void clear_has_startdealerplayerid(); - inline void set_has_handnum(); - inline void clear_has_handnum(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 startdealerplayerid_; - ::google::protobuf::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData > rejoinplayerdata_; - ::google::protobuf::uint32 handnum_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameStartRejoinMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData > rejoinplayerdata_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 startdealerplayerid_; + ::PROTOBUF_NAMESPACE_ID::uint32 handnum_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameStartReentryMessage_ReentryPlayerData : public ::google::protobuf::MessageLite { +class HandStartMessage_PlainCards PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:HandStartMessage.PlainCards) */ { public: - GameStartReentryMessage_ReentryPlayerData(); - virtual ~GameStartReentryMessage_ReentryPlayerData(); - - GameStartReentryMessage_ReentryPlayerData(const GameStartReentryMessage_ReentryPlayerData& from); - - inline GameStartReentryMessage_ReentryPlayerData& operator=(const GameStartReentryMessage_ReentryPlayerData& from) { - CopyFrom(from); - return *this; - } - - static const GameStartReentryMessage_ReentryPlayerData& default_instance(); - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const GameStartReentryMessage_ReentryPlayerData* internal_default_instance() { - return default_instance_; - } - #endif - - void Swap(GameStartReentryMessage_ReentryPlayerData* other); - - // implements Message ---------------------------------------------- - - GameStartReentryMessage_ReentryPlayerData* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); - void CopyFrom(const GameStartReentryMessage_ReentryPlayerData& from); - void MergeFrom(const GameStartReentryMessage_ReentryPlayerData& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::std::string GetTypeName() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required uint32 playerId = 1; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); - - // required uint32 playerMoney = 2; - inline bool has_playermoney() const; - inline void clear_playermoney(); - static const int kPlayerMoneyFieldNumber = 2; - inline ::google::protobuf::uint32 playermoney() const; - inline void set_playermoney(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:GameStartReentryMessage.ReentryPlayerData) - private: - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_playermoney(); - inline void clear_has_playermoney(); - - ::google::protobuf::uint32 playerid_; - ::google::protobuf::uint32 playermoney_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameStartReentryMessage_ReentryPlayerData* default_instance_; -}; -// ------------------------------------------------------------------- - -class GameStartReentryMessage : public ::google::protobuf::MessageLite { - public: - GameStartReentryMessage(); - virtual ~GameStartReentryMessage(); - - GameStartReentryMessage(const GameStartReentryMessage& from); - - inline GameStartReentryMessage& operator=(const GameStartReentryMessage& from) { - CopyFrom(from); - return *this; - } - - static const GameStartReentryMessage& default_instance(); - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const GameStartReentryMessage* internal_default_instance() { - return default_instance_; - } - #endif - - void Swap(GameStartReentryMessage* other); - - // implements Message ---------------------------------------------- - - GameStartReentryMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); - void CopyFrom(const GameStartReentryMessage& from); - void MergeFrom(const GameStartReentryMessage& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::std::string GetTypeName() const; - - // nested types ---------------------------------------------------- - - typedef GameStartReentryMessage_ReentryPlayerData ReentryPlayerData; - - // accessors ------------------------------------------------------- - - // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); - - // required uint32 startDealerPlayerId = 2; - inline bool has_startdealerplayerid() const; - inline void clear_startdealerplayerid(); - static const int kStartDealerPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 startdealerplayerid() const; - inline void set_startdealerplayerid(::google::protobuf::uint32 value); - - // required uint32 handNum = 3; - inline bool has_handnum() const; - inline void clear_handnum(); - static const int kHandNumFieldNumber = 3; - inline ::google::protobuf::uint32 handnum() const; - inline void set_handnum(::google::protobuf::uint32 value); - - // repeated .GameStartReentryMessage.ReentryPlayerData reentryPlayerData = 4; - inline int reentryplayerdata_size() const; - inline void clear_reentryplayerdata(); - static const int kReentryPlayerDataFieldNumber = 4; - inline const ::GameStartReentryMessage_ReentryPlayerData& reentryplayerdata(int index) const; - inline ::GameStartReentryMessage_ReentryPlayerData* mutable_reentryplayerdata(int index); - inline ::GameStartReentryMessage_ReentryPlayerData* add_reentryplayerdata(); - inline const ::google::protobuf::RepeatedPtrField< ::GameStartReentryMessage_ReentryPlayerData >& - reentryplayerdata() const; - inline ::google::protobuf::RepeatedPtrField< ::GameStartReentryMessage_ReentryPlayerData >* - mutable_reentryplayerdata(); - - // @@protoc_insertion_point(class_scope:GameStartReentryMessage) - private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_startdealerplayerid(); - inline void clear_has_startdealerplayerid(); - inline void set_has_handnum(); - inline void clear_has_handnum(); - - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 startdealerplayerid_; - ::google::protobuf::RepeatedPtrField< ::GameStartReentryMessage_ReentryPlayerData > reentryplayerdata_; - ::google::protobuf::uint32 handnum_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameStartReentryMessage* default_instance_; -}; -// ------------------------------------------------------------------- - -class HandStartMessage_PlainCards : public ::google::protobuf::MessageLite { - public: - HandStartMessage_PlainCards(); + inline HandStartMessage_PlainCards() : HandStartMessage_PlainCards(nullptr) {}; virtual ~HandStartMessage_PlainCards(); HandStartMessage_PlainCards(const HandStartMessage_PlainCards& from); + HandStartMessage_PlainCards(HandStartMessage_PlainCards&& from) noexcept + : HandStartMessage_PlainCards() { + *this = ::std::move(from); + } inline HandStartMessage_PlainCards& operator=(const HandStartMessage_PlainCards& from) { CopyFrom(from); return *this; } + inline HandStartMessage_PlainCards& operator=(HandStartMessage_PlainCards&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const HandStartMessage_PlainCards& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const HandStartMessage_PlainCards* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_HandStartMessage_PlainCards_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 49; - void Swap(HandStartMessage_PlainCards* other); + friend void swap(HandStartMessage_PlainCards& a, HandStartMessage_PlainCards& b) { + a.Swap(&b); + } + inline void Swap(HandStartMessage_PlainCards* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HandStartMessage_PlainCards* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - HandStartMessage_PlainCards* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline HandStartMessage_PlainCards* New() const final { + return CreateMaybeMessage(nullptr); + } + + HandStartMessage_PlainCards* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const HandStartMessage_PlainCards& from); void MergeFrom(const HandStartMessage_PlainCards& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(HandStartMessage_PlainCards* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "HandStartMessage.PlainCards"; + } + protected: + explicit HandStartMessage_PlainCards(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kPlainCard1FieldNumber = 1, + kPlainCard2FieldNumber = 2, + }; // required uint32 plainCard1 = 1; - inline bool has_plaincard1() const; - inline void clear_plaincard1(); - static const int kPlainCard1FieldNumber = 1; - inline ::google::protobuf::uint32 plaincard1() const; - inline void set_plaincard1(::google::protobuf::uint32 value); + bool has_plaincard1() const; + private: + bool _internal_has_plaincard1() const; + public: + void clear_plaincard1(); + ::PROTOBUF_NAMESPACE_ID::uint32 plaincard1() const; + void set_plaincard1(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_plaincard1() const; + void _internal_set_plaincard1(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 plainCard2 = 2; - inline bool has_plaincard2() const; - inline void clear_plaincard2(); - static const int kPlainCard2FieldNumber = 2; - inline ::google::protobuf::uint32 plaincard2() const; - inline void set_plaincard2(::google::protobuf::uint32 value); + bool has_plaincard2() const; + private: + bool _internal_has_plaincard2() const; + public: + void clear_plaincard2(); + ::PROTOBUF_NAMESPACE_ID::uint32 plaincard2() const; + void set_plaincard2(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_plaincard2() const; + void _internal_set_plaincard2(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:HandStartMessage.PlainCards) private: - inline void set_has_plaincard1(); - inline void clear_has_plaincard1(); - inline void set_has_plaincard2(); - inline void clear_has_plaincard2(); + class _Internal; - ::google::protobuf::uint32 plaincard1_; - ::google::protobuf::uint32 plaincard2_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static HandStartMessage_PlainCards* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 plaincard1_; + ::PROTOBUF_NAMESPACE_ID::uint32 plaincard2_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class HandStartMessage : public ::google::protobuf::MessageLite { +class HandStartMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:HandStartMessage) */ { public: - HandStartMessage(); + inline HandStartMessage() : HandStartMessage(nullptr) {}; virtual ~HandStartMessage(); HandStartMessage(const HandStartMessage& from); + HandStartMessage(HandStartMessage&& from) noexcept + : HandStartMessage() { + *this = ::std::move(from); + } inline HandStartMessage& operator=(const HandStartMessage& from) { CopyFrom(from); return *this; } + inline HandStartMessage& operator=(HandStartMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const HandStartMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const HandStartMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_HandStartMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 50; - void Swap(HandStartMessage* other); + friend void swap(HandStartMessage& a, HandStartMessage& b) { + a.Swap(&b); + } + inline void Swap(HandStartMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HandStartMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - HandStartMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline HandStartMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + HandStartMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const HandStartMessage& from); void MergeFrom(const HandStartMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(HandStartMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "HandStartMessage"; + } + protected: + explicit HandStartMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- @@ -6253,1060 +10219,1722 @@ class HandStartMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- - // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); - - // optional .HandStartMessage.PlainCards plainCards = 2; - inline bool has_plaincards() const; - inline void clear_plaincards(); - static const int kPlainCardsFieldNumber = 2; - inline const ::HandStartMessage_PlainCards& plaincards() const; - inline ::HandStartMessage_PlainCards* mutable_plaincards(); - inline ::HandStartMessage_PlainCards* release_plaincards(); - inline void set_allocated_plaincards(::HandStartMessage_PlainCards* plaincards); + enum : int { + kSeatStatesFieldNumber = 5, + kEncryptedCardsFieldNumber = 3, + kPlainCardsFieldNumber = 2, + kGameIdFieldNumber = 1, + kSmallBlindFieldNumber = 4, + kDealerPlayerIdFieldNumber = 6, + }; + // repeated .NetPlayerState seatStates = 5; + int seatstates_size() const; + private: + int _internal_seatstates_size() const; + public: + void clear_seatstates(); + private: + ::NetPlayerState _internal_seatstates(int index) const; + void _internal_add_seatstates(::NetPlayerState value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_seatstates(); + public: + ::NetPlayerState seatstates(int index) const; + void set_seatstates(int index, ::NetPlayerState value); + void add_seatstates(::NetPlayerState value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField& seatstates() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_seatstates(); // optional bytes encryptedCards = 3; - inline bool has_encryptedcards() const; - inline void clear_encryptedcards(); - static const int kEncryptedCardsFieldNumber = 3; - inline const ::std::string& encryptedcards() const; - inline void set_encryptedcards(const ::std::string& value); - inline void set_encryptedcards(const char* value); - inline void set_encryptedcards(const void* value, size_t size); - inline ::std::string* mutable_encryptedcards(); - inline ::std::string* release_encryptedcards(); - inline void set_allocated_encryptedcards(::std::string* encryptedcards); + bool has_encryptedcards() const; + private: + bool _internal_has_encryptedcards() const; + public: + void clear_encryptedcards(); + const std::string& encryptedcards() const; + void set_encryptedcards(const std::string& value); + void set_encryptedcards(std::string&& value); + void set_encryptedcards(const char* value); + void set_encryptedcards(const void* value, size_t size); + std::string* mutable_encryptedcards(); + std::string* release_encryptedcards(); + void set_allocated_encryptedcards(std::string* encryptedcards); + 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_encryptedcards(); + 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_encryptedcards( + std::string* encryptedcards); + private: + const std::string& _internal_encryptedcards() const; + void _internal_set_encryptedcards(const std::string& value); + std::string* _internal_mutable_encryptedcards(); + public: + + // optional .HandStartMessage.PlainCards plainCards = 2; + bool has_plaincards() const; + private: + bool _internal_has_plaincards() const; + public: + void clear_plaincards(); + const ::HandStartMessage_PlainCards& plaincards() const; + ::HandStartMessage_PlainCards* release_plaincards(); + ::HandStartMessage_PlainCards* mutable_plaincards(); + void set_allocated_plaincards(::HandStartMessage_PlainCards* plaincards); + private: + const ::HandStartMessage_PlainCards& _internal_plaincards() const; + ::HandStartMessage_PlainCards* _internal_mutable_plaincards(); + public: + void unsafe_arena_set_allocated_plaincards( + ::HandStartMessage_PlainCards* plaincards); + ::HandStartMessage_PlainCards* unsafe_arena_release_plaincards(); + + // required uint32 gameId = 1; + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 smallBlind = 4; - inline bool has_smallblind() const; - inline void clear_smallblind(); - static const int kSmallBlindFieldNumber = 4; - inline ::google::protobuf::uint32 smallblind() const; - inline void set_smallblind(::google::protobuf::uint32 value); - - // repeated .NetPlayerState seatStates = 5; - inline int seatstates_size() const; - inline void clear_seatstates(); - static const int kSeatStatesFieldNumber = 5; - inline ::NetPlayerState seatstates(int index) const; - inline void set_seatstates(int index, ::NetPlayerState value); - inline void add_seatstates(::NetPlayerState value); - inline const ::google::protobuf::RepeatedField& seatstates() const; - inline ::google::protobuf::RepeatedField* mutable_seatstates(); + bool has_smallblind() const; + private: + bool _internal_has_smallblind() const; + public: + void clear_smallblind(); + ::PROTOBUF_NAMESPACE_ID::uint32 smallblind() const; + void set_smallblind(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_smallblind() const; + void _internal_set_smallblind(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // optional uint32 dealerPlayerId = 6; - inline bool has_dealerplayerid() const; - inline void clear_dealerplayerid(); - static const int kDealerPlayerIdFieldNumber = 6; - inline ::google::protobuf::uint32 dealerplayerid() const; - inline void set_dealerplayerid(::google::protobuf::uint32 value); + bool has_dealerplayerid() const; + private: + bool _internal_has_dealerplayerid() const; + public: + void clear_dealerplayerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 dealerplayerid() const; + void set_dealerplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_dealerplayerid() const; + void _internal_set_dealerplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:HandStartMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_plaincards(); - inline void clear_has_plaincards(); - inline void set_has_encryptedcards(); - inline void clear_has_encryptedcards(); - inline void set_has_smallblind(); - inline void clear_has_smallblind(); - inline void set_has_dealerplayerid(); - inline void clear_has_dealerplayerid(); + class _Internal; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField seatstates_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr encryptedcards_; ::HandStartMessage_PlainCards* plaincards_; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 smallblind_; - ::std::string* encryptedcards_; - ::google::protobuf::RepeatedField seatstates_; - ::google::protobuf::uint32 dealerplayerid_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static HandStartMessage* default_instance_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 smallblind_; + ::PROTOBUF_NAMESPACE_ID::uint32 dealerplayerid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class PlayersTurnMessage : public ::google::protobuf::MessageLite { +class PlayersTurnMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:PlayersTurnMessage) */ { public: - PlayersTurnMessage(); + inline PlayersTurnMessage() : PlayersTurnMessage(nullptr) {}; virtual ~PlayersTurnMessage(); PlayersTurnMessage(const PlayersTurnMessage& from); + PlayersTurnMessage(PlayersTurnMessage&& from) noexcept + : PlayersTurnMessage() { + *this = ::std::move(from); + } inline PlayersTurnMessage& operator=(const PlayersTurnMessage& from) { CopyFrom(from); return *this; } + inline PlayersTurnMessage& operator=(PlayersTurnMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const PlayersTurnMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PlayersTurnMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_PlayersTurnMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 51; - void Swap(PlayersTurnMessage* other); + friend void swap(PlayersTurnMessage& a, PlayersTurnMessage& b) { + a.Swap(&b); + } + inline void Swap(PlayersTurnMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PlayersTurnMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - PlayersTurnMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline PlayersTurnMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + PlayersTurnMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const PlayersTurnMessage& from); void MergeFrom(const PlayersTurnMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(PlayersTurnMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "PlayersTurnMessage"; + } + protected: + explicit PlayersTurnMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPlayerIdFieldNumber = 2, + kGameStateFieldNumber = 3, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .NetGameState gameState = 3; - inline bool has_gamestate() const; - inline void clear_gamestate(); - static const int kGameStateFieldNumber = 3; - inline ::NetGameState gamestate() const; - inline void set_gamestate(::NetGameState value); + bool has_gamestate() const; + private: + bool _internal_has_gamestate() const; + public: + void clear_gamestate(); + ::NetGameState gamestate() const; + void set_gamestate(::NetGameState value); + private: + ::NetGameState _internal_gamestate() const; + void _internal_set_gamestate(::NetGameState value); + public: // @@protoc_insertion_point(class_scope:PlayersTurnMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_gamestate(); - inline void clear_has_gamestate(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 playerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; int gamestate_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static PlayersTurnMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class MyActionRequestMessage : public ::google::protobuf::MessageLite { +class MyActionRequestMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:MyActionRequestMessage) */ { public: - MyActionRequestMessage(); + inline MyActionRequestMessage() : MyActionRequestMessage(nullptr) {}; virtual ~MyActionRequestMessage(); MyActionRequestMessage(const MyActionRequestMessage& from); + MyActionRequestMessage(MyActionRequestMessage&& from) noexcept + : MyActionRequestMessage() { + *this = ::std::move(from); + } inline MyActionRequestMessage& operator=(const MyActionRequestMessage& from) { CopyFrom(from); return *this; } + inline MyActionRequestMessage& operator=(MyActionRequestMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const MyActionRequestMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MyActionRequestMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_MyActionRequestMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 52; - void Swap(MyActionRequestMessage* other); + friend void swap(MyActionRequestMessage& a, MyActionRequestMessage& b) { + a.Swap(&b); + } + inline void Swap(MyActionRequestMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MyActionRequestMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - MyActionRequestMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline MyActionRequestMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + MyActionRequestMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const MyActionRequestMessage& from); void MergeFrom(const MyActionRequestMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(MyActionRequestMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "MyActionRequestMessage"; + } + protected: + explicit MyActionRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kHandNumFieldNumber = 2, + kGameStateFieldNumber = 3, + kMyActionFieldNumber = 4, + kMyRelativeBetFieldNumber = 5, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 handNum = 2; - inline bool has_handnum() const; - inline void clear_handnum(); - static const int kHandNumFieldNumber = 2; - inline ::google::protobuf::uint32 handnum() const; - inline void set_handnum(::google::protobuf::uint32 value); + bool has_handnum() const; + private: + bool _internal_has_handnum() const; + public: + void clear_handnum(); + ::PROTOBUF_NAMESPACE_ID::uint32 handnum() const; + void set_handnum(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_handnum() const; + void _internal_set_handnum(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .NetGameState gameState = 3; - inline bool has_gamestate() const; - inline void clear_gamestate(); - static const int kGameStateFieldNumber = 3; - inline ::NetGameState gamestate() const; - inline void set_gamestate(::NetGameState value); + bool has_gamestate() const; + private: + bool _internal_has_gamestate() const; + public: + void clear_gamestate(); + ::NetGameState gamestate() const; + void set_gamestate(::NetGameState value); + private: + ::NetGameState _internal_gamestate() const; + void _internal_set_gamestate(::NetGameState value); + public: // required .NetPlayerAction myAction = 4; - inline bool has_myaction() const; - inline void clear_myaction(); - static const int kMyActionFieldNumber = 4; - inline ::NetPlayerAction myaction() const; - inline void set_myaction(::NetPlayerAction value); + bool has_myaction() const; + private: + bool _internal_has_myaction() const; + public: + void clear_myaction(); + ::NetPlayerAction myaction() const; + void set_myaction(::NetPlayerAction value); + private: + ::NetPlayerAction _internal_myaction() const; + void _internal_set_myaction(::NetPlayerAction value); + public: // required uint32 myRelativeBet = 5; - inline bool has_myrelativebet() const; - inline void clear_myrelativebet(); - static const int kMyRelativeBetFieldNumber = 5; - inline ::google::protobuf::uint32 myrelativebet() const; - inline void set_myrelativebet(::google::protobuf::uint32 value); + bool has_myrelativebet() const; + private: + bool _internal_has_myrelativebet() const; + public: + void clear_myrelativebet(); + ::PROTOBUF_NAMESPACE_ID::uint32 myrelativebet() const; + void set_myrelativebet(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_myrelativebet() const; + void _internal_set_myrelativebet(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:MyActionRequestMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_handnum(); - inline void clear_has_handnum(); - inline void set_has_gamestate(); - inline void clear_has_gamestate(); - inline void set_has_myaction(); - inline void clear_has_myaction(); - inline void set_has_myrelativebet(); - inline void clear_has_myrelativebet(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 handnum_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 handnum_; int gamestate_; int myaction_; - ::google::protobuf::uint32 myrelativebet_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static MyActionRequestMessage* default_instance_; + ::PROTOBUF_NAMESPACE_ID::uint32 myrelativebet_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class YourActionRejectedMessage : public ::google::protobuf::MessageLite { +class YourActionRejectedMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:YourActionRejectedMessage) */ { public: - YourActionRejectedMessage(); + inline YourActionRejectedMessage() : YourActionRejectedMessage(nullptr) {}; virtual ~YourActionRejectedMessage(); YourActionRejectedMessage(const YourActionRejectedMessage& from); + YourActionRejectedMessage(YourActionRejectedMessage&& from) noexcept + : YourActionRejectedMessage() { + *this = ::std::move(from); + } inline YourActionRejectedMessage& operator=(const YourActionRejectedMessage& from) { CopyFrom(from); return *this; } + inline YourActionRejectedMessage& operator=(YourActionRejectedMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const YourActionRejectedMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const YourActionRejectedMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_YourActionRejectedMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 53; - void Swap(YourActionRejectedMessage* other); + friend void swap(YourActionRejectedMessage& a, YourActionRejectedMessage& b) { + a.Swap(&b); + } + inline void Swap(YourActionRejectedMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(YourActionRejectedMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - YourActionRejectedMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline YourActionRejectedMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + YourActionRejectedMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const YourActionRejectedMessage& from); void MergeFrom(const YourActionRejectedMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(YourActionRejectedMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "YourActionRejectedMessage"; + } + protected: + explicit YourActionRejectedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef YourActionRejectedMessage_RejectionReason RejectionReason; - static const RejectionReason rejectedInvalidGameState = YourActionRejectedMessage_RejectionReason_rejectedInvalidGameState; - static const RejectionReason rejectedNotYourTurn = YourActionRejectedMessage_RejectionReason_rejectedNotYourTurn; - static const RejectionReason rejectedActionNotAllowed = YourActionRejectedMessage_RejectionReason_rejectedActionNotAllowed; + static constexpr RejectionReason rejectedInvalidGameState = + YourActionRejectedMessage_RejectionReason_rejectedInvalidGameState; + static constexpr RejectionReason rejectedNotYourTurn = + YourActionRejectedMessage_RejectionReason_rejectedNotYourTurn; + static constexpr RejectionReason rejectedActionNotAllowed = + YourActionRejectedMessage_RejectionReason_rejectedActionNotAllowed; static inline bool RejectionReason_IsValid(int value) { return YourActionRejectedMessage_RejectionReason_IsValid(value); } - static const RejectionReason RejectionReason_MIN = + static constexpr RejectionReason RejectionReason_MIN = YourActionRejectedMessage_RejectionReason_RejectionReason_MIN; - static const RejectionReason RejectionReason_MAX = + static constexpr RejectionReason RejectionReason_MAX = YourActionRejectedMessage_RejectionReason_RejectionReason_MAX; - static const int RejectionReason_ARRAYSIZE = + static constexpr int RejectionReason_ARRAYSIZE = YourActionRejectedMessage_RejectionReason_RejectionReason_ARRAYSIZE; + template + static inline const std::string& RejectionReason_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function RejectionReason_Name."); + return YourActionRejectedMessage_RejectionReason_Name(enum_t_value); + } + static inline bool RejectionReason_Parse(const std::string& name, + RejectionReason* value) { + return YourActionRejectedMessage_RejectionReason_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kGameStateFieldNumber = 2, + kYourActionFieldNumber = 3, + kYourRelativeBetFieldNumber = 4, + kRejectionReasonFieldNumber = 5, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .NetGameState gameState = 2; - inline bool has_gamestate() const; - inline void clear_gamestate(); - static const int kGameStateFieldNumber = 2; - inline ::NetGameState gamestate() const; - inline void set_gamestate(::NetGameState value); + bool has_gamestate() const; + private: + bool _internal_has_gamestate() const; + public: + void clear_gamestate(); + ::NetGameState gamestate() const; + void set_gamestate(::NetGameState value); + private: + ::NetGameState _internal_gamestate() const; + void _internal_set_gamestate(::NetGameState value); + public: // required .NetPlayerAction yourAction = 3; - inline bool has_youraction() const; - inline void clear_youraction(); - static const int kYourActionFieldNumber = 3; - inline ::NetPlayerAction youraction() const; - inline void set_youraction(::NetPlayerAction value); + bool has_youraction() const; + private: + bool _internal_has_youraction() const; + public: + void clear_youraction(); + ::NetPlayerAction youraction() const; + void set_youraction(::NetPlayerAction value); + private: + ::NetPlayerAction _internal_youraction() const; + void _internal_set_youraction(::NetPlayerAction value); + public: // required uint32 yourRelativeBet = 4; - inline bool has_yourrelativebet() const; - inline void clear_yourrelativebet(); - static const int kYourRelativeBetFieldNumber = 4; - inline ::google::protobuf::uint32 yourrelativebet() const; - inline void set_yourrelativebet(::google::protobuf::uint32 value); + bool has_yourrelativebet() const; + private: + bool _internal_has_yourrelativebet() const; + public: + void clear_yourrelativebet(); + ::PROTOBUF_NAMESPACE_ID::uint32 yourrelativebet() const; + void set_yourrelativebet(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_yourrelativebet() const; + void _internal_set_yourrelativebet(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - inline bool has_rejectionreason() const; - inline void clear_rejectionreason(); - static const int kRejectionReasonFieldNumber = 5; - inline ::YourActionRejectedMessage_RejectionReason rejectionreason() const; - inline void set_rejectionreason(::YourActionRejectedMessage_RejectionReason value); + bool has_rejectionreason() const; + private: + bool _internal_has_rejectionreason() const; + public: + void clear_rejectionreason(); + ::YourActionRejectedMessage_RejectionReason rejectionreason() const; + void set_rejectionreason(::YourActionRejectedMessage_RejectionReason value); + private: + ::YourActionRejectedMessage_RejectionReason _internal_rejectionreason() const; + void _internal_set_rejectionreason(::YourActionRejectedMessage_RejectionReason value); + public: // @@protoc_insertion_point(class_scope:YourActionRejectedMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_gamestate(); - inline void clear_has_gamestate(); - inline void set_has_youraction(); - inline void clear_has_youraction(); - inline void set_has_yourrelativebet(); - inline void clear_has_yourrelativebet(); - inline void set_has_rejectionreason(); - inline void clear_has_rejectionreason(); + class _Internal; - ::google::protobuf::uint32 gameid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; int gamestate_; int youraction_; - ::google::protobuf::uint32 yourrelativebet_; + ::PROTOBUF_NAMESPACE_ID::uint32 yourrelativebet_; int rejectionreason_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static YourActionRejectedMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class PlayersActionDoneMessage : public ::google::protobuf::MessageLite { +class PlayersActionDoneMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:PlayersActionDoneMessage) */ { public: - PlayersActionDoneMessage(); + inline PlayersActionDoneMessage() : PlayersActionDoneMessage(nullptr) {}; virtual ~PlayersActionDoneMessage(); PlayersActionDoneMessage(const PlayersActionDoneMessage& from); + PlayersActionDoneMessage(PlayersActionDoneMessage&& from) noexcept + : PlayersActionDoneMessage() { + *this = ::std::move(from); + } inline PlayersActionDoneMessage& operator=(const PlayersActionDoneMessage& from) { CopyFrom(from); return *this; } + inline PlayersActionDoneMessage& operator=(PlayersActionDoneMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const PlayersActionDoneMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PlayersActionDoneMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_PlayersActionDoneMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 54; - void Swap(PlayersActionDoneMessage* other); + friend void swap(PlayersActionDoneMessage& a, PlayersActionDoneMessage& b) { + a.Swap(&b); + } + inline void Swap(PlayersActionDoneMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PlayersActionDoneMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - PlayersActionDoneMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline PlayersActionDoneMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + PlayersActionDoneMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const PlayersActionDoneMessage& from); void MergeFrom(const PlayersActionDoneMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(PlayersActionDoneMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "PlayersActionDoneMessage"; + } + protected: + explicit PlayersActionDoneMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPlayerIdFieldNumber = 2, + kGameStateFieldNumber = 3, + kPlayerActionFieldNumber = 4, + kTotalPlayerBetFieldNumber = 5, + kPlayerMoneyFieldNumber = 6, + kHighestSetFieldNumber = 7, + kMinimumRaiseFieldNumber = 8, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .NetGameState gameState = 3; - inline bool has_gamestate() const; - inline void clear_gamestate(); - static const int kGameStateFieldNumber = 3; - inline ::NetGameState gamestate() const; - inline void set_gamestate(::NetGameState value); + bool has_gamestate() const; + private: + bool _internal_has_gamestate() const; + public: + void clear_gamestate(); + ::NetGameState gamestate() const; + void set_gamestate(::NetGameState value); + private: + ::NetGameState _internal_gamestate() const; + void _internal_set_gamestate(::NetGameState value); + public: // required .NetPlayerAction playerAction = 4; - inline bool has_playeraction() const; - inline void clear_playeraction(); - static const int kPlayerActionFieldNumber = 4; - inline ::NetPlayerAction playeraction() const; - inline void set_playeraction(::NetPlayerAction value); + bool has_playeraction() const; + private: + bool _internal_has_playeraction() const; + public: + void clear_playeraction(); + ::NetPlayerAction playeraction() const; + void set_playeraction(::NetPlayerAction value); + private: + ::NetPlayerAction _internal_playeraction() const; + void _internal_set_playeraction(::NetPlayerAction value); + public: // required uint32 totalPlayerBet = 5; - inline bool has_totalplayerbet() const; - inline void clear_totalplayerbet(); - static const int kTotalPlayerBetFieldNumber = 5; - inline ::google::protobuf::uint32 totalplayerbet() const; - inline void set_totalplayerbet(::google::protobuf::uint32 value); + bool has_totalplayerbet() const; + private: + bool _internal_has_totalplayerbet() const; + public: + void clear_totalplayerbet(); + ::PROTOBUF_NAMESPACE_ID::uint32 totalplayerbet() const; + void set_totalplayerbet(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_totalplayerbet() const; + void _internal_set_totalplayerbet(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerMoney = 6; - inline bool has_playermoney() const; - inline void clear_playermoney(); - static const int kPlayerMoneyFieldNumber = 6; - inline ::google::protobuf::uint32 playermoney() const; - inline void set_playermoney(::google::protobuf::uint32 value); + bool has_playermoney() const; + private: + bool _internal_has_playermoney() const; + public: + void clear_playermoney(); + ::PROTOBUF_NAMESPACE_ID::uint32 playermoney() const; + void set_playermoney(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playermoney() const; + void _internal_set_playermoney(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 highestSet = 7; - inline bool has_highestset() const; - inline void clear_highestset(); - static const int kHighestSetFieldNumber = 7; - inline ::google::protobuf::uint32 highestset() const; - inline void set_highestset(::google::protobuf::uint32 value); + bool has_highestset() const; + private: + bool _internal_has_highestset() const; + public: + void clear_highestset(); + ::PROTOBUF_NAMESPACE_ID::uint32 highestset() const; + void set_highestset(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_highestset() const; + void _internal_set_highestset(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 minimumRaise = 8; - inline bool has_minimumraise() const; - inline void clear_minimumraise(); - static const int kMinimumRaiseFieldNumber = 8; - inline ::google::protobuf::uint32 minimumraise() const; - inline void set_minimumraise(::google::protobuf::uint32 value); + bool has_minimumraise() const; + private: + bool _internal_has_minimumraise() const; + public: + void clear_minimumraise(); + ::PROTOBUF_NAMESPACE_ID::uint32 minimumraise() const; + void set_minimumraise(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_minimumraise() const; + void _internal_set_minimumraise(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:PlayersActionDoneMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_gamestate(); - inline void clear_has_gamestate(); - inline void set_has_playeraction(); - inline void clear_has_playeraction(); - inline void set_has_totalplayerbet(); - inline void clear_has_totalplayerbet(); - inline void set_has_playermoney(); - inline void clear_has_playermoney(); - inline void set_has_highestset(); - inline void clear_has_highestset(); - inline void set_has_minimumraise(); - inline void clear_has_minimumraise(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 playerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; int gamestate_; int playeraction_; - ::google::protobuf::uint32 totalplayerbet_; - ::google::protobuf::uint32 playermoney_; - ::google::protobuf::uint32 highestset_; - ::google::protobuf::uint32 minimumraise_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static PlayersActionDoneMessage* default_instance_; + ::PROTOBUF_NAMESPACE_ID::uint32 totalplayerbet_; + ::PROTOBUF_NAMESPACE_ID::uint32 playermoney_; + ::PROTOBUF_NAMESPACE_ID::uint32 highestset_; + ::PROTOBUF_NAMESPACE_ID::uint32 minimumraise_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class DealFlopCardsMessage : public ::google::protobuf::MessageLite { +class DealFlopCardsMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:DealFlopCardsMessage) */ { public: - DealFlopCardsMessage(); + inline DealFlopCardsMessage() : DealFlopCardsMessage(nullptr) {}; virtual ~DealFlopCardsMessage(); DealFlopCardsMessage(const DealFlopCardsMessage& from); + DealFlopCardsMessage(DealFlopCardsMessage&& from) noexcept + : DealFlopCardsMessage() { + *this = ::std::move(from); + } inline DealFlopCardsMessage& operator=(const DealFlopCardsMessage& from) { CopyFrom(from); return *this; } + inline DealFlopCardsMessage& operator=(DealFlopCardsMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const DealFlopCardsMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const DealFlopCardsMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_DealFlopCardsMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 55; - void Swap(DealFlopCardsMessage* other); + friend void swap(DealFlopCardsMessage& a, DealFlopCardsMessage& b) { + a.Swap(&b); + } + inline void Swap(DealFlopCardsMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DealFlopCardsMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - DealFlopCardsMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline DealFlopCardsMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + DealFlopCardsMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const DealFlopCardsMessage& from); void MergeFrom(const DealFlopCardsMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(DealFlopCardsMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "DealFlopCardsMessage"; + } + protected: + explicit DealFlopCardsMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kFlopCard1FieldNumber = 2, + kFlopCard2FieldNumber = 3, + kFlopCard3FieldNumber = 4, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 flopCard1 = 2; - inline bool has_flopcard1() const; - inline void clear_flopcard1(); - static const int kFlopCard1FieldNumber = 2; - inline ::google::protobuf::uint32 flopcard1() const; - inline void set_flopcard1(::google::protobuf::uint32 value); + bool has_flopcard1() const; + private: + bool _internal_has_flopcard1() const; + public: + void clear_flopcard1(); + ::PROTOBUF_NAMESPACE_ID::uint32 flopcard1() const; + void set_flopcard1(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_flopcard1() const; + void _internal_set_flopcard1(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 flopCard2 = 3; - inline bool has_flopcard2() const; - inline void clear_flopcard2(); - static const int kFlopCard2FieldNumber = 3; - inline ::google::protobuf::uint32 flopcard2() const; - inline void set_flopcard2(::google::protobuf::uint32 value); + bool has_flopcard2() const; + private: + bool _internal_has_flopcard2() const; + public: + void clear_flopcard2(); + ::PROTOBUF_NAMESPACE_ID::uint32 flopcard2() const; + void set_flopcard2(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_flopcard2() const; + void _internal_set_flopcard2(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 flopCard3 = 4; - inline bool has_flopcard3() const; - inline void clear_flopcard3(); - static const int kFlopCard3FieldNumber = 4; - inline ::google::protobuf::uint32 flopcard3() const; - inline void set_flopcard3(::google::protobuf::uint32 value); + bool has_flopcard3() const; + private: + bool _internal_has_flopcard3() const; + public: + void clear_flopcard3(); + ::PROTOBUF_NAMESPACE_ID::uint32 flopcard3() const; + void set_flopcard3(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_flopcard3() const; + void _internal_set_flopcard3(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:DealFlopCardsMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_flopcard1(); - inline void clear_has_flopcard1(); - inline void set_has_flopcard2(); - inline void clear_has_flopcard2(); - inline void set_has_flopcard3(); - inline void clear_has_flopcard3(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 flopcard1_; - ::google::protobuf::uint32 flopcard2_; - ::google::protobuf::uint32 flopcard3_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static DealFlopCardsMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 flopcard1_; + ::PROTOBUF_NAMESPACE_ID::uint32 flopcard2_; + ::PROTOBUF_NAMESPACE_ID::uint32 flopcard3_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class DealTurnCardMessage : public ::google::protobuf::MessageLite { +class DealTurnCardMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:DealTurnCardMessage) */ { public: - DealTurnCardMessage(); + inline DealTurnCardMessage() : DealTurnCardMessage(nullptr) {}; virtual ~DealTurnCardMessage(); DealTurnCardMessage(const DealTurnCardMessage& from); + DealTurnCardMessage(DealTurnCardMessage&& from) noexcept + : DealTurnCardMessage() { + *this = ::std::move(from); + } inline DealTurnCardMessage& operator=(const DealTurnCardMessage& from) { CopyFrom(from); return *this; } + inline DealTurnCardMessage& operator=(DealTurnCardMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const DealTurnCardMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const DealTurnCardMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_DealTurnCardMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 56; - void Swap(DealTurnCardMessage* other); + friend void swap(DealTurnCardMessage& a, DealTurnCardMessage& b) { + a.Swap(&b); + } + inline void Swap(DealTurnCardMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DealTurnCardMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - DealTurnCardMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline DealTurnCardMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + DealTurnCardMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const DealTurnCardMessage& from); void MergeFrom(const DealTurnCardMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(DealTurnCardMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "DealTurnCardMessage"; + } + protected: + explicit DealTurnCardMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kTurnCardFieldNumber = 2, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 turnCard = 2; - inline bool has_turncard() const; - inline void clear_turncard(); - static const int kTurnCardFieldNumber = 2; - inline ::google::protobuf::uint32 turncard() const; - inline void set_turncard(::google::protobuf::uint32 value); + bool has_turncard() const; + private: + bool _internal_has_turncard() const; + public: + void clear_turncard(); + ::PROTOBUF_NAMESPACE_ID::uint32 turncard() const; + void set_turncard(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_turncard() const; + void _internal_set_turncard(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:DealTurnCardMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_turncard(); - inline void clear_has_turncard(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 turncard_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static DealTurnCardMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 turncard_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class DealRiverCardMessage : public ::google::protobuf::MessageLite { +class DealRiverCardMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:DealRiverCardMessage) */ { public: - DealRiverCardMessage(); + inline DealRiverCardMessage() : DealRiverCardMessage(nullptr) {}; virtual ~DealRiverCardMessage(); DealRiverCardMessage(const DealRiverCardMessage& from); + DealRiverCardMessage(DealRiverCardMessage&& from) noexcept + : DealRiverCardMessage() { + *this = ::std::move(from); + } inline DealRiverCardMessage& operator=(const DealRiverCardMessage& from) { CopyFrom(from); return *this; } + inline DealRiverCardMessage& operator=(DealRiverCardMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const DealRiverCardMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const DealRiverCardMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_DealRiverCardMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 57; - void Swap(DealRiverCardMessage* other); + friend void swap(DealRiverCardMessage& a, DealRiverCardMessage& b) { + a.Swap(&b); + } + inline void Swap(DealRiverCardMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DealRiverCardMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - DealRiverCardMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline DealRiverCardMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + DealRiverCardMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const DealRiverCardMessage& from); void MergeFrom(const DealRiverCardMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(DealRiverCardMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "DealRiverCardMessage"; + } + protected: + explicit DealRiverCardMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kRiverCardFieldNumber = 2, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 riverCard = 2; - inline bool has_rivercard() const; - inline void clear_rivercard(); - static const int kRiverCardFieldNumber = 2; - inline ::google::protobuf::uint32 rivercard() const; - inline void set_rivercard(::google::protobuf::uint32 value); + bool has_rivercard() const; + private: + bool _internal_has_rivercard() const; + public: + void clear_rivercard(); + ::PROTOBUF_NAMESPACE_ID::uint32 rivercard() const; + void set_rivercard(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_rivercard() const; + void _internal_set_rivercard(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:DealRiverCardMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_rivercard(); - inline void clear_has_rivercard(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 rivercard_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static DealRiverCardMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 rivercard_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AllInShowCardsMessage_PlayerAllIn : public ::google::protobuf::MessageLite { +class AllInShowCardsMessage_PlayerAllIn PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:AllInShowCardsMessage.PlayerAllIn) */ { public: - AllInShowCardsMessage_PlayerAllIn(); + inline AllInShowCardsMessage_PlayerAllIn() : AllInShowCardsMessage_PlayerAllIn(nullptr) {}; virtual ~AllInShowCardsMessage_PlayerAllIn(); AllInShowCardsMessage_PlayerAllIn(const AllInShowCardsMessage_PlayerAllIn& from); + AllInShowCardsMessage_PlayerAllIn(AllInShowCardsMessage_PlayerAllIn&& from) noexcept + : AllInShowCardsMessage_PlayerAllIn() { + *this = ::std::move(from); + } inline AllInShowCardsMessage_PlayerAllIn& operator=(const AllInShowCardsMessage_PlayerAllIn& from) { CopyFrom(from); return *this; } + inline AllInShowCardsMessage_PlayerAllIn& operator=(AllInShowCardsMessage_PlayerAllIn&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const AllInShowCardsMessage_PlayerAllIn& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AllInShowCardsMessage_PlayerAllIn* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AllInShowCardsMessage_PlayerAllIn_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 58; - void Swap(AllInShowCardsMessage_PlayerAllIn* other); + friend void swap(AllInShowCardsMessage_PlayerAllIn& a, AllInShowCardsMessage_PlayerAllIn& b) { + a.Swap(&b); + } + inline void Swap(AllInShowCardsMessage_PlayerAllIn* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AllInShowCardsMessage_PlayerAllIn* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - AllInShowCardsMessage_PlayerAllIn* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline AllInShowCardsMessage_PlayerAllIn* New() const final { + return CreateMaybeMessage(nullptr); + } + + AllInShowCardsMessage_PlayerAllIn* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const AllInShowCardsMessage_PlayerAllIn& from); void MergeFrom(const AllInShowCardsMessage_PlayerAllIn& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(AllInShowCardsMessage_PlayerAllIn* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "AllInShowCardsMessage.PlayerAllIn"; + } + protected: + explicit AllInShowCardsMessage_PlayerAllIn(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kPlayerIdFieldNumber = 1, + kAllInCard1FieldNumber = 2, + kAllInCard2FieldNumber = 3, + }; // required uint32 playerId = 1; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 allInCard1 = 2; - inline bool has_allincard1() const; - inline void clear_allincard1(); - static const int kAllInCard1FieldNumber = 2; - inline ::google::protobuf::uint32 allincard1() const; - inline void set_allincard1(::google::protobuf::uint32 value); + bool has_allincard1() const; + private: + bool _internal_has_allincard1() const; + public: + void clear_allincard1(); + ::PROTOBUF_NAMESPACE_ID::uint32 allincard1() const; + void set_allincard1(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_allincard1() const; + void _internal_set_allincard1(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 allInCard2 = 3; - inline bool has_allincard2() const; - inline void clear_allincard2(); - static const int kAllInCard2FieldNumber = 3; - inline ::google::protobuf::uint32 allincard2() const; - inline void set_allincard2(::google::protobuf::uint32 value); + bool has_allincard2() const; + private: + bool _internal_has_allincard2() const; + public: + void clear_allincard2(); + ::PROTOBUF_NAMESPACE_ID::uint32 allincard2() const; + void set_allincard2(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_allincard2() const; + void _internal_set_allincard2(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:AllInShowCardsMessage.PlayerAllIn) private: - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_allincard1(); - inline void clear_has_allincard1(); - inline void set_has_allincard2(); - inline void clear_has_allincard2(); + class _Internal; - ::google::protobuf::uint32 playerid_; - ::google::protobuf::uint32 allincard1_; - ::google::protobuf::uint32 allincard2_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AllInShowCardsMessage_PlayerAllIn* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; + ::PROTOBUF_NAMESPACE_ID::uint32 allincard1_; + ::PROTOBUF_NAMESPACE_ID::uint32 allincard2_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AllInShowCardsMessage : public ::google::protobuf::MessageLite { +class AllInShowCardsMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:AllInShowCardsMessage) */ { public: - AllInShowCardsMessage(); + inline AllInShowCardsMessage() : AllInShowCardsMessage(nullptr) {}; virtual ~AllInShowCardsMessage(); AllInShowCardsMessage(const AllInShowCardsMessage& from); + AllInShowCardsMessage(AllInShowCardsMessage&& from) noexcept + : AllInShowCardsMessage() { + *this = ::std::move(from); + } inline AllInShowCardsMessage& operator=(const AllInShowCardsMessage& from) { CopyFrom(from); return *this; } + inline AllInShowCardsMessage& operator=(AllInShowCardsMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const AllInShowCardsMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AllInShowCardsMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AllInShowCardsMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 59; - void Swap(AllInShowCardsMessage* other); + friend void swap(AllInShowCardsMessage& a, AllInShowCardsMessage& b) { + a.Swap(&b); + } + inline void Swap(AllInShowCardsMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AllInShowCardsMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - AllInShowCardsMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline AllInShowCardsMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + AllInShowCardsMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const AllInShowCardsMessage& from); void MergeFrom(const AllInShowCardsMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(AllInShowCardsMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "AllInShowCardsMessage"; + } + protected: + explicit AllInShowCardsMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- @@ -7314,306 +11942,491 @@ class AllInShowCardsMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- - // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); - + enum : int { + kPlayersAllInFieldNumber = 2, + kGameIdFieldNumber = 1, + }; // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - inline int playersallin_size() const; - inline void clear_playersallin(); - static const int kPlayersAllInFieldNumber = 2; - inline const ::AllInShowCardsMessage_PlayerAllIn& playersallin(int index) const; - inline ::AllInShowCardsMessage_PlayerAllIn* mutable_playersallin(int index); - inline ::AllInShowCardsMessage_PlayerAllIn* add_playersallin(); - inline const ::google::protobuf::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn >& - playersallin() const; - inline ::google::protobuf::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn >* + int playersallin_size() const; + private: + int _internal_playersallin_size() const; + public: + void clear_playersallin(); + ::AllInShowCardsMessage_PlayerAllIn* mutable_playersallin(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn >* mutable_playersallin(); + private: + const ::AllInShowCardsMessage_PlayerAllIn& _internal_playersallin(int index) const; + ::AllInShowCardsMessage_PlayerAllIn* _internal_add_playersallin(); + public: + const ::AllInShowCardsMessage_PlayerAllIn& playersallin(int index) const; + ::AllInShowCardsMessage_PlayerAllIn* add_playersallin(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn >& + playersallin() const; + + // required uint32 gameId = 1; + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:AllInShowCardsMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); + class _Internal; - ::google::protobuf::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn > playersallin_; - ::google::protobuf::uint32 gameid_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AllInShowCardsMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn > playersallin_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class EndOfHandShowCardsMessage : public ::google::protobuf::MessageLite { +class EndOfHandShowCardsMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:EndOfHandShowCardsMessage) */ { public: - EndOfHandShowCardsMessage(); + inline EndOfHandShowCardsMessage() : EndOfHandShowCardsMessage(nullptr) {}; virtual ~EndOfHandShowCardsMessage(); EndOfHandShowCardsMessage(const EndOfHandShowCardsMessage& from); + EndOfHandShowCardsMessage(EndOfHandShowCardsMessage&& from) noexcept + : EndOfHandShowCardsMessage() { + *this = ::std::move(from); + } inline EndOfHandShowCardsMessage& operator=(const EndOfHandShowCardsMessage& from) { CopyFrom(from); return *this; } + inline EndOfHandShowCardsMessage& operator=(EndOfHandShowCardsMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const EndOfHandShowCardsMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const EndOfHandShowCardsMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_EndOfHandShowCardsMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 60; - void Swap(EndOfHandShowCardsMessage* other); + friend void swap(EndOfHandShowCardsMessage& a, EndOfHandShowCardsMessage& b) { + a.Swap(&b); + } + inline void Swap(EndOfHandShowCardsMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EndOfHandShowCardsMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - EndOfHandShowCardsMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline EndOfHandShowCardsMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + EndOfHandShowCardsMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const EndOfHandShowCardsMessage& from); void MergeFrom(const EndOfHandShowCardsMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(EndOfHandShowCardsMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "EndOfHandShowCardsMessage"; + } + protected: + explicit EndOfHandShowCardsMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); - + enum : int { + kPlayerResultsFieldNumber = 2, + kGameIdFieldNumber = 1, + }; // repeated .PlayerResult playerResults = 2; - inline int playerresults_size() const; - inline void clear_playerresults(); - static const int kPlayerResultsFieldNumber = 2; - inline const ::PlayerResult& playerresults(int index) const; - inline ::PlayerResult* mutable_playerresults(int index); - inline ::PlayerResult* add_playerresults(); - inline const ::google::protobuf::RepeatedPtrField< ::PlayerResult >& - playerresults() const; - inline ::google::protobuf::RepeatedPtrField< ::PlayerResult >* + int playerresults_size() const; + private: + int _internal_playerresults_size() const; + public: + void clear_playerresults(); + ::PlayerResult* mutable_playerresults(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PlayerResult >* mutable_playerresults(); + private: + const ::PlayerResult& _internal_playerresults(int index) const; + ::PlayerResult* _internal_add_playerresults(); + public: + const ::PlayerResult& playerresults(int index) const; + ::PlayerResult* add_playerresults(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PlayerResult >& + playerresults() const; + + // required uint32 gameId = 1; + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:EndOfHandShowCardsMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); + class _Internal; - ::google::protobuf::RepeatedPtrField< ::PlayerResult > playerresults_; - ::google::protobuf::uint32 gameid_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static EndOfHandShowCardsMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PlayerResult > playerresults_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class EndOfHandHideCardsMessage : public ::google::protobuf::MessageLite { +class EndOfHandHideCardsMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:EndOfHandHideCardsMessage) */ { public: - EndOfHandHideCardsMessage(); + inline EndOfHandHideCardsMessage() : EndOfHandHideCardsMessage(nullptr) {}; virtual ~EndOfHandHideCardsMessage(); EndOfHandHideCardsMessage(const EndOfHandHideCardsMessage& from); + EndOfHandHideCardsMessage(EndOfHandHideCardsMessage&& from) noexcept + : EndOfHandHideCardsMessage() { + *this = ::std::move(from); + } inline EndOfHandHideCardsMessage& operator=(const EndOfHandHideCardsMessage& from) { CopyFrom(from); return *this; } + inline EndOfHandHideCardsMessage& operator=(EndOfHandHideCardsMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const EndOfHandHideCardsMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const EndOfHandHideCardsMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_EndOfHandHideCardsMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 61; - void Swap(EndOfHandHideCardsMessage* other); + friend void swap(EndOfHandHideCardsMessage& a, EndOfHandHideCardsMessage& b) { + a.Swap(&b); + } + inline void Swap(EndOfHandHideCardsMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EndOfHandHideCardsMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - EndOfHandHideCardsMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline EndOfHandHideCardsMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + EndOfHandHideCardsMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const EndOfHandHideCardsMessage& from); void MergeFrom(const EndOfHandHideCardsMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(EndOfHandHideCardsMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "EndOfHandHideCardsMessage"; + } + protected: + explicit EndOfHandHideCardsMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPlayerIdFieldNumber = 2, + kMoneyWonFieldNumber = 3, + kPlayerMoneyFieldNumber = 4, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 moneyWon = 3; - inline bool has_moneywon() const; - inline void clear_moneywon(); - static const int kMoneyWonFieldNumber = 3; - inline ::google::protobuf::uint32 moneywon() const; - inline void set_moneywon(::google::protobuf::uint32 value); + bool has_moneywon() const; + private: + bool _internal_has_moneywon() const; + public: + void clear_moneywon(); + ::PROTOBUF_NAMESPACE_ID::uint32 moneywon() const; + void set_moneywon(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_moneywon() const; + void _internal_set_moneywon(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerMoney = 4; - inline bool has_playermoney() const; - inline void clear_playermoney(); - static const int kPlayerMoneyFieldNumber = 4; - inline ::google::protobuf::uint32 playermoney() const; - inline void set_playermoney(::google::protobuf::uint32 value); + bool has_playermoney() const; + private: + bool _internal_has_playermoney() const; + public: + void clear_playermoney(); + ::PROTOBUF_NAMESPACE_ID::uint32 playermoney() const; + void set_playermoney(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playermoney() const; + void _internal_set_playermoney(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:EndOfHandHideCardsMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_moneywon(); - inline void clear_has_moneywon(); - inline void set_has_playermoney(); - inline void clear_has_playermoney(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 playerid_; - ::google::protobuf::uint32 moneywon_; - ::google::protobuf::uint32 playermoney_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static EndOfHandHideCardsMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; + ::PROTOBUF_NAMESPACE_ID::uint32 moneywon_; + ::PROTOBUF_NAMESPACE_ID::uint32 playermoney_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class ShowMyCardsRequestMessage : public ::google::protobuf::MessageLite { +class ShowMyCardsRequestMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:ShowMyCardsRequestMessage) */ { public: - ShowMyCardsRequestMessage(); + inline ShowMyCardsRequestMessage() : ShowMyCardsRequestMessage(nullptr) {}; virtual ~ShowMyCardsRequestMessage(); ShowMyCardsRequestMessage(const ShowMyCardsRequestMessage& from); + ShowMyCardsRequestMessage(ShowMyCardsRequestMessage&& from) noexcept + : ShowMyCardsRequestMessage() { + *this = ::std::move(from); + } inline ShowMyCardsRequestMessage& operator=(const ShowMyCardsRequestMessage& from) { CopyFrom(from); return *this; } + inline ShowMyCardsRequestMessage& operator=(ShowMyCardsRequestMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const ShowMyCardsRequestMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ShowMyCardsRequestMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ShowMyCardsRequestMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 62; - void Swap(ShowMyCardsRequestMessage* other); + friend void swap(ShowMyCardsRequestMessage& a, ShowMyCardsRequestMessage& b) { + a.Swap(&b); + } + inline void Swap(ShowMyCardsRequestMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ShowMyCardsRequestMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - ShowMyCardsRequestMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline ShowMyCardsRequestMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + ShowMyCardsRequestMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const ShowMyCardsRequestMessage& from); void MergeFrom(const ShowMyCardsRequestMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(ShowMyCardsRequestMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "ShowMyCardsRequestMessage"; + } + protected: + explicit ShowMyCardsRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- @@ -7621,1284 +12434,2098 @@ class ShowMyCardsRequestMessage : public ::google::protobuf::MessageLite { // @@protoc_insertion_point(class_scope:ShowMyCardsRequestMessage) private: + class _Internal; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[1]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static ShowMyCardsRequestMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AfterHandShowCardsMessage : public ::google::protobuf::MessageLite { +class AfterHandShowCardsMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:AfterHandShowCardsMessage) */ { public: - AfterHandShowCardsMessage(); + inline AfterHandShowCardsMessage() : AfterHandShowCardsMessage(nullptr) {}; virtual ~AfterHandShowCardsMessage(); AfterHandShowCardsMessage(const AfterHandShowCardsMessage& from); + AfterHandShowCardsMessage(AfterHandShowCardsMessage&& from) noexcept + : AfterHandShowCardsMessage() { + *this = ::std::move(from); + } inline AfterHandShowCardsMessage& operator=(const AfterHandShowCardsMessage& from) { CopyFrom(from); return *this; } + inline AfterHandShowCardsMessage& operator=(AfterHandShowCardsMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const AfterHandShowCardsMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AfterHandShowCardsMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AfterHandShowCardsMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 63; - void Swap(AfterHandShowCardsMessage* other); + friend void swap(AfterHandShowCardsMessage& a, AfterHandShowCardsMessage& b) { + a.Swap(&b); + } + inline void Swap(AfterHandShowCardsMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AfterHandShowCardsMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - AfterHandShowCardsMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline AfterHandShowCardsMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + AfterHandShowCardsMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const AfterHandShowCardsMessage& from); void MergeFrom(const AfterHandShowCardsMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(AfterHandShowCardsMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "AfterHandShowCardsMessage"; + } + protected: + explicit AfterHandShowCardsMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kPlayerResultFieldNumber = 1, + }; // required .PlayerResult playerResult = 1; - inline bool has_playerresult() const; - inline void clear_playerresult(); - static const int kPlayerResultFieldNumber = 1; - inline const ::PlayerResult& playerresult() const; - inline ::PlayerResult* mutable_playerresult(); - inline ::PlayerResult* release_playerresult(); - inline void set_allocated_playerresult(::PlayerResult* playerresult); + bool has_playerresult() const; + private: + bool _internal_has_playerresult() const; + public: + void clear_playerresult(); + const ::PlayerResult& playerresult() const; + ::PlayerResult* release_playerresult(); + ::PlayerResult* mutable_playerresult(); + void set_allocated_playerresult(::PlayerResult* playerresult); + private: + const ::PlayerResult& _internal_playerresult() const; + ::PlayerResult* _internal_mutable_playerresult(); + public: + void unsafe_arena_set_allocated_playerresult( + ::PlayerResult* playerresult); + ::PlayerResult* unsafe_arena_release_playerresult(); // @@protoc_insertion_point(class_scope:AfterHandShowCardsMessage) private: - inline void set_has_playerresult(); - inline void clear_has_playerresult(); + class _Internal; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PlayerResult* playerresult_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AfterHandShowCardsMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class EndOfGameMessage : public ::google::protobuf::MessageLite { +class EndOfGameMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:EndOfGameMessage) */ { public: - EndOfGameMessage(); + inline EndOfGameMessage() : EndOfGameMessage(nullptr) {}; virtual ~EndOfGameMessage(); EndOfGameMessage(const EndOfGameMessage& from); + EndOfGameMessage(EndOfGameMessage&& from) noexcept + : EndOfGameMessage() { + *this = ::std::move(from); + } inline EndOfGameMessage& operator=(const EndOfGameMessage& from) { CopyFrom(from); return *this; } + inline EndOfGameMessage& operator=(EndOfGameMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const EndOfGameMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const EndOfGameMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_EndOfGameMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 64; - void Swap(EndOfGameMessage* other); + friend void swap(EndOfGameMessage& a, EndOfGameMessage& b) { + a.Swap(&b); + } + inline void Swap(EndOfGameMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EndOfGameMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - EndOfGameMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline EndOfGameMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + EndOfGameMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const EndOfGameMessage& from); void MergeFrom(const EndOfGameMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(EndOfGameMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "EndOfGameMessage"; + } + protected: + explicit EndOfGameMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kWinnerPlayerIdFieldNumber = 2, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 winnerPlayerId = 2; - inline bool has_winnerplayerid() const; - inline void clear_winnerplayerid(); - static const int kWinnerPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 winnerplayerid() const; - inline void set_winnerplayerid(::google::protobuf::uint32 value); + bool has_winnerplayerid() const; + private: + bool _internal_has_winnerplayerid() const; + public: + void clear_winnerplayerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 winnerplayerid() const; + void set_winnerplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_winnerplayerid() const; + void _internal_set_winnerplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:EndOfGameMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_winnerplayerid(); - inline void clear_has_winnerplayerid(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 winnerplayerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static EndOfGameMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 winnerplayerid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class PlayerIdChangedMessage : public ::google::protobuf::MessageLite { +class PlayerIdChangedMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:PlayerIdChangedMessage) */ { public: - PlayerIdChangedMessage(); + inline PlayerIdChangedMessage() : PlayerIdChangedMessage(nullptr) {}; virtual ~PlayerIdChangedMessage(); PlayerIdChangedMessage(const PlayerIdChangedMessage& from); + PlayerIdChangedMessage(PlayerIdChangedMessage&& from) noexcept + : PlayerIdChangedMessage() { + *this = ::std::move(from); + } inline PlayerIdChangedMessage& operator=(const PlayerIdChangedMessage& from) { CopyFrom(from); return *this; } + inline PlayerIdChangedMessage& operator=(PlayerIdChangedMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const PlayerIdChangedMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PlayerIdChangedMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_PlayerIdChangedMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 65; - void Swap(PlayerIdChangedMessage* other); + friend void swap(PlayerIdChangedMessage& a, PlayerIdChangedMessage& b) { + a.Swap(&b); + } + inline void Swap(PlayerIdChangedMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PlayerIdChangedMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - PlayerIdChangedMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline PlayerIdChangedMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + PlayerIdChangedMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const PlayerIdChangedMessage& from); void MergeFrom(const PlayerIdChangedMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(PlayerIdChangedMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "PlayerIdChangedMessage"; + } + protected: + explicit PlayerIdChangedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kOldPlayerIdFieldNumber = 1, + kNewPlayerIdFieldNumber = 2, + }; // required uint32 oldPlayerId = 1; - inline bool has_oldplayerid() const; - inline void clear_oldplayerid(); - static const int kOldPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 oldplayerid() const; - inline void set_oldplayerid(::google::protobuf::uint32 value); + bool has_oldplayerid() const; + private: + bool _internal_has_oldplayerid() const; + public: + void clear_oldplayerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 oldplayerid() const; + void set_oldplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_oldplayerid() const; + void _internal_set_oldplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 newPlayerId = 2; - inline bool has_newplayerid() const; - inline void clear_newplayerid(); - static const int kNewPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 newplayerid() const; - inline void set_newplayerid(::google::protobuf::uint32 value); + bool has_newplayerid() const; + private: + bool _internal_has_newplayerid() const; + public: + void clear_newplayerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 newplayerid() const; + void set_newplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_newplayerid() const; + void _internal_set_newplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:PlayerIdChangedMessage) private: - inline void set_has_oldplayerid(); - inline void clear_has_oldplayerid(); - inline void set_has_newplayerid(); - inline void clear_has_newplayerid(); + class _Internal; - ::google::protobuf::uint32 oldplayerid_; - ::google::protobuf::uint32 newplayerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static PlayerIdChangedMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 oldplayerid_; + ::PROTOBUF_NAMESPACE_ID::uint32 newplayerid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AskKickPlayerMessage : public ::google::protobuf::MessageLite { +class AskKickPlayerMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:AskKickPlayerMessage) */ { public: - AskKickPlayerMessage(); + inline AskKickPlayerMessage() : AskKickPlayerMessage(nullptr) {}; virtual ~AskKickPlayerMessage(); AskKickPlayerMessage(const AskKickPlayerMessage& from); + AskKickPlayerMessage(AskKickPlayerMessage&& from) noexcept + : AskKickPlayerMessage() { + *this = ::std::move(from); + } inline AskKickPlayerMessage& operator=(const AskKickPlayerMessage& from) { CopyFrom(from); return *this; } + inline AskKickPlayerMessage& operator=(AskKickPlayerMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const AskKickPlayerMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AskKickPlayerMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AskKickPlayerMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 66; - void Swap(AskKickPlayerMessage* other); + friend void swap(AskKickPlayerMessage& a, AskKickPlayerMessage& b) { + a.Swap(&b); + } + inline void Swap(AskKickPlayerMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AskKickPlayerMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - AskKickPlayerMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline AskKickPlayerMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + AskKickPlayerMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const AskKickPlayerMessage& from); void MergeFrom(const AskKickPlayerMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(AskKickPlayerMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "AskKickPlayerMessage"; + } + protected: + explicit AskKickPlayerMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPlayerIdFieldNumber = 2, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:AskKickPlayerMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 playerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AskKickPlayerMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AskKickDeniedMessage : public ::google::protobuf::MessageLite { +class AskKickDeniedMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:AskKickDeniedMessage) */ { public: - AskKickDeniedMessage(); + inline AskKickDeniedMessage() : AskKickDeniedMessage(nullptr) {}; virtual ~AskKickDeniedMessage(); AskKickDeniedMessage(const AskKickDeniedMessage& from); + AskKickDeniedMessage(AskKickDeniedMessage&& from) noexcept + : AskKickDeniedMessage() { + *this = ::std::move(from); + } inline AskKickDeniedMessage& operator=(const AskKickDeniedMessage& from) { CopyFrom(from); return *this; } + inline AskKickDeniedMessage& operator=(AskKickDeniedMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const AskKickDeniedMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AskKickDeniedMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AskKickDeniedMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 67; - void Swap(AskKickDeniedMessage* other); + friend void swap(AskKickDeniedMessage& a, AskKickDeniedMessage& b) { + a.Swap(&b); + } + inline void Swap(AskKickDeniedMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AskKickDeniedMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - AskKickDeniedMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline AskKickDeniedMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + AskKickDeniedMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const AskKickDeniedMessage& from); void MergeFrom(const AskKickDeniedMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(AskKickDeniedMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "AskKickDeniedMessage"; + } + protected: + explicit AskKickDeniedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef AskKickDeniedMessage_KickDeniedReason KickDeniedReason; - static const KickDeniedReason kickDeniedInvalidGameState = AskKickDeniedMessage_KickDeniedReason_kickDeniedInvalidGameState; - static const KickDeniedReason kickDeniedNotPossible = AskKickDeniedMessage_KickDeniedReason_kickDeniedNotPossible; - static const KickDeniedReason kickDeniedTryAgainLater = AskKickDeniedMessage_KickDeniedReason_kickDeniedTryAgainLater; - static const KickDeniedReason kickDeniedAlreadyInProgress = AskKickDeniedMessage_KickDeniedReason_kickDeniedAlreadyInProgress; - static const KickDeniedReason kickDeniedInvalidPlayerId = AskKickDeniedMessage_KickDeniedReason_kickDeniedInvalidPlayerId; + static constexpr KickDeniedReason kickDeniedInvalidGameState = + AskKickDeniedMessage_KickDeniedReason_kickDeniedInvalidGameState; + static constexpr KickDeniedReason kickDeniedNotPossible = + AskKickDeniedMessage_KickDeniedReason_kickDeniedNotPossible; + static constexpr KickDeniedReason kickDeniedTryAgainLater = + AskKickDeniedMessage_KickDeniedReason_kickDeniedTryAgainLater; + static constexpr KickDeniedReason kickDeniedAlreadyInProgress = + AskKickDeniedMessage_KickDeniedReason_kickDeniedAlreadyInProgress; + static constexpr KickDeniedReason kickDeniedInvalidPlayerId = + AskKickDeniedMessage_KickDeniedReason_kickDeniedInvalidPlayerId; static inline bool KickDeniedReason_IsValid(int value) { return AskKickDeniedMessage_KickDeniedReason_IsValid(value); } - static const KickDeniedReason KickDeniedReason_MIN = + static constexpr KickDeniedReason KickDeniedReason_MIN = AskKickDeniedMessage_KickDeniedReason_KickDeniedReason_MIN; - static const KickDeniedReason KickDeniedReason_MAX = + static constexpr KickDeniedReason KickDeniedReason_MAX = AskKickDeniedMessage_KickDeniedReason_KickDeniedReason_MAX; - static const int KickDeniedReason_ARRAYSIZE = + static constexpr int KickDeniedReason_ARRAYSIZE = AskKickDeniedMessage_KickDeniedReason_KickDeniedReason_ARRAYSIZE; + template + static inline const std::string& KickDeniedReason_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function KickDeniedReason_Name."); + return AskKickDeniedMessage_KickDeniedReason_Name(enum_t_value); + } + static inline bool KickDeniedReason_Parse(const std::string& name, + KickDeniedReason* value) { + return AskKickDeniedMessage_KickDeniedReason_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPlayerIdFieldNumber = 2, + kKickDeniedReasonFieldNumber = 3, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - inline bool has_kickdeniedreason() const; - inline void clear_kickdeniedreason(); - static const int kKickDeniedReasonFieldNumber = 3; - inline ::AskKickDeniedMessage_KickDeniedReason kickdeniedreason() const; - inline void set_kickdeniedreason(::AskKickDeniedMessage_KickDeniedReason value); + bool has_kickdeniedreason() const; + private: + bool _internal_has_kickdeniedreason() const; + public: + void clear_kickdeniedreason(); + ::AskKickDeniedMessage_KickDeniedReason kickdeniedreason() const; + void set_kickdeniedreason(::AskKickDeniedMessage_KickDeniedReason value); + private: + ::AskKickDeniedMessage_KickDeniedReason _internal_kickdeniedreason() const; + void _internal_set_kickdeniedreason(::AskKickDeniedMessage_KickDeniedReason value); + public: // @@protoc_insertion_point(class_scope:AskKickDeniedMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_kickdeniedreason(); - inline void clear_has_kickdeniedreason(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 playerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; int kickdeniedreason_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AskKickDeniedMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class StartKickPetitionMessage : public ::google::protobuf::MessageLite { +class StartKickPetitionMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:StartKickPetitionMessage) */ { public: - StartKickPetitionMessage(); + inline StartKickPetitionMessage() : StartKickPetitionMessage(nullptr) {}; virtual ~StartKickPetitionMessage(); StartKickPetitionMessage(const StartKickPetitionMessage& from); + StartKickPetitionMessage(StartKickPetitionMessage&& from) noexcept + : StartKickPetitionMessage() { + *this = ::std::move(from); + } inline StartKickPetitionMessage& operator=(const StartKickPetitionMessage& from) { CopyFrom(from); return *this; } + inline StartKickPetitionMessage& operator=(StartKickPetitionMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const StartKickPetitionMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const StartKickPetitionMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_StartKickPetitionMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 68; - void Swap(StartKickPetitionMessage* other); + friend void swap(StartKickPetitionMessage& a, StartKickPetitionMessage& b) { + a.Swap(&b); + } + inline void Swap(StartKickPetitionMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(StartKickPetitionMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - StartKickPetitionMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline StartKickPetitionMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + StartKickPetitionMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const StartKickPetitionMessage& from); void MergeFrom(const StartKickPetitionMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(StartKickPetitionMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "StartKickPetitionMessage"; + } + protected: + explicit StartKickPetitionMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPetitionIdFieldNumber = 2, + kProposingPlayerIdFieldNumber = 3, + kKickPlayerIdFieldNumber = 4, + kKickTimeoutSecFieldNumber = 5, + kNumVotesNeededToKickFieldNumber = 6, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 petitionId = 2; - inline bool has_petitionid() const; - inline void clear_petitionid(); - static const int kPetitionIdFieldNumber = 2; - inline ::google::protobuf::uint32 petitionid() const; - inline void set_petitionid(::google::protobuf::uint32 value); + bool has_petitionid() const; + private: + bool _internal_has_petitionid() const; + public: + void clear_petitionid(); + ::PROTOBUF_NAMESPACE_ID::uint32 petitionid() const; + void set_petitionid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_petitionid() const; + void _internal_set_petitionid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 proposingPlayerId = 3; - inline bool has_proposingplayerid() const; - inline void clear_proposingplayerid(); - static const int kProposingPlayerIdFieldNumber = 3; - inline ::google::protobuf::uint32 proposingplayerid() const; - inline void set_proposingplayerid(::google::protobuf::uint32 value); + bool has_proposingplayerid() const; + private: + bool _internal_has_proposingplayerid() const; + public: + void clear_proposingplayerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 proposingplayerid() const; + void set_proposingplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_proposingplayerid() const; + void _internal_set_proposingplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 kickPlayerId = 4; - inline bool has_kickplayerid() const; - inline void clear_kickplayerid(); - static const int kKickPlayerIdFieldNumber = 4; - inline ::google::protobuf::uint32 kickplayerid() const; - inline void set_kickplayerid(::google::protobuf::uint32 value); + bool has_kickplayerid() const; + private: + bool _internal_has_kickplayerid() const; + public: + void clear_kickplayerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 kickplayerid() const; + void set_kickplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_kickplayerid() const; + void _internal_set_kickplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 kickTimeoutSec = 5; - inline bool has_kicktimeoutsec() const; - inline void clear_kicktimeoutsec(); - static const int kKickTimeoutSecFieldNumber = 5; - inline ::google::protobuf::uint32 kicktimeoutsec() const; - inline void set_kicktimeoutsec(::google::protobuf::uint32 value); + bool has_kicktimeoutsec() const; + private: + bool _internal_has_kicktimeoutsec() const; + public: + void clear_kicktimeoutsec(); + ::PROTOBUF_NAMESPACE_ID::uint32 kicktimeoutsec() const; + void set_kicktimeoutsec(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_kicktimeoutsec() const; + void _internal_set_kicktimeoutsec(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 numVotesNeededToKick = 6; - inline bool has_numvotesneededtokick() const; - inline void clear_numvotesneededtokick(); - static const int kNumVotesNeededToKickFieldNumber = 6; - inline ::google::protobuf::uint32 numvotesneededtokick() const; - inline void set_numvotesneededtokick(::google::protobuf::uint32 value); + bool has_numvotesneededtokick() const; + private: + bool _internal_has_numvotesneededtokick() const; + public: + void clear_numvotesneededtokick(); + ::PROTOBUF_NAMESPACE_ID::uint32 numvotesneededtokick() const; + void set_numvotesneededtokick(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_numvotesneededtokick() const; + void _internal_set_numvotesneededtokick(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:StartKickPetitionMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_petitionid(); - inline void clear_has_petitionid(); - inline void set_has_proposingplayerid(); - inline void clear_has_proposingplayerid(); - inline void set_has_kickplayerid(); - inline void clear_has_kickplayerid(); - inline void set_has_kicktimeoutsec(); - inline void clear_has_kicktimeoutsec(); - inline void set_has_numvotesneededtokick(); - inline void clear_has_numvotesneededtokick(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 petitionid_; - ::google::protobuf::uint32 proposingplayerid_; - ::google::protobuf::uint32 kickplayerid_; - ::google::protobuf::uint32 kicktimeoutsec_; - ::google::protobuf::uint32 numvotesneededtokick_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static StartKickPetitionMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 petitionid_; + ::PROTOBUF_NAMESPACE_ID::uint32 proposingplayerid_; + ::PROTOBUF_NAMESPACE_ID::uint32 kickplayerid_; + ::PROTOBUF_NAMESPACE_ID::uint32 kicktimeoutsec_; + ::PROTOBUF_NAMESPACE_ID::uint32 numvotesneededtokick_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class VoteKickRequestMessage : public ::google::protobuf::MessageLite { +class VoteKickRequestMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:VoteKickRequestMessage) */ { public: - VoteKickRequestMessage(); + inline VoteKickRequestMessage() : VoteKickRequestMessage(nullptr) {}; virtual ~VoteKickRequestMessage(); VoteKickRequestMessage(const VoteKickRequestMessage& from); + VoteKickRequestMessage(VoteKickRequestMessage&& from) noexcept + : VoteKickRequestMessage() { + *this = ::std::move(from); + } inline VoteKickRequestMessage& operator=(const VoteKickRequestMessage& from) { CopyFrom(from); return *this; } + inline VoteKickRequestMessage& operator=(VoteKickRequestMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const VoteKickRequestMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const VoteKickRequestMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_VoteKickRequestMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 69; - void Swap(VoteKickRequestMessage* other); + friend void swap(VoteKickRequestMessage& a, VoteKickRequestMessage& b) { + a.Swap(&b); + } + inline void Swap(VoteKickRequestMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(VoteKickRequestMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - VoteKickRequestMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline VoteKickRequestMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + VoteKickRequestMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const VoteKickRequestMessage& from); void MergeFrom(const VoteKickRequestMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(VoteKickRequestMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "VoteKickRequestMessage"; + } + protected: + explicit VoteKickRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPetitionIdFieldNumber = 2, + kVoteKickFieldNumber = 3, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 petitionId = 2; - inline bool has_petitionid() const; - inline void clear_petitionid(); - static const int kPetitionIdFieldNumber = 2; - inline ::google::protobuf::uint32 petitionid() const; - inline void set_petitionid(::google::protobuf::uint32 value); + bool has_petitionid() const; + private: + bool _internal_has_petitionid() const; + public: + void clear_petitionid(); + ::PROTOBUF_NAMESPACE_ID::uint32 petitionid() const; + void set_petitionid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_petitionid() const; + void _internal_set_petitionid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required bool voteKick = 3; - inline bool has_votekick() const; - inline void clear_votekick(); - static const int kVoteKickFieldNumber = 3; - inline bool votekick() const; - inline void set_votekick(bool value); + bool has_votekick() const; + private: + bool _internal_has_votekick() const; + public: + void clear_votekick(); + bool votekick() const; + void set_votekick(bool value); + private: + bool _internal_votekick() const; + void _internal_set_votekick(bool value); + public: // @@protoc_insertion_point(class_scope:VoteKickRequestMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_petitionid(); - inline void clear_has_petitionid(); - inline void set_has_votekick(); - inline void clear_has_votekick(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 petitionid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 petitionid_; bool votekick_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static VoteKickRequestMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class VoteKickReplyMessage : public ::google::protobuf::MessageLite { +class VoteKickReplyMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:VoteKickReplyMessage) */ { public: - VoteKickReplyMessage(); + inline VoteKickReplyMessage() : VoteKickReplyMessage(nullptr) {}; virtual ~VoteKickReplyMessage(); VoteKickReplyMessage(const VoteKickReplyMessage& from); + VoteKickReplyMessage(VoteKickReplyMessage&& from) noexcept + : VoteKickReplyMessage() { + *this = ::std::move(from); + } inline VoteKickReplyMessage& operator=(const VoteKickReplyMessage& from) { CopyFrom(from); return *this; } + inline VoteKickReplyMessage& operator=(VoteKickReplyMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const VoteKickReplyMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const VoteKickReplyMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_VoteKickReplyMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 70; - void Swap(VoteKickReplyMessage* other); + friend void swap(VoteKickReplyMessage& a, VoteKickReplyMessage& b) { + a.Swap(&b); + } + inline void Swap(VoteKickReplyMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(VoteKickReplyMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - VoteKickReplyMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline VoteKickReplyMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + VoteKickReplyMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const VoteKickReplyMessage& from); void MergeFrom(const VoteKickReplyMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(VoteKickReplyMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "VoteKickReplyMessage"; + } + protected: + explicit VoteKickReplyMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef VoteKickReplyMessage_VoteKickReplyType VoteKickReplyType; - static const VoteKickReplyType voteKickAck = VoteKickReplyMessage_VoteKickReplyType_voteKickAck; - static const VoteKickReplyType voteKickDeniedInvalid = VoteKickReplyMessage_VoteKickReplyType_voteKickDeniedInvalid; - static const VoteKickReplyType voteKickDeniedAlreadyVoted = VoteKickReplyMessage_VoteKickReplyType_voteKickDeniedAlreadyVoted; + static constexpr VoteKickReplyType voteKickAck = + VoteKickReplyMessage_VoteKickReplyType_voteKickAck; + static constexpr VoteKickReplyType voteKickDeniedInvalid = + VoteKickReplyMessage_VoteKickReplyType_voteKickDeniedInvalid; + static constexpr VoteKickReplyType voteKickDeniedAlreadyVoted = + VoteKickReplyMessage_VoteKickReplyType_voteKickDeniedAlreadyVoted; static inline bool VoteKickReplyType_IsValid(int value) { return VoteKickReplyMessage_VoteKickReplyType_IsValid(value); } - static const VoteKickReplyType VoteKickReplyType_MIN = + static constexpr VoteKickReplyType VoteKickReplyType_MIN = VoteKickReplyMessage_VoteKickReplyType_VoteKickReplyType_MIN; - static const VoteKickReplyType VoteKickReplyType_MAX = + static constexpr VoteKickReplyType VoteKickReplyType_MAX = VoteKickReplyMessage_VoteKickReplyType_VoteKickReplyType_MAX; - static const int VoteKickReplyType_ARRAYSIZE = + static constexpr int VoteKickReplyType_ARRAYSIZE = VoteKickReplyMessage_VoteKickReplyType_VoteKickReplyType_ARRAYSIZE; + template + static inline const std::string& VoteKickReplyType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function VoteKickReplyType_Name."); + return VoteKickReplyMessage_VoteKickReplyType_Name(enum_t_value); + } + static inline bool VoteKickReplyType_Parse(const std::string& name, + VoteKickReplyType* value) { + return VoteKickReplyMessage_VoteKickReplyType_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPetitionIdFieldNumber = 2, + kVoteKickReplyTypeFieldNumber = 3, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 petitionId = 2; - inline bool has_petitionid() const; - inline void clear_petitionid(); - static const int kPetitionIdFieldNumber = 2; - inline ::google::protobuf::uint32 petitionid() const; - inline void set_petitionid(::google::protobuf::uint32 value); + bool has_petitionid() const; + private: + bool _internal_has_petitionid() const; + public: + void clear_petitionid(); + ::PROTOBUF_NAMESPACE_ID::uint32 petitionid() const; + void set_petitionid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_petitionid() const; + void _internal_set_petitionid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - inline bool has_votekickreplytype() const; - inline void clear_votekickreplytype(); - static const int kVoteKickReplyTypeFieldNumber = 3; - inline ::VoteKickReplyMessage_VoteKickReplyType votekickreplytype() const; - inline void set_votekickreplytype(::VoteKickReplyMessage_VoteKickReplyType value); + bool has_votekickreplytype() const; + private: + bool _internal_has_votekickreplytype() const; + public: + void clear_votekickreplytype(); + ::VoteKickReplyMessage_VoteKickReplyType votekickreplytype() const; + void set_votekickreplytype(::VoteKickReplyMessage_VoteKickReplyType value); + private: + ::VoteKickReplyMessage_VoteKickReplyType _internal_votekickreplytype() const; + void _internal_set_votekickreplytype(::VoteKickReplyMessage_VoteKickReplyType value); + public: // @@protoc_insertion_point(class_scope:VoteKickReplyMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_petitionid(); - inline void clear_has_petitionid(); - inline void set_has_votekickreplytype(); - inline void clear_has_votekickreplytype(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 petitionid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 petitionid_; int votekickreplytype_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static VoteKickReplyMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class KickPetitionUpdateMessage : public ::google::protobuf::MessageLite { +class KickPetitionUpdateMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:KickPetitionUpdateMessage) */ { public: - KickPetitionUpdateMessage(); + inline KickPetitionUpdateMessage() : KickPetitionUpdateMessage(nullptr) {}; virtual ~KickPetitionUpdateMessage(); KickPetitionUpdateMessage(const KickPetitionUpdateMessage& from); + KickPetitionUpdateMessage(KickPetitionUpdateMessage&& from) noexcept + : KickPetitionUpdateMessage() { + *this = ::std::move(from); + } inline KickPetitionUpdateMessage& operator=(const KickPetitionUpdateMessage& from) { CopyFrom(from); return *this; } + inline KickPetitionUpdateMessage& operator=(KickPetitionUpdateMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const KickPetitionUpdateMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const KickPetitionUpdateMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_KickPetitionUpdateMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 71; - void Swap(KickPetitionUpdateMessage* other); + friend void swap(KickPetitionUpdateMessage& a, KickPetitionUpdateMessage& b) { + a.Swap(&b); + } + inline void Swap(KickPetitionUpdateMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(KickPetitionUpdateMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - KickPetitionUpdateMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline KickPetitionUpdateMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + KickPetitionUpdateMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const KickPetitionUpdateMessage& from); void MergeFrom(const KickPetitionUpdateMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(KickPetitionUpdateMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "KickPetitionUpdateMessage"; + } + protected: + explicit KickPetitionUpdateMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPetitionIdFieldNumber = 2, + kNumVotesAgainstKickingFieldNumber = 3, + kNumVotesInFavourOfKickingFieldNumber = 4, + kNumVotesNeededToKickFieldNumber = 5, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 petitionId = 2; - inline bool has_petitionid() const; - inline void clear_petitionid(); - static const int kPetitionIdFieldNumber = 2; - inline ::google::protobuf::uint32 petitionid() const; - inline void set_petitionid(::google::protobuf::uint32 value); + bool has_petitionid() const; + private: + bool _internal_has_petitionid() const; + public: + void clear_petitionid(); + ::PROTOBUF_NAMESPACE_ID::uint32 petitionid() const; + void set_petitionid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_petitionid() const; + void _internal_set_petitionid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 numVotesAgainstKicking = 3; - inline bool has_numvotesagainstkicking() const; - inline void clear_numvotesagainstkicking(); - static const int kNumVotesAgainstKickingFieldNumber = 3; - inline ::google::protobuf::uint32 numvotesagainstkicking() const; - inline void set_numvotesagainstkicking(::google::protobuf::uint32 value); + bool has_numvotesagainstkicking() const; + private: + bool _internal_has_numvotesagainstkicking() const; + public: + void clear_numvotesagainstkicking(); + ::PROTOBUF_NAMESPACE_ID::uint32 numvotesagainstkicking() const; + void set_numvotesagainstkicking(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_numvotesagainstkicking() const; + void _internal_set_numvotesagainstkicking(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 numVotesInFavourOfKicking = 4; - inline bool has_numvotesinfavourofkicking() const; - inline void clear_numvotesinfavourofkicking(); - static const int kNumVotesInFavourOfKickingFieldNumber = 4; - inline ::google::protobuf::uint32 numvotesinfavourofkicking() const; - inline void set_numvotesinfavourofkicking(::google::protobuf::uint32 value); + bool has_numvotesinfavourofkicking() const; + private: + bool _internal_has_numvotesinfavourofkicking() const; + public: + void clear_numvotesinfavourofkicking(); + ::PROTOBUF_NAMESPACE_ID::uint32 numvotesinfavourofkicking() const; + void set_numvotesinfavourofkicking(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_numvotesinfavourofkicking() const; + void _internal_set_numvotesinfavourofkicking(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 numVotesNeededToKick = 5; - inline bool has_numvotesneededtokick() const; - inline void clear_numvotesneededtokick(); - static const int kNumVotesNeededToKickFieldNumber = 5; - inline ::google::protobuf::uint32 numvotesneededtokick() const; - inline void set_numvotesneededtokick(::google::protobuf::uint32 value); + bool has_numvotesneededtokick() const; + private: + bool _internal_has_numvotesneededtokick() const; + public: + void clear_numvotesneededtokick(); + ::PROTOBUF_NAMESPACE_ID::uint32 numvotesneededtokick() const; + void set_numvotesneededtokick(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_numvotesneededtokick() const; + void _internal_set_numvotesneededtokick(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:KickPetitionUpdateMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_petitionid(); - inline void clear_has_petitionid(); - inline void set_has_numvotesagainstkicking(); - inline void clear_has_numvotesagainstkicking(); - inline void set_has_numvotesinfavourofkicking(); - inline void clear_has_numvotesinfavourofkicking(); - inline void set_has_numvotesneededtokick(); - inline void clear_has_numvotesneededtokick(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 petitionid_; - ::google::protobuf::uint32 numvotesagainstkicking_; - ::google::protobuf::uint32 numvotesinfavourofkicking_; - ::google::protobuf::uint32 numvotesneededtokick_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static KickPetitionUpdateMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 petitionid_; + ::PROTOBUF_NAMESPACE_ID::uint32 numvotesagainstkicking_; + ::PROTOBUF_NAMESPACE_ID::uint32 numvotesinfavourofkicking_; + ::PROTOBUF_NAMESPACE_ID::uint32 numvotesneededtokick_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class EndKickPetitionMessage : public ::google::protobuf::MessageLite { +class EndKickPetitionMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:EndKickPetitionMessage) */ { public: - EndKickPetitionMessage(); + inline EndKickPetitionMessage() : EndKickPetitionMessage(nullptr) {}; virtual ~EndKickPetitionMessage(); EndKickPetitionMessage(const EndKickPetitionMessage& from); + EndKickPetitionMessage(EndKickPetitionMessage&& from) noexcept + : EndKickPetitionMessage() { + *this = ::std::move(from); + } inline EndKickPetitionMessage& operator=(const EndKickPetitionMessage& from) { CopyFrom(from); return *this; } + inline EndKickPetitionMessage& operator=(EndKickPetitionMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const EndKickPetitionMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const EndKickPetitionMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_EndKickPetitionMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 72; - void Swap(EndKickPetitionMessage* other); + friend void swap(EndKickPetitionMessage& a, EndKickPetitionMessage& b) { + a.Swap(&b); + } + inline void Swap(EndKickPetitionMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EndKickPetitionMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - EndKickPetitionMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline EndKickPetitionMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + EndKickPetitionMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const EndKickPetitionMessage& from); void MergeFrom(const EndKickPetitionMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(EndKickPetitionMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "EndKickPetitionMessage"; + } + protected: + explicit EndKickPetitionMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef EndKickPetitionMessage_PetitionEndReason PetitionEndReason; - static const PetitionEndReason petitionEndEnoughVotes = EndKickPetitionMessage_PetitionEndReason_petitionEndEnoughVotes; - static const PetitionEndReason petitionEndTooFewPlayers = EndKickPetitionMessage_PetitionEndReason_petitionEndTooFewPlayers; - static const PetitionEndReason petitionEndPlayerLeft = EndKickPetitionMessage_PetitionEndReason_petitionEndPlayerLeft; - static const PetitionEndReason petitionEndTimeout = EndKickPetitionMessage_PetitionEndReason_petitionEndTimeout; + static constexpr PetitionEndReason petitionEndEnoughVotes = + EndKickPetitionMessage_PetitionEndReason_petitionEndEnoughVotes; + static constexpr PetitionEndReason petitionEndTooFewPlayers = + EndKickPetitionMessage_PetitionEndReason_petitionEndTooFewPlayers; + static constexpr PetitionEndReason petitionEndPlayerLeft = + EndKickPetitionMessage_PetitionEndReason_petitionEndPlayerLeft; + static constexpr PetitionEndReason petitionEndTimeout = + EndKickPetitionMessage_PetitionEndReason_petitionEndTimeout; static inline bool PetitionEndReason_IsValid(int value) { return EndKickPetitionMessage_PetitionEndReason_IsValid(value); } - static const PetitionEndReason PetitionEndReason_MIN = + static constexpr PetitionEndReason PetitionEndReason_MIN = EndKickPetitionMessage_PetitionEndReason_PetitionEndReason_MIN; - static const PetitionEndReason PetitionEndReason_MAX = + static constexpr PetitionEndReason PetitionEndReason_MAX = EndKickPetitionMessage_PetitionEndReason_PetitionEndReason_MAX; - static const int PetitionEndReason_ARRAYSIZE = + static constexpr int PetitionEndReason_ARRAYSIZE = EndKickPetitionMessage_PetitionEndReason_PetitionEndReason_ARRAYSIZE; + template + static inline const std::string& PetitionEndReason_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PetitionEndReason_Name."); + return EndKickPetitionMessage_PetitionEndReason_Name(enum_t_value); + } + static inline bool PetitionEndReason_Parse(const std::string& name, + PetitionEndReason* value) { + return EndKickPetitionMessage_PetitionEndReason_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kGameIdFieldNumber = 1, + kPetitionIdFieldNumber = 2, + kNumVotesAgainstKickingFieldNumber = 3, + kNumVotesInFavourOfKickingFieldNumber = 4, + kResultPlayerKickedFieldNumber = 5, + kPetitionEndReasonFieldNumber = 6, + }; // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 petitionId = 2; - inline bool has_petitionid() const; - inline void clear_petitionid(); - static const int kPetitionIdFieldNumber = 2; - inline ::google::protobuf::uint32 petitionid() const; - inline void set_petitionid(::google::protobuf::uint32 value); + bool has_petitionid() const; + private: + bool _internal_has_petitionid() const; + public: + void clear_petitionid(); + ::PROTOBUF_NAMESPACE_ID::uint32 petitionid() const; + void set_petitionid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_petitionid() const; + void _internal_set_petitionid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 numVotesAgainstKicking = 3; - inline bool has_numvotesagainstkicking() const; - inline void clear_numvotesagainstkicking(); - static const int kNumVotesAgainstKickingFieldNumber = 3; - inline ::google::protobuf::uint32 numvotesagainstkicking() const; - inline void set_numvotesagainstkicking(::google::protobuf::uint32 value); + bool has_numvotesagainstkicking() const; + private: + bool _internal_has_numvotesagainstkicking() const; + public: + void clear_numvotesagainstkicking(); + ::PROTOBUF_NAMESPACE_ID::uint32 numvotesagainstkicking() const; + void set_numvotesagainstkicking(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_numvotesagainstkicking() const; + void _internal_set_numvotesagainstkicking(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 numVotesInFavourOfKicking = 4; - inline bool has_numvotesinfavourofkicking() const; - inline void clear_numvotesinfavourofkicking(); - static const int kNumVotesInFavourOfKickingFieldNumber = 4; - inline ::google::protobuf::uint32 numvotesinfavourofkicking() const; - inline void set_numvotesinfavourofkicking(::google::protobuf::uint32 value); + bool has_numvotesinfavourofkicking() const; + private: + bool _internal_has_numvotesinfavourofkicking() const; + public: + void clear_numvotesinfavourofkicking(); + ::PROTOBUF_NAMESPACE_ID::uint32 numvotesinfavourofkicking() const; + void set_numvotesinfavourofkicking(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_numvotesinfavourofkicking() const; + void _internal_set_numvotesinfavourofkicking(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required uint32 resultPlayerKicked = 5; - inline bool has_resultplayerkicked() const; - inline void clear_resultplayerkicked(); - static const int kResultPlayerKickedFieldNumber = 5; - inline ::google::protobuf::uint32 resultplayerkicked() const; - inline void set_resultplayerkicked(::google::protobuf::uint32 value); + bool has_resultplayerkicked() const; + private: + bool _internal_has_resultplayerkicked() const; + public: + void clear_resultplayerkicked(); + ::PROTOBUF_NAMESPACE_ID::uint32 resultplayerkicked() const; + void set_resultplayerkicked(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_resultplayerkicked() const; + void _internal_set_resultplayerkicked(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - inline bool has_petitionendreason() const; - inline void clear_petitionendreason(); - static const int kPetitionEndReasonFieldNumber = 6; - inline ::EndKickPetitionMessage_PetitionEndReason petitionendreason() const; - inline void set_petitionendreason(::EndKickPetitionMessage_PetitionEndReason value); + bool has_petitionendreason() const; + private: + bool _internal_has_petitionendreason() const; + public: + void clear_petitionendreason(); + ::EndKickPetitionMessage_PetitionEndReason petitionendreason() const; + void set_petitionendreason(::EndKickPetitionMessage_PetitionEndReason value); + private: + ::EndKickPetitionMessage_PetitionEndReason _internal_petitionendreason() const; + void _internal_set_petitionendreason(::EndKickPetitionMessage_PetitionEndReason value); + public: // @@protoc_insertion_point(class_scope:EndKickPetitionMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_petitionid(); - inline void clear_has_petitionid(); - inline void set_has_numvotesagainstkicking(); - inline void clear_has_numvotesagainstkicking(); - inline void set_has_numvotesinfavourofkicking(); - inline void clear_has_numvotesinfavourofkicking(); - inline void set_has_resultplayerkicked(); - inline void clear_has_resultplayerkicked(); - inline void set_has_petitionendreason(); - inline void clear_has_petitionendreason(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 petitionid_; - ::google::protobuf::uint32 numvotesagainstkicking_; - ::google::protobuf::uint32 numvotesinfavourofkicking_; - ::google::protobuf::uint32 resultplayerkicked_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 petitionid_; + ::PROTOBUF_NAMESPACE_ID::uint32 numvotesagainstkicking_; + ::PROTOBUF_NAMESPACE_ID::uint32 numvotesinfavourofkicking_; + ::PROTOBUF_NAMESPACE_ID::uint32 resultplayerkicked_; int petitionendreason_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static EndKickPetitionMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class StatisticsMessage_StatisticsData : public ::google::protobuf::MessageLite { +class StatisticsMessage_StatisticsData PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:StatisticsMessage.StatisticsData) */ { public: - StatisticsMessage_StatisticsData(); + inline StatisticsMessage_StatisticsData() : StatisticsMessage_StatisticsData(nullptr) {}; virtual ~StatisticsMessage_StatisticsData(); StatisticsMessage_StatisticsData(const StatisticsMessage_StatisticsData& from); + StatisticsMessage_StatisticsData(StatisticsMessage_StatisticsData&& from) noexcept + : StatisticsMessage_StatisticsData() { + *this = ::std::move(from); + } inline StatisticsMessage_StatisticsData& operator=(const StatisticsMessage_StatisticsData& from) { CopyFrom(from); return *this; } + inline StatisticsMessage_StatisticsData& operator=(StatisticsMessage_StatisticsData&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const StatisticsMessage_StatisticsData& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const StatisticsMessage_StatisticsData* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_StatisticsMessage_StatisticsData_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 73; - void Swap(StatisticsMessage_StatisticsData* other); + friend void swap(StatisticsMessage_StatisticsData& a, StatisticsMessage_StatisticsData& b) { + a.Swap(&b); + } + inline void Swap(StatisticsMessage_StatisticsData* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(StatisticsMessage_StatisticsData* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - StatisticsMessage_StatisticsData* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline StatisticsMessage_StatisticsData* New() const final { + return CreateMaybeMessage(nullptr); + } + + StatisticsMessage_StatisticsData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const StatisticsMessage_StatisticsData& from); void MergeFrom(const StatisticsMessage_StatisticsData& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(StatisticsMessage_StatisticsData* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "StatisticsMessage.StatisticsData"; + } + protected: + explicit StatisticsMessage_StatisticsData(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef StatisticsMessage_StatisticsData_StatisticsType StatisticsType; - static const StatisticsType statNumberOfPlayers = StatisticsMessage_StatisticsData_StatisticsType_statNumberOfPlayers; + static constexpr StatisticsType statNumberOfPlayers = + StatisticsMessage_StatisticsData_StatisticsType_statNumberOfPlayers; static inline bool StatisticsType_IsValid(int value) { return StatisticsMessage_StatisticsData_StatisticsType_IsValid(value); } - static const StatisticsType StatisticsType_MIN = + static constexpr StatisticsType StatisticsType_MIN = StatisticsMessage_StatisticsData_StatisticsType_StatisticsType_MIN; - static const StatisticsType StatisticsType_MAX = + static constexpr StatisticsType StatisticsType_MAX = StatisticsMessage_StatisticsData_StatisticsType_StatisticsType_MAX; - static const int StatisticsType_ARRAYSIZE = + static constexpr int StatisticsType_ARRAYSIZE = StatisticsMessage_StatisticsData_StatisticsType_StatisticsType_ARRAYSIZE; + template + static inline const std::string& StatisticsType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function StatisticsType_Name."); + return StatisticsMessage_StatisticsData_StatisticsType_Name(enum_t_value); + } + static inline bool StatisticsType_Parse(const std::string& name, + StatisticsType* value) { + return StatisticsMessage_StatisticsData_StatisticsType_Parse(name, value); + } // accessors ------------------------------------------------------- - // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; - inline bool has_statisticstype() const; - inline void clear_statisticstype(); - static const int kStatisticsTypeFieldNumber = 1; - inline ::StatisticsMessage_StatisticsData_StatisticsType statisticstype() const; - inline void set_statisticstype(::StatisticsMessage_StatisticsData_StatisticsType value); - + enum : int { + kStatisticsValueFieldNumber = 2, + kStatisticsTypeFieldNumber = 1, + }; // required uint32 statisticsValue = 2; - inline bool has_statisticsvalue() const; - inline void clear_statisticsvalue(); - static const int kStatisticsValueFieldNumber = 2; - inline ::google::protobuf::uint32 statisticsvalue() const; - inline void set_statisticsvalue(::google::protobuf::uint32 value); + bool has_statisticsvalue() const; + private: + bool _internal_has_statisticsvalue() const; + public: + void clear_statisticsvalue(); + ::PROTOBUF_NAMESPACE_ID::uint32 statisticsvalue() const; + void set_statisticsvalue(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_statisticsvalue() const; + void _internal_set_statisticsvalue(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; + bool has_statisticstype() const; + private: + bool _internal_has_statisticstype() const; + public: + void clear_statisticstype(); + ::StatisticsMessage_StatisticsData_StatisticsType statisticstype() const; + void set_statisticstype(::StatisticsMessage_StatisticsData_StatisticsType value); + private: + ::StatisticsMessage_StatisticsData_StatisticsType _internal_statisticstype() const; + void _internal_set_statisticstype(::StatisticsMessage_StatisticsData_StatisticsType value); + public: // @@protoc_insertion_point(class_scope:StatisticsMessage.StatisticsData) private: - inline void set_has_statisticstype(); - inline void clear_has_statisticstype(); - inline void set_has_statisticsvalue(); - inline void clear_has_statisticsvalue(); + class _Internal; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 statisticsvalue_; int statisticstype_; - ::google::protobuf::uint32 statisticsvalue_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static StatisticsMessage_StatisticsData* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class StatisticsMessage : public ::google::protobuf::MessageLite { +class StatisticsMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:StatisticsMessage) */ { public: - StatisticsMessage(); + inline StatisticsMessage() : StatisticsMessage(nullptr) {}; virtual ~StatisticsMessage(); StatisticsMessage(const StatisticsMessage& from); + StatisticsMessage(StatisticsMessage&& from) noexcept + : StatisticsMessage() { + *this = ::std::move(from); + } inline StatisticsMessage& operator=(const StatisticsMessage& from) { CopyFrom(from); return *this; } + inline StatisticsMessage& operator=(StatisticsMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const StatisticsMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const StatisticsMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_StatisticsMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 74; - void Swap(StatisticsMessage* other); + friend void swap(StatisticsMessage& a, StatisticsMessage& b) { + a.Swap(&b); + } + inline void Swap(StatisticsMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(StatisticsMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - StatisticsMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline StatisticsMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + StatisticsMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const StatisticsMessage& from); void MergeFrom(const StatisticsMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(StatisticsMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "StatisticsMessage"; + } + protected: + explicit StatisticsMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- @@ -8906,612 +14533,1029 @@ class StatisticsMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- + enum : int { + kStatisticsDataFieldNumber = 1, + }; // repeated .StatisticsMessage.StatisticsData statisticsData = 1; - inline int statisticsdata_size() const; - inline void clear_statisticsdata(); - static const int kStatisticsDataFieldNumber = 1; - inline const ::StatisticsMessage_StatisticsData& statisticsdata(int index) const; - inline ::StatisticsMessage_StatisticsData* mutable_statisticsdata(int index); - inline ::StatisticsMessage_StatisticsData* add_statisticsdata(); - inline const ::google::protobuf::RepeatedPtrField< ::StatisticsMessage_StatisticsData >& - statisticsdata() const; - inline ::google::protobuf::RepeatedPtrField< ::StatisticsMessage_StatisticsData >* + int statisticsdata_size() const; + private: + int _internal_statisticsdata_size() const; + public: + void clear_statisticsdata(); + ::StatisticsMessage_StatisticsData* mutable_statisticsdata(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::StatisticsMessage_StatisticsData >* mutable_statisticsdata(); + private: + const ::StatisticsMessage_StatisticsData& _internal_statisticsdata(int index) const; + ::StatisticsMessage_StatisticsData* _internal_add_statisticsdata(); + public: + const ::StatisticsMessage_StatisticsData& statisticsdata(int index) const; + ::StatisticsMessage_StatisticsData* add_statisticsdata(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::StatisticsMessage_StatisticsData >& + statisticsdata() const; // @@protoc_insertion_point(class_scope:StatisticsMessage) private: + class _Internal; - ::google::protobuf::RepeatedPtrField< ::StatisticsMessage_StatisticsData > statisticsdata_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static StatisticsMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::StatisticsMessage_StatisticsData > statisticsdata_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class ChatRequestMessage : public ::google::protobuf::MessageLite { +class ChatRequestMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:ChatRequestMessage) */ { public: - ChatRequestMessage(); + inline ChatRequestMessage() : ChatRequestMessage(nullptr) {}; virtual ~ChatRequestMessage(); ChatRequestMessage(const ChatRequestMessage& from); + ChatRequestMessage(ChatRequestMessage&& from) noexcept + : ChatRequestMessage() { + *this = ::std::move(from); + } inline ChatRequestMessage& operator=(const ChatRequestMessage& from) { CopyFrom(from); return *this; } + inline ChatRequestMessage& operator=(ChatRequestMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const ChatRequestMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ChatRequestMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ChatRequestMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 75; - void Swap(ChatRequestMessage* other); + friend void swap(ChatRequestMessage& a, ChatRequestMessage& b) { + a.Swap(&b); + } + inline void Swap(ChatRequestMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ChatRequestMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - ChatRequestMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline ChatRequestMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + ChatRequestMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const ChatRequestMessage& from); void MergeFrom(const ChatRequestMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(ChatRequestMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "ChatRequestMessage"; + } + protected: + explicit ChatRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kChatTextFieldNumber = 3, + kTargetGameIdFieldNumber = 1, + kTargetPlayerIdFieldNumber = 2, + }; + // required string chatText = 3; + bool has_chattext() const; + private: + bool _internal_has_chattext() const; + public: + void clear_chattext(); + const std::string& chattext() const; + void set_chattext(const std::string& value); + void set_chattext(std::string&& value); + void set_chattext(const char* value); + void set_chattext(const char* value, size_t size); + std::string* mutable_chattext(); + std::string* release_chattext(); + void set_allocated_chattext(std::string* chattext); + 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_chattext(); + 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_chattext( + std::string* chattext); + private: + const std::string& _internal_chattext() const; + void _internal_set_chattext(const std::string& value); + std::string* _internal_mutable_chattext(); + public: + // optional uint32 targetGameId = 1; - inline bool has_targetgameid() const; - inline void clear_targetgameid(); - static const int kTargetGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 targetgameid() const; - inline void set_targetgameid(::google::protobuf::uint32 value); + bool has_targetgameid() const; + private: + bool _internal_has_targetgameid() const; + public: + void clear_targetgameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 targetgameid() const; + void set_targetgameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_targetgameid() const; + void _internal_set_targetgameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // optional uint32 targetPlayerId = 2; - inline bool has_targetplayerid() const; - inline void clear_targetplayerid(); - static const int kTargetPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 targetplayerid() const; - inline void set_targetplayerid(::google::protobuf::uint32 value); - - // required string chatText = 3; - inline bool has_chattext() const; - inline void clear_chattext(); - static const int kChatTextFieldNumber = 3; - inline const ::std::string& chattext() const; - inline void set_chattext(const ::std::string& value); - inline void set_chattext(const char* value); - inline void set_chattext(const char* value, size_t size); - inline ::std::string* mutable_chattext(); - inline ::std::string* release_chattext(); - inline void set_allocated_chattext(::std::string* chattext); + bool has_targetplayerid() const; + private: + bool _internal_has_targetplayerid() const; + public: + void clear_targetplayerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 targetplayerid() const; + void set_targetplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_targetplayerid() const; + void _internal_set_targetplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:ChatRequestMessage) private: - inline void set_has_targetgameid(); - inline void clear_has_targetgameid(); - inline void set_has_targetplayerid(); - inline void clear_has_targetplayerid(); - inline void set_has_chattext(); - inline void clear_has_chattext(); + class _Internal; - ::google::protobuf::uint32 targetgameid_; - ::google::protobuf::uint32 targetplayerid_; - ::std::string* chattext_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static ChatRequestMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr chattext_; + ::PROTOBUF_NAMESPACE_ID::uint32 targetgameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 targetplayerid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class ChatMessage : public ::google::protobuf::MessageLite { +class ChatMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:ChatMessage) */ { public: - ChatMessage(); + inline ChatMessage() : ChatMessage(nullptr) {}; virtual ~ChatMessage(); ChatMessage(const ChatMessage& from); + ChatMessage(ChatMessage&& from) noexcept + : ChatMessage() { + *this = ::std::move(from); + } inline ChatMessage& operator=(const ChatMessage& from) { CopyFrom(from); return *this; } + inline ChatMessage& operator=(ChatMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const ChatMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ChatMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ChatMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 76; - void Swap(ChatMessage* other); + friend void swap(ChatMessage& a, ChatMessage& b) { + a.Swap(&b); + } + inline void Swap(ChatMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ChatMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - ChatMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline ChatMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + ChatMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const ChatMessage& from); void MergeFrom(const ChatMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(ChatMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "ChatMessage"; + } + protected: + explicit ChatMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef ChatMessage_ChatType ChatType; - static const ChatType chatTypeLobby = ChatMessage_ChatType_chatTypeLobby; - static const ChatType chatTypeGame = ChatMessage_ChatType_chatTypeGame; - static const ChatType chatTypeBot = ChatMessage_ChatType_chatTypeBot; - static const ChatType chatTypeBroadcast = ChatMessage_ChatType_chatTypeBroadcast; - static const ChatType chatTypePrivate = ChatMessage_ChatType_chatTypePrivate; + static constexpr ChatType chatTypeLobby = + ChatMessage_ChatType_chatTypeLobby; + static constexpr ChatType chatTypeGame = + ChatMessage_ChatType_chatTypeGame; + static constexpr ChatType chatTypeBot = + ChatMessage_ChatType_chatTypeBot; + static constexpr ChatType chatTypeBroadcast = + ChatMessage_ChatType_chatTypeBroadcast; + static constexpr ChatType chatTypePrivate = + ChatMessage_ChatType_chatTypePrivate; static inline bool ChatType_IsValid(int value) { return ChatMessage_ChatType_IsValid(value); } - static const ChatType ChatType_MIN = + static constexpr ChatType ChatType_MIN = ChatMessage_ChatType_ChatType_MIN; - static const ChatType ChatType_MAX = + static constexpr ChatType ChatType_MAX = ChatMessage_ChatType_ChatType_MAX; - static const int ChatType_ARRAYSIZE = + static constexpr int ChatType_ARRAYSIZE = ChatMessage_ChatType_ChatType_ARRAYSIZE; + template + static inline const std::string& ChatType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ChatType_Name."); + return ChatMessage_ChatType_Name(enum_t_value); + } + static inline bool ChatType_Parse(const std::string& name, + ChatType* value) { + return ChatMessage_ChatType_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kChatTextFieldNumber = 4, + kGameIdFieldNumber = 1, + kPlayerIdFieldNumber = 2, + kChatTypeFieldNumber = 3, + }; + // required string chatText = 4; + bool has_chattext() const; + private: + bool _internal_has_chattext() const; + public: + void clear_chattext(); + const std::string& chattext() const; + void set_chattext(const std::string& value); + void set_chattext(std::string&& value); + void set_chattext(const char* value); + void set_chattext(const char* value, size_t size); + std::string* mutable_chattext(); + std::string* release_chattext(); + void set_allocated_chattext(std::string* chattext); + 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_chattext(); + 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_chattext( + std::string* chattext); + private: + const std::string& _internal_chattext() const; + void _internal_set_chattext(const std::string& value); + std::string* _internal_mutable_chattext(); + public: + // optional uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + bool has_gameid() const; + private: + bool _internal_has_gameid() const; + public: + void clear_gameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 gameid() const; + void set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_gameid() const; + void _internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // optional uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + bool has_playerid() const; + private: + bool _internal_has_playerid() const; + public: + void clear_playerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 playerid() const; + void set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_playerid() const; + void _internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .ChatMessage.ChatType chatType = 3; - inline bool has_chattype() const; - inline void clear_chattype(); - static const int kChatTypeFieldNumber = 3; - inline ::ChatMessage_ChatType chattype() const; - inline void set_chattype(::ChatMessage_ChatType value); - - // required string chatText = 4; - inline bool has_chattext() const; - inline void clear_chattext(); - static const int kChatTextFieldNumber = 4; - inline const ::std::string& chattext() const; - inline void set_chattext(const ::std::string& value); - inline void set_chattext(const char* value); - inline void set_chattext(const char* value, size_t size); - inline ::std::string* mutable_chattext(); - inline ::std::string* release_chattext(); - inline void set_allocated_chattext(::std::string* chattext); + bool has_chattype() const; + private: + bool _internal_has_chattype() const; + public: + void clear_chattype(); + ::ChatMessage_ChatType chattype() const; + void set_chattype(::ChatMessage_ChatType value); + private: + ::ChatMessage_ChatType _internal_chattype() const; + void _internal_set_chattype(::ChatMessage_ChatType value); + public: // @@protoc_insertion_point(class_scope:ChatMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_chattype(); - inline void clear_has_chattype(); - inline void set_has_chattext(); - inline void clear_has_chattext(); + class _Internal; - ::google::protobuf::uint32 gameid_; - ::google::protobuf::uint32 playerid_; - ::std::string* chattext_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr chattext_; + ::PROTOBUF_NAMESPACE_ID::uint32 gameid_; + ::PROTOBUF_NAMESPACE_ID::uint32 playerid_; int chattype_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static ChatMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class ChatRejectMessage : public ::google::protobuf::MessageLite { +class ChatRejectMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:ChatRejectMessage) */ { public: - ChatRejectMessage(); + inline ChatRejectMessage() : ChatRejectMessage(nullptr) {}; virtual ~ChatRejectMessage(); ChatRejectMessage(const ChatRejectMessage& from); + ChatRejectMessage(ChatRejectMessage&& from) noexcept + : ChatRejectMessage() { + *this = ::std::move(from); + } inline ChatRejectMessage& operator=(const ChatRejectMessage& from) { CopyFrom(from); return *this; } + inline ChatRejectMessage& operator=(ChatRejectMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const ChatRejectMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ChatRejectMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ChatRejectMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 77; - void Swap(ChatRejectMessage* other); + friend void swap(ChatRejectMessage& a, ChatRejectMessage& b) { + a.Swap(&b); + } + inline void Swap(ChatRejectMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ChatRejectMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - ChatRejectMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline ChatRejectMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + ChatRejectMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const ChatRejectMessage& from); void MergeFrom(const ChatRejectMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(ChatRejectMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "ChatRejectMessage"; + } + protected: + explicit ChatRejectMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kChatTextFieldNumber = 1, + }; // required string chatText = 1; - inline bool has_chattext() const; - inline void clear_chattext(); - static const int kChatTextFieldNumber = 1; - inline const ::std::string& chattext() const; - inline void set_chattext(const ::std::string& value); - inline void set_chattext(const char* value); - inline void set_chattext(const char* value, size_t size); - inline ::std::string* mutable_chattext(); - inline ::std::string* release_chattext(); - inline void set_allocated_chattext(::std::string* chattext); + bool has_chattext() const; + private: + bool _internal_has_chattext() const; + public: + void clear_chattext(); + const std::string& chattext() const; + void set_chattext(const std::string& value); + void set_chattext(std::string&& value); + void set_chattext(const char* value); + void set_chattext(const char* value, size_t size); + std::string* mutable_chattext(); + std::string* release_chattext(); + void set_allocated_chattext(std::string* chattext); + 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_chattext(); + 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_chattext( + std::string* chattext); + private: + const std::string& _internal_chattext() const; + void _internal_set_chattext(const std::string& value); + std::string* _internal_mutable_chattext(); + public: // @@protoc_insertion_point(class_scope:ChatRejectMessage) private: - inline void set_has_chattext(); - inline void clear_has_chattext(); + class _Internal; - ::std::string* chattext_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static ChatRejectMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr chattext_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class DialogMessage : public ::google::protobuf::MessageLite { +class DialogMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:DialogMessage) */ { public: - DialogMessage(); + inline DialogMessage() : DialogMessage(nullptr) {}; virtual ~DialogMessage(); DialogMessage(const DialogMessage& from); + DialogMessage(DialogMessage&& from) noexcept + : DialogMessage() { + *this = ::std::move(from); + } inline DialogMessage& operator=(const DialogMessage& from) { CopyFrom(from); return *this; } + inline DialogMessage& operator=(DialogMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const DialogMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const DialogMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_DialogMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 78; - void Swap(DialogMessage* other); + friend void swap(DialogMessage& a, DialogMessage& b) { + a.Swap(&b); + } + inline void Swap(DialogMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DialogMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - DialogMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline DialogMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + DialogMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const DialogMessage& from); void MergeFrom(const DialogMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(DialogMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "DialogMessage"; + } + protected: + explicit DialogMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kNotificationTextFieldNumber = 1, + }; // required string notificationText = 1; - inline bool has_notificationtext() const; - inline void clear_notificationtext(); - static const int kNotificationTextFieldNumber = 1; - inline const ::std::string& notificationtext() const; - inline void set_notificationtext(const ::std::string& value); - inline void set_notificationtext(const char* value); - inline void set_notificationtext(const char* value, size_t size); - inline ::std::string* mutable_notificationtext(); - inline ::std::string* release_notificationtext(); - inline void set_allocated_notificationtext(::std::string* notificationtext); + bool has_notificationtext() const; + private: + bool _internal_has_notificationtext() const; + public: + void clear_notificationtext(); + const std::string& notificationtext() const; + void set_notificationtext(const std::string& value); + void set_notificationtext(std::string&& value); + void set_notificationtext(const char* value); + void set_notificationtext(const char* value, size_t size); + std::string* mutable_notificationtext(); + std::string* release_notificationtext(); + void set_allocated_notificationtext(std::string* notificationtext); + 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_notificationtext(); + 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_notificationtext( + std::string* notificationtext); + private: + const std::string& _internal_notificationtext() const; + void _internal_set_notificationtext(const std::string& value); + std::string* _internal_mutable_notificationtext(); + public: // @@protoc_insertion_point(class_scope:DialogMessage) private: - inline void set_has_notificationtext(); - inline void clear_has_notificationtext(); + class _Internal; - ::std::string* notificationtext_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static DialogMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr notificationtext_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class TimeoutWarningMessage : public ::google::protobuf::MessageLite { +class TimeoutWarningMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:TimeoutWarningMessage) */ { public: - TimeoutWarningMessage(); + inline TimeoutWarningMessage() : TimeoutWarningMessage(nullptr) {}; virtual ~TimeoutWarningMessage(); TimeoutWarningMessage(const TimeoutWarningMessage& from); + TimeoutWarningMessage(TimeoutWarningMessage&& from) noexcept + : TimeoutWarningMessage() { + *this = ::std::move(from); + } inline TimeoutWarningMessage& operator=(const TimeoutWarningMessage& from) { CopyFrom(from); return *this; } + inline TimeoutWarningMessage& operator=(TimeoutWarningMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const TimeoutWarningMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const TimeoutWarningMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_TimeoutWarningMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 79; - void Swap(TimeoutWarningMessage* other); + friend void swap(TimeoutWarningMessage& a, TimeoutWarningMessage& b) { + a.Swap(&b); + } + inline void Swap(TimeoutWarningMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TimeoutWarningMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - TimeoutWarningMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline TimeoutWarningMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + TimeoutWarningMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const TimeoutWarningMessage& from); void MergeFrom(const TimeoutWarningMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(TimeoutWarningMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "TimeoutWarningMessage"; + } + protected: + explicit TimeoutWarningMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef TimeoutWarningMessage_TimeoutReason TimeoutReason; - static const TimeoutReason timeoutNoDataReceived = TimeoutWarningMessage_TimeoutReason_timeoutNoDataReceived; - static const TimeoutReason timeoutInactiveGame = TimeoutWarningMessage_TimeoutReason_timeoutInactiveGame; - static const TimeoutReason timeoutKickAfterAutofold = TimeoutWarningMessage_TimeoutReason_timeoutKickAfterAutofold; + static constexpr TimeoutReason timeoutNoDataReceived = + TimeoutWarningMessage_TimeoutReason_timeoutNoDataReceived; + static constexpr TimeoutReason timeoutInactiveGame = + TimeoutWarningMessage_TimeoutReason_timeoutInactiveGame; + static constexpr TimeoutReason timeoutKickAfterAutofold = + TimeoutWarningMessage_TimeoutReason_timeoutKickAfterAutofold; static inline bool TimeoutReason_IsValid(int value) { return TimeoutWarningMessage_TimeoutReason_IsValid(value); } - static const TimeoutReason TimeoutReason_MIN = + static constexpr TimeoutReason TimeoutReason_MIN = TimeoutWarningMessage_TimeoutReason_TimeoutReason_MIN; - static const TimeoutReason TimeoutReason_MAX = + static constexpr TimeoutReason TimeoutReason_MAX = TimeoutWarningMessage_TimeoutReason_TimeoutReason_MAX; - static const int TimeoutReason_ARRAYSIZE = + static constexpr int TimeoutReason_ARRAYSIZE = TimeoutWarningMessage_TimeoutReason_TimeoutReason_ARRAYSIZE; + template + static inline const std::string& TimeoutReason_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function TimeoutReason_Name."); + return TimeoutWarningMessage_TimeoutReason_Name(enum_t_value); + } + static inline bool TimeoutReason_Parse(const std::string& name, + TimeoutReason* value) { + return TimeoutWarningMessage_TimeoutReason_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kTimeoutReasonFieldNumber = 1, + kRemainingSecondsFieldNumber = 2, + }; // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - inline bool has_timeoutreason() const; - inline void clear_timeoutreason(); - static const int kTimeoutReasonFieldNumber = 1; - inline ::TimeoutWarningMessage_TimeoutReason timeoutreason() const; - inline void set_timeoutreason(::TimeoutWarningMessage_TimeoutReason value); + bool has_timeoutreason() const; + private: + bool _internal_has_timeoutreason() const; + public: + void clear_timeoutreason(); + ::TimeoutWarningMessage_TimeoutReason timeoutreason() const; + void set_timeoutreason(::TimeoutWarningMessage_TimeoutReason value); + private: + ::TimeoutWarningMessage_TimeoutReason _internal_timeoutreason() const; + void _internal_set_timeoutreason(::TimeoutWarningMessage_TimeoutReason value); + public: // required uint32 remainingSeconds = 2; - inline bool has_remainingseconds() const; - inline void clear_remainingseconds(); - static const int kRemainingSecondsFieldNumber = 2; - inline ::google::protobuf::uint32 remainingseconds() const; - inline void set_remainingseconds(::google::protobuf::uint32 value); + bool has_remainingseconds() const; + private: + bool _internal_has_remainingseconds() const; + public: + void clear_remainingseconds(); + ::PROTOBUF_NAMESPACE_ID::uint32 remainingseconds() const; + void set_remainingseconds(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_remainingseconds() const; + void _internal_set_remainingseconds(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:TimeoutWarningMessage) private: - inline void set_has_timeoutreason(); - inline void clear_has_timeoutreason(); - inline void set_has_remainingseconds(); - inline void clear_has_remainingseconds(); + class _Internal; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; int timeoutreason_; - ::google::protobuf::uint32 remainingseconds_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static TimeoutWarningMessage* default_instance_; + ::PROTOBUF_NAMESPACE_ID::uint32 remainingseconds_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class ResetTimeoutMessage : public ::google::protobuf::MessageLite { +class ResetTimeoutMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:ResetTimeoutMessage) */ { public: - ResetTimeoutMessage(); + inline ResetTimeoutMessage() : ResetTimeoutMessage(nullptr) {}; virtual ~ResetTimeoutMessage(); ResetTimeoutMessage(const ResetTimeoutMessage& from); + ResetTimeoutMessage(ResetTimeoutMessage&& from) noexcept + : ResetTimeoutMessage() { + *this = ::std::move(from); + } inline ResetTimeoutMessage& operator=(const ResetTimeoutMessage& from) { CopyFrom(from); return *this; } + inline ResetTimeoutMessage& operator=(ResetTimeoutMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const ResetTimeoutMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ResetTimeoutMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ResetTimeoutMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 80; - void Swap(ResetTimeoutMessage* other); + friend void swap(ResetTimeoutMessage& a, ResetTimeoutMessage& b) { + a.Swap(&b); + } + inline void Swap(ResetTimeoutMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ResetTimeoutMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - ResetTimeoutMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline ResetTimeoutMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + ResetTimeoutMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const ResetTimeoutMessage& from); void MergeFrom(const ResetTimeoutMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(ResetTimeoutMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "ResetTimeoutMessage"; + } + protected: + explicit ResetTimeoutMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- @@ -9519,1790 +15563,3336 @@ class ResetTimeoutMessage : public ::google::protobuf::MessageLite { // @@protoc_insertion_point(class_scope:ResetTimeoutMessage) private: + class _Internal; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[1]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static ResetTimeoutMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class ReportAvatarMessage : public ::google::protobuf::MessageLite { +class ReportAvatarMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:ReportAvatarMessage) */ { public: - ReportAvatarMessage(); + inline ReportAvatarMessage() : ReportAvatarMessage(nullptr) {}; virtual ~ReportAvatarMessage(); ReportAvatarMessage(const ReportAvatarMessage& from); + ReportAvatarMessage(ReportAvatarMessage&& from) noexcept + : ReportAvatarMessage() { + *this = ::std::move(from); + } inline ReportAvatarMessage& operator=(const ReportAvatarMessage& from) { CopyFrom(from); return *this; } + inline ReportAvatarMessage& operator=(ReportAvatarMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const ReportAvatarMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ReportAvatarMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ReportAvatarMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 81; - void Swap(ReportAvatarMessage* other); + friend void swap(ReportAvatarMessage& a, ReportAvatarMessage& b) { + a.Swap(&b); + } + inline void Swap(ReportAvatarMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ReportAvatarMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - ReportAvatarMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline ReportAvatarMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + ReportAvatarMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const ReportAvatarMessage& from); void MergeFrom(const ReportAvatarMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(ReportAvatarMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "ReportAvatarMessage"; + } + protected: + explicit ReportAvatarMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required uint32 reportedPlayerId = 1; - inline bool has_reportedplayerid() const; - inline void clear_reportedplayerid(); - static const int kReportedPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 reportedplayerid() const; - inline void set_reportedplayerid(::google::protobuf::uint32 value); - + enum : int { + kReportedAvatarHashFieldNumber = 2, + kReportedPlayerIdFieldNumber = 1, + }; // required bytes reportedAvatarHash = 2; - inline bool has_reportedavatarhash() const; - inline void clear_reportedavatarhash(); - static const int kReportedAvatarHashFieldNumber = 2; - inline const ::std::string& reportedavatarhash() const; - inline void set_reportedavatarhash(const ::std::string& value); - inline void set_reportedavatarhash(const char* value); - inline void set_reportedavatarhash(const void* value, size_t size); - inline ::std::string* mutable_reportedavatarhash(); - inline ::std::string* release_reportedavatarhash(); - inline void set_allocated_reportedavatarhash(::std::string* reportedavatarhash); + bool has_reportedavatarhash() const; + private: + bool _internal_has_reportedavatarhash() const; + public: + void clear_reportedavatarhash(); + const std::string& reportedavatarhash() const; + void set_reportedavatarhash(const std::string& value); + void set_reportedavatarhash(std::string&& value); + void set_reportedavatarhash(const char* value); + void set_reportedavatarhash(const void* value, size_t size); + std::string* mutable_reportedavatarhash(); + std::string* release_reportedavatarhash(); + void set_allocated_reportedavatarhash(std::string* reportedavatarhash); + 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_reportedavatarhash(); + 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_reportedavatarhash( + std::string* reportedavatarhash); + private: + const std::string& _internal_reportedavatarhash() const; + void _internal_set_reportedavatarhash(const std::string& value); + std::string* _internal_mutable_reportedavatarhash(); + public: + + // required uint32 reportedPlayerId = 1; + bool has_reportedplayerid() const; + private: + bool _internal_has_reportedplayerid() const; + public: + void clear_reportedplayerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 reportedplayerid() const; + void set_reportedplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_reportedplayerid() const; + void _internal_set_reportedplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:ReportAvatarMessage) private: - inline void set_has_reportedplayerid(); - inline void clear_has_reportedplayerid(); - inline void set_has_reportedavatarhash(); - inline void clear_has_reportedavatarhash(); + class _Internal; - ::std::string* reportedavatarhash_; - ::google::protobuf::uint32 reportedplayerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static ReportAvatarMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reportedavatarhash_; + ::PROTOBUF_NAMESPACE_ID::uint32 reportedplayerid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class ReportAvatarAckMessage : public ::google::protobuf::MessageLite { +class ReportAvatarAckMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:ReportAvatarAckMessage) */ { public: - ReportAvatarAckMessage(); + inline ReportAvatarAckMessage() : ReportAvatarAckMessage(nullptr) {}; virtual ~ReportAvatarAckMessage(); ReportAvatarAckMessage(const ReportAvatarAckMessage& from); + ReportAvatarAckMessage(ReportAvatarAckMessage&& from) noexcept + : ReportAvatarAckMessage() { + *this = ::std::move(from); + } inline ReportAvatarAckMessage& operator=(const ReportAvatarAckMessage& from) { CopyFrom(from); return *this; } + inline ReportAvatarAckMessage& operator=(ReportAvatarAckMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const ReportAvatarAckMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ReportAvatarAckMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ReportAvatarAckMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 82; - void Swap(ReportAvatarAckMessage* other); + friend void swap(ReportAvatarAckMessage& a, ReportAvatarAckMessage& b) { + a.Swap(&b); + } + inline void Swap(ReportAvatarAckMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ReportAvatarAckMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - ReportAvatarAckMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline ReportAvatarAckMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + ReportAvatarAckMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const ReportAvatarAckMessage& from); void MergeFrom(const ReportAvatarAckMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(ReportAvatarAckMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "ReportAvatarAckMessage"; + } + protected: + explicit ReportAvatarAckMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef ReportAvatarAckMessage_ReportAvatarResult ReportAvatarResult; - static const ReportAvatarResult avatarReportAccepted = ReportAvatarAckMessage_ReportAvatarResult_avatarReportAccepted; - static const ReportAvatarResult avatarReportDuplicate = ReportAvatarAckMessage_ReportAvatarResult_avatarReportDuplicate; - static const ReportAvatarResult avatarReportInvalid = ReportAvatarAckMessage_ReportAvatarResult_avatarReportInvalid; + static constexpr ReportAvatarResult avatarReportAccepted = + ReportAvatarAckMessage_ReportAvatarResult_avatarReportAccepted; + static constexpr ReportAvatarResult avatarReportDuplicate = + ReportAvatarAckMessage_ReportAvatarResult_avatarReportDuplicate; + static constexpr ReportAvatarResult avatarReportInvalid = + ReportAvatarAckMessage_ReportAvatarResult_avatarReportInvalid; static inline bool ReportAvatarResult_IsValid(int value) { return ReportAvatarAckMessage_ReportAvatarResult_IsValid(value); } - static const ReportAvatarResult ReportAvatarResult_MIN = + static constexpr ReportAvatarResult ReportAvatarResult_MIN = ReportAvatarAckMessage_ReportAvatarResult_ReportAvatarResult_MIN; - static const ReportAvatarResult ReportAvatarResult_MAX = + static constexpr ReportAvatarResult ReportAvatarResult_MAX = ReportAvatarAckMessage_ReportAvatarResult_ReportAvatarResult_MAX; - static const int ReportAvatarResult_ARRAYSIZE = + static constexpr int ReportAvatarResult_ARRAYSIZE = ReportAvatarAckMessage_ReportAvatarResult_ReportAvatarResult_ARRAYSIZE; + template + static inline const std::string& ReportAvatarResult_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ReportAvatarResult_Name."); + return ReportAvatarAckMessage_ReportAvatarResult_Name(enum_t_value); + } + static inline bool ReportAvatarResult_Parse(const std::string& name, + ReportAvatarResult* value) { + return ReportAvatarAckMessage_ReportAvatarResult_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kReportedPlayerIdFieldNumber = 1, + kReportAvatarResultFieldNumber = 2, + }; // required uint32 reportedPlayerId = 1; - inline bool has_reportedplayerid() const; - inline void clear_reportedplayerid(); - static const int kReportedPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 reportedplayerid() const; - inline void set_reportedplayerid(::google::protobuf::uint32 value); + bool has_reportedplayerid() const; + private: + bool _internal_has_reportedplayerid() const; + public: + void clear_reportedplayerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 reportedplayerid() const; + void set_reportedplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_reportedplayerid() const; + void _internal_set_reportedplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - inline bool has_reportavatarresult() const; - inline void clear_reportavatarresult(); - static const int kReportAvatarResultFieldNumber = 2; - inline ::ReportAvatarAckMessage_ReportAvatarResult reportavatarresult() const; - inline void set_reportavatarresult(::ReportAvatarAckMessage_ReportAvatarResult value); + bool has_reportavatarresult() const; + private: + bool _internal_has_reportavatarresult() const; + public: + void clear_reportavatarresult(); + ::ReportAvatarAckMessage_ReportAvatarResult reportavatarresult() const; + void set_reportavatarresult(::ReportAvatarAckMessage_ReportAvatarResult value); + private: + ::ReportAvatarAckMessage_ReportAvatarResult _internal_reportavatarresult() const; + void _internal_set_reportavatarresult(::ReportAvatarAckMessage_ReportAvatarResult value); + public: // @@protoc_insertion_point(class_scope:ReportAvatarAckMessage) private: - inline void set_has_reportedplayerid(); - inline void clear_has_reportedplayerid(); - inline void set_has_reportavatarresult(); - inline void clear_has_reportavatarresult(); + class _Internal; - ::google::protobuf::uint32 reportedplayerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 reportedplayerid_; int reportavatarresult_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static ReportAvatarAckMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class ReportGameMessage : public ::google::protobuf::MessageLite { +class ReportGameMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:ReportGameMessage) */ { public: - ReportGameMessage(); + inline ReportGameMessage() : ReportGameMessage(nullptr) {}; virtual ~ReportGameMessage(); ReportGameMessage(const ReportGameMessage& from); + ReportGameMessage(ReportGameMessage&& from) noexcept + : ReportGameMessage() { + *this = ::std::move(from); + } inline ReportGameMessage& operator=(const ReportGameMessage& from) { CopyFrom(from); return *this; } + inline ReportGameMessage& operator=(ReportGameMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const ReportGameMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ReportGameMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ReportGameMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 83; - void Swap(ReportGameMessage* other); + friend void swap(ReportGameMessage& a, ReportGameMessage& b) { + a.Swap(&b); + } + inline void Swap(ReportGameMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ReportGameMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - ReportGameMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline ReportGameMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + ReportGameMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const ReportGameMessage& from); void MergeFrom(const ReportGameMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(ReportGameMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "ReportGameMessage"; + } + protected: + explicit ReportGameMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kReportedGameIdFieldNumber = 1, + }; // required uint32 reportedGameId = 1; - inline bool has_reportedgameid() const; - inline void clear_reportedgameid(); - static const int kReportedGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 reportedgameid() const; - inline void set_reportedgameid(::google::protobuf::uint32 value); + bool has_reportedgameid() const; + private: + bool _internal_has_reportedgameid() const; + public: + void clear_reportedgameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 reportedgameid() const; + void set_reportedgameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_reportedgameid() const; + void _internal_set_reportedgameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:ReportGameMessage) private: - inline void set_has_reportedgameid(); - inline void clear_has_reportedgameid(); + class _Internal; - ::google::protobuf::uint32 reportedgameid_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static ReportGameMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 reportedgameid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class ReportGameAckMessage : public ::google::protobuf::MessageLite { +class ReportGameAckMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:ReportGameAckMessage) */ { public: - ReportGameAckMessage(); + inline ReportGameAckMessage() : ReportGameAckMessage(nullptr) {}; virtual ~ReportGameAckMessage(); ReportGameAckMessage(const ReportGameAckMessage& from); + ReportGameAckMessage(ReportGameAckMessage&& from) noexcept + : ReportGameAckMessage() { + *this = ::std::move(from); + } inline ReportGameAckMessage& operator=(const ReportGameAckMessage& from) { CopyFrom(from); return *this; } + inline ReportGameAckMessage& operator=(ReportGameAckMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const ReportGameAckMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ReportGameAckMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ReportGameAckMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 84; - void Swap(ReportGameAckMessage* other); + friend void swap(ReportGameAckMessage& a, ReportGameAckMessage& b) { + a.Swap(&b); + } + inline void Swap(ReportGameAckMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ReportGameAckMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - ReportGameAckMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline ReportGameAckMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + ReportGameAckMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const ReportGameAckMessage& from); void MergeFrom(const ReportGameAckMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(ReportGameAckMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "ReportGameAckMessage"; + } + protected: + explicit ReportGameAckMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef ReportGameAckMessage_ReportGameResult ReportGameResult; - static const ReportGameResult gameReportAccepted = ReportGameAckMessage_ReportGameResult_gameReportAccepted; - static const ReportGameResult gameReportDuplicate = ReportGameAckMessage_ReportGameResult_gameReportDuplicate; - static const ReportGameResult gameReportInvalid = ReportGameAckMessage_ReportGameResult_gameReportInvalid; + static constexpr ReportGameResult gameReportAccepted = + ReportGameAckMessage_ReportGameResult_gameReportAccepted; + static constexpr ReportGameResult gameReportDuplicate = + ReportGameAckMessage_ReportGameResult_gameReportDuplicate; + static constexpr ReportGameResult gameReportInvalid = + ReportGameAckMessage_ReportGameResult_gameReportInvalid; static inline bool ReportGameResult_IsValid(int value) { return ReportGameAckMessage_ReportGameResult_IsValid(value); } - static const ReportGameResult ReportGameResult_MIN = + static constexpr ReportGameResult ReportGameResult_MIN = ReportGameAckMessage_ReportGameResult_ReportGameResult_MIN; - static const ReportGameResult ReportGameResult_MAX = + static constexpr ReportGameResult ReportGameResult_MAX = ReportGameAckMessage_ReportGameResult_ReportGameResult_MAX; - static const int ReportGameResult_ARRAYSIZE = + static constexpr int ReportGameResult_ARRAYSIZE = ReportGameAckMessage_ReportGameResult_ReportGameResult_ARRAYSIZE; + template + static inline const std::string& ReportGameResult_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ReportGameResult_Name."); + return ReportGameAckMessage_ReportGameResult_Name(enum_t_value); + } + static inline bool ReportGameResult_Parse(const std::string& name, + ReportGameResult* value) { + return ReportGameAckMessage_ReportGameResult_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kReportedGameIdFieldNumber = 1, + kReportGameResultFieldNumber = 2, + }; // required uint32 reportedGameId = 1; - inline bool has_reportedgameid() const; - inline void clear_reportedgameid(); - static const int kReportedGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 reportedgameid() const; - inline void set_reportedgameid(::google::protobuf::uint32 value); + bool has_reportedgameid() const; + private: + bool _internal_has_reportedgameid() const; + public: + void clear_reportedgameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 reportedgameid() const; + void set_reportedgameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_reportedgameid() const; + void _internal_set_reportedgameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - inline bool has_reportgameresult() const; - inline void clear_reportgameresult(); - static const int kReportGameResultFieldNumber = 2; - inline ::ReportGameAckMessage_ReportGameResult reportgameresult() const; - inline void set_reportgameresult(::ReportGameAckMessage_ReportGameResult value); + bool has_reportgameresult() const; + private: + bool _internal_has_reportgameresult() const; + public: + void clear_reportgameresult(); + ::ReportGameAckMessage_ReportGameResult reportgameresult() const; + void set_reportgameresult(::ReportGameAckMessage_ReportGameResult value); + private: + ::ReportGameAckMessage_ReportGameResult _internal_reportgameresult() const; + void _internal_set_reportgameresult(::ReportGameAckMessage_ReportGameResult value); + public: // @@protoc_insertion_point(class_scope:ReportGameAckMessage) private: - inline void set_has_reportedgameid(); - inline void clear_has_reportedgameid(); - inline void set_has_reportgameresult(); - inline void clear_has_reportgameresult(); + class _Internal; - ::google::protobuf::uint32 reportedgameid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 reportedgameid_; int reportgameresult_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static ReportGameAckMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class ErrorMessage : public ::google::protobuf::MessageLite { +class ErrorMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:ErrorMessage) */ { public: - ErrorMessage(); + inline ErrorMessage() : ErrorMessage(nullptr) {}; virtual ~ErrorMessage(); ErrorMessage(const ErrorMessage& from); + ErrorMessage(ErrorMessage&& from) noexcept + : ErrorMessage() { + *this = ::std::move(from); + } inline ErrorMessage& operator=(const ErrorMessage& from) { CopyFrom(from); return *this; } + inline ErrorMessage& operator=(ErrorMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const ErrorMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ErrorMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ErrorMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 85; - void Swap(ErrorMessage* other); + friend void swap(ErrorMessage& a, ErrorMessage& b) { + a.Swap(&b); + } + inline void Swap(ErrorMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ErrorMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - ErrorMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline ErrorMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + ErrorMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const ErrorMessage& from); void MergeFrom(const ErrorMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(ErrorMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "ErrorMessage"; + } + protected: + explicit ErrorMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef ErrorMessage_ErrorReason ErrorReason; - static const ErrorReason custReserved = ErrorMessage_ErrorReason_custReserved; - static const ErrorReason initVersionNotSupported = ErrorMessage_ErrorReason_initVersionNotSupported; - static const ErrorReason initServerFull = ErrorMessage_ErrorReason_initServerFull; - static const ErrorReason initAuthFailure = ErrorMessage_ErrorReason_initAuthFailure; - static const ErrorReason initPlayerNameInUse = ErrorMessage_ErrorReason_initPlayerNameInUse; - static const ErrorReason initInvalidPlayerName = ErrorMessage_ErrorReason_initInvalidPlayerName; - static const ErrorReason initServerMaintenance = ErrorMessage_ErrorReason_initServerMaintenance; - static const ErrorReason initBlocked = ErrorMessage_ErrorReason_initBlocked; - static const ErrorReason avatarTooLarge = ErrorMessage_ErrorReason_avatarTooLarge; - static const ErrorReason invalidPacket = ErrorMessage_ErrorReason_invalidPacket; - static const ErrorReason invalidState = ErrorMessage_ErrorReason_invalidState; - static const ErrorReason kickedFromServer = ErrorMessage_ErrorReason_kickedFromServer; - static const ErrorReason bannedFromServer = ErrorMessage_ErrorReason_bannedFromServer; - static const ErrorReason blockedByServer = ErrorMessage_ErrorReason_blockedByServer; - static const ErrorReason sessionTimeout = ErrorMessage_ErrorReason_sessionTimeout; + static constexpr ErrorReason custReserved = + ErrorMessage_ErrorReason_custReserved; + static constexpr ErrorReason initVersionNotSupported = + ErrorMessage_ErrorReason_initVersionNotSupported; + static constexpr ErrorReason initServerFull = + ErrorMessage_ErrorReason_initServerFull; + static constexpr ErrorReason initAuthFailure = + ErrorMessage_ErrorReason_initAuthFailure; + static constexpr ErrorReason initPlayerNameInUse = + ErrorMessage_ErrorReason_initPlayerNameInUse; + static constexpr ErrorReason initInvalidPlayerName = + ErrorMessage_ErrorReason_initInvalidPlayerName; + static constexpr ErrorReason initServerMaintenance = + ErrorMessage_ErrorReason_initServerMaintenance; + static constexpr ErrorReason initBlocked = + ErrorMessage_ErrorReason_initBlocked; + static constexpr ErrorReason avatarTooLarge = + ErrorMessage_ErrorReason_avatarTooLarge; + static constexpr ErrorReason invalidPacket = + ErrorMessage_ErrorReason_invalidPacket; + static constexpr ErrorReason invalidState = + ErrorMessage_ErrorReason_invalidState; + static constexpr ErrorReason kickedFromServer = + ErrorMessage_ErrorReason_kickedFromServer; + static constexpr ErrorReason bannedFromServer = + ErrorMessage_ErrorReason_bannedFromServer; + static constexpr ErrorReason blockedByServer = + ErrorMessage_ErrorReason_blockedByServer; + static constexpr ErrorReason sessionTimeout = + ErrorMessage_ErrorReason_sessionTimeout; static inline bool ErrorReason_IsValid(int value) { return ErrorMessage_ErrorReason_IsValid(value); } - static const ErrorReason ErrorReason_MIN = + static constexpr ErrorReason ErrorReason_MIN = ErrorMessage_ErrorReason_ErrorReason_MIN; - static const ErrorReason ErrorReason_MAX = + static constexpr ErrorReason ErrorReason_MAX = ErrorMessage_ErrorReason_ErrorReason_MAX; - static const int ErrorReason_ARRAYSIZE = + static constexpr int ErrorReason_ARRAYSIZE = ErrorMessage_ErrorReason_ErrorReason_ARRAYSIZE; + template + static inline const std::string& ErrorReason_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ErrorReason_Name."); + return ErrorMessage_ErrorReason_Name(enum_t_value); + } + static inline bool ErrorReason_Parse(const std::string& name, + ErrorReason* value) { + return ErrorMessage_ErrorReason_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kErrorReasonFieldNumber = 1, + }; // required .ErrorMessage.ErrorReason errorReason = 1; - inline bool has_errorreason() const; - inline void clear_errorreason(); - static const int kErrorReasonFieldNumber = 1; - inline ::ErrorMessage_ErrorReason errorreason() const; - inline void set_errorreason(::ErrorMessage_ErrorReason value); + bool has_errorreason() const; + private: + bool _internal_has_errorreason() const; + public: + void clear_errorreason(); + ::ErrorMessage_ErrorReason errorreason() const; + void set_errorreason(::ErrorMessage_ErrorReason value); + private: + ::ErrorMessage_ErrorReason _internal_errorreason() const; + void _internal_set_errorreason(::ErrorMessage_ErrorReason value); + public: // @@protoc_insertion_point(class_scope:ErrorMessage) private: - inline void set_has_errorreason(); - inline void clear_has_errorreason(); + class _Internal; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; int errorreason_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static ErrorMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AdminRemoveGameMessage : public ::google::protobuf::MessageLite { +class AdminRemoveGameMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:AdminRemoveGameMessage) */ { public: - AdminRemoveGameMessage(); + inline AdminRemoveGameMessage() : AdminRemoveGameMessage(nullptr) {}; virtual ~AdminRemoveGameMessage(); AdminRemoveGameMessage(const AdminRemoveGameMessage& from); + AdminRemoveGameMessage(AdminRemoveGameMessage&& from) noexcept + : AdminRemoveGameMessage() { + *this = ::std::move(from); + } inline AdminRemoveGameMessage& operator=(const AdminRemoveGameMessage& from) { CopyFrom(from); return *this; } + inline AdminRemoveGameMessage& operator=(AdminRemoveGameMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const AdminRemoveGameMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AdminRemoveGameMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AdminRemoveGameMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 86; - void Swap(AdminRemoveGameMessage* other); + friend void swap(AdminRemoveGameMessage& a, AdminRemoveGameMessage& b) { + a.Swap(&b); + } + inline void Swap(AdminRemoveGameMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AdminRemoveGameMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - AdminRemoveGameMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline AdminRemoveGameMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + AdminRemoveGameMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const AdminRemoveGameMessage& from); void MergeFrom(const AdminRemoveGameMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(AdminRemoveGameMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "AdminRemoveGameMessage"; + } + protected: + explicit AdminRemoveGameMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kRemoveGameIdFieldNumber = 1, + }; // required uint32 removeGameId = 1; - inline bool has_removegameid() const; - inline void clear_removegameid(); - static const int kRemoveGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 removegameid() const; - inline void set_removegameid(::google::protobuf::uint32 value); + bool has_removegameid() const; + private: + bool _internal_has_removegameid() const; + public: + void clear_removegameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 removegameid() const; + void set_removegameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_removegameid() const; + void _internal_set_removegameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:AdminRemoveGameMessage) private: - inline void set_has_removegameid(); - inline void clear_has_removegameid(); + class _Internal; - ::google::protobuf::uint32 removegameid_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AdminRemoveGameMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 removegameid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AdminRemoveGameAckMessage : public ::google::protobuf::MessageLite { +class AdminRemoveGameAckMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:AdminRemoveGameAckMessage) */ { public: - AdminRemoveGameAckMessage(); + inline AdminRemoveGameAckMessage() : AdminRemoveGameAckMessage(nullptr) {}; virtual ~AdminRemoveGameAckMessage(); AdminRemoveGameAckMessage(const AdminRemoveGameAckMessage& from); + AdminRemoveGameAckMessage(AdminRemoveGameAckMessage&& from) noexcept + : AdminRemoveGameAckMessage() { + *this = ::std::move(from); + } inline AdminRemoveGameAckMessage& operator=(const AdminRemoveGameAckMessage& from) { CopyFrom(from); return *this; } + inline AdminRemoveGameAckMessage& operator=(AdminRemoveGameAckMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const AdminRemoveGameAckMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AdminRemoveGameAckMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AdminRemoveGameAckMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 87; - void Swap(AdminRemoveGameAckMessage* other); + friend void swap(AdminRemoveGameAckMessage& a, AdminRemoveGameAckMessage& b) { + a.Swap(&b); + } + inline void Swap(AdminRemoveGameAckMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AdminRemoveGameAckMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - AdminRemoveGameAckMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline AdminRemoveGameAckMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + AdminRemoveGameAckMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const AdminRemoveGameAckMessage& from); void MergeFrom(const AdminRemoveGameAckMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(AdminRemoveGameAckMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "AdminRemoveGameAckMessage"; + } + protected: + explicit AdminRemoveGameAckMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameResult; - static const AdminRemoveGameResult gameRemoveAccepted = AdminRemoveGameAckMessage_AdminRemoveGameResult_gameRemoveAccepted; - static const AdminRemoveGameResult gameRemoveInvalid = AdminRemoveGameAckMessage_AdminRemoveGameResult_gameRemoveInvalid; + static constexpr AdminRemoveGameResult gameRemoveAccepted = + AdminRemoveGameAckMessage_AdminRemoveGameResult_gameRemoveAccepted; + static constexpr AdminRemoveGameResult gameRemoveInvalid = + AdminRemoveGameAckMessage_AdminRemoveGameResult_gameRemoveInvalid; static inline bool AdminRemoveGameResult_IsValid(int value) { return AdminRemoveGameAckMessage_AdminRemoveGameResult_IsValid(value); } - static const AdminRemoveGameResult AdminRemoveGameResult_MIN = + static constexpr AdminRemoveGameResult AdminRemoveGameResult_MIN = AdminRemoveGameAckMessage_AdminRemoveGameResult_AdminRemoveGameResult_MIN; - static const AdminRemoveGameResult AdminRemoveGameResult_MAX = + static constexpr AdminRemoveGameResult AdminRemoveGameResult_MAX = AdminRemoveGameAckMessage_AdminRemoveGameResult_AdminRemoveGameResult_MAX; - static const int AdminRemoveGameResult_ARRAYSIZE = + static constexpr int AdminRemoveGameResult_ARRAYSIZE = AdminRemoveGameAckMessage_AdminRemoveGameResult_AdminRemoveGameResult_ARRAYSIZE; + template + static inline const std::string& AdminRemoveGameResult_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function AdminRemoveGameResult_Name."); + return AdminRemoveGameAckMessage_AdminRemoveGameResult_Name(enum_t_value); + } + static inline bool AdminRemoveGameResult_Parse(const std::string& name, + AdminRemoveGameResult* value) { + return AdminRemoveGameAckMessage_AdminRemoveGameResult_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kRemoveGameIdFieldNumber = 1, + kRemoveGameResultFieldNumber = 2, + }; // required uint32 removeGameId = 1; - inline bool has_removegameid() const; - inline void clear_removegameid(); - static const int kRemoveGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 removegameid() const; - inline void set_removegameid(::google::protobuf::uint32 value); + bool has_removegameid() const; + private: + bool _internal_has_removegameid() const; + public: + void clear_removegameid(); + ::PROTOBUF_NAMESPACE_ID::uint32 removegameid() const; + void set_removegameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_removegameid() const; + void _internal_set_removegameid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - inline bool has_removegameresult() const; - inline void clear_removegameresult(); - static const int kRemoveGameResultFieldNumber = 2; - inline ::AdminRemoveGameAckMessage_AdminRemoveGameResult removegameresult() const; - inline void set_removegameresult(::AdminRemoveGameAckMessage_AdminRemoveGameResult value); + bool has_removegameresult() const; + private: + bool _internal_has_removegameresult() const; + public: + void clear_removegameresult(); + ::AdminRemoveGameAckMessage_AdminRemoveGameResult removegameresult() const; + void set_removegameresult(::AdminRemoveGameAckMessage_AdminRemoveGameResult value); + private: + ::AdminRemoveGameAckMessage_AdminRemoveGameResult _internal_removegameresult() const; + void _internal_set_removegameresult(::AdminRemoveGameAckMessage_AdminRemoveGameResult value); + public: // @@protoc_insertion_point(class_scope:AdminRemoveGameAckMessage) private: - inline void set_has_removegameid(); - inline void clear_has_removegameid(); - inline void set_has_removegameresult(); - inline void clear_has_removegameresult(); + class _Internal; - ::google::protobuf::uint32 removegameid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 removegameid_; int removegameresult_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AdminRemoveGameAckMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AdminBanPlayerMessage : public ::google::protobuf::MessageLite { +class AdminBanPlayerMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:AdminBanPlayerMessage) */ { public: - AdminBanPlayerMessage(); + inline AdminBanPlayerMessage() : AdminBanPlayerMessage(nullptr) {}; virtual ~AdminBanPlayerMessage(); AdminBanPlayerMessage(const AdminBanPlayerMessage& from); + AdminBanPlayerMessage(AdminBanPlayerMessage&& from) noexcept + : AdminBanPlayerMessage() { + *this = ::std::move(from); + } inline AdminBanPlayerMessage& operator=(const AdminBanPlayerMessage& from) { CopyFrom(from); return *this; } + inline AdminBanPlayerMessage& operator=(AdminBanPlayerMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const AdminBanPlayerMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AdminBanPlayerMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AdminBanPlayerMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 88; - void Swap(AdminBanPlayerMessage* other); + friend void swap(AdminBanPlayerMessage& a, AdminBanPlayerMessage& b) { + a.Swap(&b); + } + inline void Swap(AdminBanPlayerMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AdminBanPlayerMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - AdminBanPlayerMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline AdminBanPlayerMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + AdminBanPlayerMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const AdminBanPlayerMessage& from); void MergeFrom(const AdminBanPlayerMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(AdminBanPlayerMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "AdminBanPlayerMessage"; + } + protected: + explicit AdminBanPlayerMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kBanPlayerIdFieldNumber = 1, + }; // required uint32 banPlayerId = 1; - inline bool has_banplayerid() const; - inline void clear_banplayerid(); - static const int kBanPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 banplayerid() const; - inline void set_banplayerid(::google::protobuf::uint32 value); + bool has_banplayerid() const; + private: + bool _internal_has_banplayerid() const; + public: + void clear_banplayerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 banplayerid() const; + void set_banplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_banplayerid() const; + void _internal_set_banplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // @@protoc_insertion_point(class_scope:AdminBanPlayerMessage) private: - inline void set_has_banplayerid(); - inline void clear_has_banplayerid(); + class _Internal; - ::google::protobuf::uint32 banplayerid_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AdminBanPlayerMessage* default_instance_; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 banplayerid_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AdminBanPlayerAckMessage : public ::google::protobuf::MessageLite { +class AdminBanPlayerAckMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:AdminBanPlayerAckMessage) */ { public: - AdminBanPlayerAckMessage(); + inline AdminBanPlayerAckMessage() : AdminBanPlayerAckMessage(nullptr) {}; virtual ~AdminBanPlayerAckMessage(); AdminBanPlayerAckMessage(const AdminBanPlayerAckMessage& from); + AdminBanPlayerAckMessage(AdminBanPlayerAckMessage&& from) noexcept + : AdminBanPlayerAckMessage() { + *this = ::std::move(from); + } inline AdminBanPlayerAckMessage& operator=(const AdminBanPlayerAckMessage& from) { CopyFrom(from); return *this; } + inline AdminBanPlayerAckMessage& operator=(AdminBanPlayerAckMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const AdminBanPlayerAckMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AdminBanPlayerAckMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AdminBanPlayerAckMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 89; - void Swap(AdminBanPlayerAckMessage* other); + friend void swap(AdminBanPlayerAckMessage& a, AdminBanPlayerAckMessage& b) { + a.Swap(&b); + } + inline void Swap(AdminBanPlayerAckMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AdminBanPlayerAckMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - AdminBanPlayerAckMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline AdminBanPlayerAckMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + AdminBanPlayerAckMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const AdminBanPlayerAckMessage& from); void MergeFrom(const AdminBanPlayerAckMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(AdminBanPlayerAckMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "AdminBanPlayerAckMessage"; + } + protected: + explicit AdminBanPlayerAckMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerResult; - static const AdminBanPlayerResult banPlayerAccepted = AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerAccepted; - static const AdminBanPlayerResult banPlayerPending = AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerPending; - static const AdminBanPlayerResult banPlayerNoDB = AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerNoDB; - static const AdminBanPlayerResult banPlayerDBError = AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerDBError; - static const AdminBanPlayerResult banPlayerInvalid = AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerInvalid; + static constexpr AdminBanPlayerResult banPlayerAccepted = + AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerAccepted; + static constexpr AdminBanPlayerResult banPlayerPending = + AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerPending; + static constexpr AdminBanPlayerResult banPlayerNoDB = + AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerNoDB; + static constexpr AdminBanPlayerResult banPlayerDBError = + AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerDBError; + static constexpr AdminBanPlayerResult banPlayerInvalid = + AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerInvalid; static inline bool AdminBanPlayerResult_IsValid(int value) { return AdminBanPlayerAckMessage_AdminBanPlayerResult_IsValid(value); } - static const AdminBanPlayerResult AdminBanPlayerResult_MIN = + static constexpr AdminBanPlayerResult AdminBanPlayerResult_MIN = AdminBanPlayerAckMessage_AdminBanPlayerResult_AdminBanPlayerResult_MIN; - static const AdminBanPlayerResult AdminBanPlayerResult_MAX = + static constexpr AdminBanPlayerResult AdminBanPlayerResult_MAX = AdminBanPlayerAckMessage_AdminBanPlayerResult_AdminBanPlayerResult_MAX; - static const int AdminBanPlayerResult_ARRAYSIZE = + static constexpr int AdminBanPlayerResult_ARRAYSIZE = AdminBanPlayerAckMessage_AdminBanPlayerResult_AdminBanPlayerResult_ARRAYSIZE; + template + static inline const std::string& AdminBanPlayerResult_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function AdminBanPlayerResult_Name."); + return AdminBanPlayerAckMessage_AdminBanPlayerResult_Name(enum_t_value); + } + static inline bool AdminBanPlayerResult_Parse(const std::string& name, + AdminBanPlayerResult* value) { + return AdminBanPlayerAckMessage_AdminBanPlayerResult_Parse(name, value); + } // accessors ------------------------------------------------------- + enum : int { + kBanPlayerIdFieldNumber = 1, + kBanPlayerResultFieldNumber = 2, + }; // required uint32 banPlayerId = 1; - inline bool has_banplayerid() const; - inline void clear_banplayerid(); - static const int kBanPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 banplayerid() const; - inline void set_banplayerid(::google::protobuf::uint32 value); + bool has_banplayerid() const; + private: + bool _internal_has_banplayerid() const; + public: + void clear_banplayerid(); + ::PROTOBUF_NAMESPACE_ID::uint32 banplayerid() const; + void set_banplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_banplayerid() const; + void _internal_set_banplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - inline bool has_banplayerresult() const; - inline void clear_banplayerresult(); - static const int kBanPlayerResultFieldNumber = 2; - inline ::AdminBanPlayerAckMessage_AdminBanPlayerResult banplayerresult() const; - inline void set_banplayerresult(::AdminBanPlayerAckMessage_AdminBanPlayerResult value); + bool has_banplayerresult() const; + private: + bool _internal_has_banplayerresult() const; + public: + void clear_banplayerresult(); + ::AdminBanPlayerAckMessage_AdminBanPlayerResult banplayerresult() const; + void set_banplayerresult(::AdminBanPlayerAckMessage_AdminBanPlayerResult value); + private: + ::AdminBanPlayerAckMessage_AdminBanPlayerResult _internal_banplayerresult() const; + void _internal_set_banplayerresult(::AdminBanPlayerAckMessage_AdminBanPlayerResult value); + public: // @@protoc_insertion_point(class_scope:AdminBanPlayerAckMessage) private: - inline void set_has_banplayerid(); - inline void clear_has_banplayerid(); - inline void set_has_banplayerresult(); - inline void clear_has_banplayerresult(); + class _Internal; - ::google::protobuf::uint32 banplayerid_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 banplayerid_; int banplayerresult_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AdminBanPlayerAckMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class PokerTHMessage : public ::google::protobuf::MessageLite { +class PokerTHMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:PokerTHMessage) */ { public: - PokerTHMessage(); + inline PokerTHMessage() : PokerTHMessage(nullptr) {}; virtual ~PokerTHMessage(); PokerTHMessage(const PokerTHMessage& from); + PokerTHMessage(PokerTHMessage&& from) noexcept + : PokerTHMessage() { + *this = ::std::move(from); + } inline PokerTHMessage& operator=(const PokerTHMessage& from) { CopyFrom(from); return *this; } + inline PokerTHMessage& operator=(PokerTHMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const std::string& unknown_fields() const { + return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); + } + inline std::string* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields(); + } static const PokerTHMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PokerTHMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_PokerTHMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 90; - void Swap(PokerTHMessage* other); + friend void swap(PokerTHMessage& a, PokerTHMessage& b) { + a.Swap(&b); + } + inline void Swap(PokerTHMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PokerTHMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } // implements Message ---------------------------------------------- - PokerTHMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline PokerTHMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + PokerTHMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) + final; void CopyFrom(const PokerTHMessage& from); void MergeFrom(const PokerTHMessage& from); - void Clear(); - bool IsInitialized() const; + 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; + void DiscardUnknownFields(); + int GetCachedSize() const final { return _cached_size_.Get(); } - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } private: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const; + void InternalSwap(PokerTHMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "PokerTHMessage"; + } + protected: + explicit PokerTHMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - ::std::string GetTypeName() const; + std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef PokerTHMessage_PokerTHMessageType PokerTHMessageType; - static const PokerTHMessageType Type_AnnounceMessage = PokerTHMessage_PokerTHMessageType_Type_AnnounceMessage; - static const PokerTHMessageType Type_InitMessage = PokerTHMessage_PokerTHMessageType_Type_InitMessage; - static const PokerTHMessageType Type_AuthServerChallengeMessage = PokerTHMessage_PokerTHMessageType_Type_AuthServerChallengeMessage; - static const PokerTHMessageType Type_AuthClientResponseMessage = PokerTHMessage_PokerTHMessageType_Type_AuthClientResponseMessage; - static const PokerTHMessageType Type_AuthServerVerificationMessage = PokerTHMessage_PokerTHMessageType_Type_AuthServerVerificationMessage; - static const PokerTHMessageType Type_InitAckMessage = PokerTHMessage_PokerTHMessageType_Type_InitAckMessage; - static const PokerTHMessageType Type_AvatarRequestMessage = PokerTHMessage_PokerTHMessageType_Type_AvatarRequestMessage; - static const PokerTHMessageType Type_AvatarHeaderMessage = PokerTHMessage_PokerTHMessageType_Type_AvatarHeaderMessage; - static const PokerTHMessageType Type_AvatarDataMessage = PokerTHMessage_PokerTHMessageType_Type_AvatarDataMessage; - static const PokerTHMessageType Type_AvatarEndMessage = PokerTHMessage_PokerTHMessageType_Type_AvatarEndMessage; - static const PokerTHMessageType Type_UnknownAvatarMessage = PokerTHMessage_PokerTHMessageType_Type_UnknownAvatarMessage; - static const PokerTHMessageType Type_PlayerListMessage = PokerTHMessage_PokerTHMessageType_Type_PlayerListMessage; - static const PokerTHMessageType Type_GameListNewMessage = PokerTHMessage_PokerTHMessageType_Type_GameListNewMessage; - static const PokerTHMessageType Type_GameListUpdateMessage = PokerTHMessage_PokerTHMessageType_Type_GameListUpdateMessage; - static const PokerTHMessageType Type_GameListPlayerJoinedMessage = PokerTHMessage_PokerTHMessageType_Type_GameListPlayerJoinedMessage; - static const PokerTHMessageType Type_GameListPlayerLeftMessage = PokerTHMessage_PokerTHMessageType_Type_GameListPlayerLeftMessage; - static const PokerTHMessageType Type_GameListAdminChangedMessage = PokerTHMessage_PokerTHMessageType_Type_GameListAdminChangedMessage; - static const PokerTHMessageType Type_PlayerInfoRequestMessage = PokerTHMessage_PokerTHMessageType_Type_PlayerInfoRequestMessage; - static const PokerTHMessageType Type_PlayerInfoReplyMessage = PokerTHMessage_PokerTHMessageType_Type_PlayerInfoReplyMessage; - static const PokerTHMessageType Type_SubscriptionRequestMessage = PokerTHMessage_PokerTHMessageType_Type_SubscriptionRequestMessage; - static const PokerTHMessageType Type_JoinExistingGameMessage = PokerTHMessage_PokerTHMessageType_Type_JoinExistingGameMessage; - static const PokerTHMessageType Type_JoinNewGameMessage = PokerTHMessage_PokerTHMessageType_Type_JoinNewGameMessage; - static const PokerTHMessageType Type_RejoinExistingGameMessage = PokerTHMessage_PokerTHMessageType_Type_RejoinExistingGameMessage; - static const PokerTHMessageType Type_JoinGameAckMessage = PokerTHMessage_PokerTHMessageType_Type_JoinGameAckMessage; - static const PokerTHMessageType Type_JoinGameFailedMessage = PokerTHMessage_PokerTHMessageType_Type_JoinGameFailedMessage; - static const PokerTHMessageType Type_GamePlayerJoinedMessage = PokerTHMessage_PokerTHMessageType_Type_GamePlayerJoinedMessage; - static const PokerTHMessageType Type_GamePlayerLeftMessage = PokerTHMessage_PokerTHMessageType_Type_GamePlayerLeftMessage; - static const PokerTHMessageType Type_GameAdminChangedMessage = PokerTHMessage_PokerTHMessageType_Type_GameAdminChangedMessage; - static const PokerTHMessageType Type_RemovedFromGameMessage = PokerTHMessage_PokerTHMessageType_Type_RemovedFromGameMessage; - static const PokerTHMessageType Type_KickPlayerRequestMessage = PokerTHMessage_PokerTHMessageType_Type_KickPlayerRequestMessage; - static const PokerTHMessageType Type_LeaveGameRequestMessage = PokerTHMessage_PokerTHMessageType_Type_LeaveGameRequestMessage; - static const PokerTHMessageType Type_InvitePlayerToGameMessage = PokerTHMessage_PokerTHMessageType_Type_InvitePlayerToGameMessage; - static const PokerTHMessageType Type_InviteNotifyMessage = PokerTHMessage_PokerTHMessageType_Type_InviteNotifyMessage; - static const PokerTHMessageType Type_RejectGameInvitationMessage = PokerTHMessage_PokerTHMessageType_Type_RejectGameInvitationMessage; - static const PokerTHMessageType Type_RejectInvNotifyMessage = PokerTHMessage_PokerTHMessageType_Type_RejectInvNotifyMessage; - static const PokerTHMessageType Type_StartEventMessage = PokerTHMessage_PokerTHMessageType_Type_StartEventMessage; - static const PokerTHMessageType Type_StartEventAckMessage = PokerTHMessage_PokerTHMessageType_Type_StartEventAckMessage; - static const PokerTHMessageType Type_GameStartInitialMessage = PokerTHMessage_PokerTHMessageType_Type_GameStartInitialMessage; - static const PokerTHMessageType Type_GameStartRejoinMessage = PokerTHMessage_PokerTHMessageType_Type_GameStartRejoinMessage; - static const PokerTHMessageType Type_HandStartMessage = PokerTHMessage_PokerTHMessageType_Type_HandStartMessage; - static const PokerTHMessageType Type_PlayersTurnMessage = PokerTHMessage_PokerTHMessageType_Type_PlayersTurnMessage; - static const PokerTHMessageType Type_MyActionRequestMessage = PokerTHMessage_PokerTHMessageType_Type_MyActionRequestMessage; - static const PokerTHMessageType Type_YourActionRejectedMessage = PokerTHMessage_PokerTHMessageType_Type_YourActionRejectedMessage; - static const PokerTHMessageType Type_PlayersActionDoneMessage = PokerTHMessage_PokerTHMessageType_Type_PlayersActionDoneMessage; - static const PokerTHMessageType Type_DealFlopCardsMessage = PokerTHMessage_PokerTHMessageType_Type_DealFlopCardsMessage; - static const PokerTHMessageType Type_DealTurnCardMessage = PokerTHMessage_PokerTHMessageType_Type_DealTurnCardMessage; - static const PokerTHMessageType Type_DealRiverCardMessage = PokerTHMessage_PokerTHMessageType_Type_DealRiverCardMessage; - static const PokerTHMessageType Type_AllInShowCardsMessage = PokerTHMessage_PokerTHMessageType_Type_AllInShowCardsMessage; - static const PokerTHMessageType Type_EndOfHandShowCardsMessage = PokerTHMessage_PokerTHMessageType_Type_EndOfHandShowCardsMessage; - static const PokerTHMessageType Type_EndOfHandHideCardsMessage = PokerTHMessage_PokerTHMessageType_Type_EndOfHandHideCardsMessage; - static const PokerTHMessageType Type_ShowMyCardsRequestMessage = PokerTHMessage_PokerTHMessageType_Type_ShowMyCardsRequestMessage; - static const PokerTHMessageType Type_AfterHandShowCardsMessage = PokerTHMessage_PokerTHMessageType_Type_AfterHandShowCardsMessage; - static const PokerTHMessageType Type_EndOfGameMessage = PokerTHMessage_PokerTHMessageType_Type_EndOfGameMessage; - static const PokerTHMessageType Type_PlayerIdChangedMessage = PokerTHMessage_PokerTHMessageType_Type_PlayerIdChangedMessage; - static const PokerTHMessageType Type_AskKickPlayerMessage = PokerTHMessage_PokerTHMessageType_Type_AskKickPlayerMessage; - static const PokerTHMessageType Type_AskKickDeniedMessage = PokerTHMessage_PokerTHMessageType_Type_AskKickDeniedMessage; - static const PokerTHMessageType Type_StartKickPetitionMessage = PokerTHMessage_PokerTHMessageType_Type_StartKickPetitionMessage; - static const PokerTHMessageType Type_VoteKickRequestMessage = PokerTHMessage_PokerTHMessageType_Type_VoteKickRequestMessage; - static const PokerTHMessageType Type_VoteKickReplyMessage = PokerTHMessage_PokerTHMessageType_Type_VoteKickReplyMessage; - static const PokerTHMessageType Type_KickPetitionUpdateMessage = PokerTHMessage_PokerTHMessageType_Type_KickPetitionUpdateMessage; - static const PokerTHMessageType Type_EndKickPetitionMessage = PokerTHMessage_PokerTHMessageType_Type_EndKickPetitionMessage; - static const PokerTHMessageType Type_StatisticsMessage = PokerTHMessage_PokerTHMessageType_Type_StatisticsMessage; - static const PokerTHMessageType Type_ChatRequestMessage = PokerTHMessage_PokerTHMessageType_Type_ChatRequestMessage; - static const PokerTHMessageType Type_ChatMessage = PokerTHMessage_PokerTHMessageType_Type_ChatMessage; - static const PokerTHMessageType Type_ChatRejectMessage = PokerTHMessage_PokerTHMessageType_Type_ChatRejectMessage; - static const PokerTHMessageType Type_DialogMessage = PokerTHMessage_PokerTHMessageType_Type_DialogMessage; - static const PokerTHMessageType Type_TimeoutWarningMessage = PokerTHMessage_PokerTHMessageType_Type_TimeoutWarningMessage; - static const PokerTHMessageType Type_ResetTimeoutMessage = PokerTHMessage_PokerTHMessageType_Type_ResetTimeoutMessage; - static const PokerTHMessageType Type_ReportAvatarMessage = PokerTHMessage_PokerTHMessageType_Type_ReportAvatarMessage; - static const PokerTHMessageType Type_ReportAvatarAckMessage = PokerTHMessage_PokerTHMessageType_Type_ReportAvatarAckMessage; - static const PokerTHMessageType Type_ReportGameMessage = PokerTHMessage_PokerTHMessageType_Type_ReportGameMessage; - static const PokerTHMessageType Type_ReportGameAckMessage = PokerTHMessage_PokerTHMessageType_Type_ReportGameAckMessage; - static const PokerTHMessageType Type_ErrorMessage = PokerTHMessage_PokerTHMessageType_Type_ErrorMessage; - static const PokerTHMessageType Type_AdminRemoveGameMessage = PokerTHMessage_PokerTHMessageType_Type_AdminRemoveGameMessage; - static const PokerTHMessageType Type_AdminRemoveGameAckMessage = PokerTHMessage_PokerTHMessageType_Type_AdminRemoveGameAckMessage; - static const PokerTHMessageType Type_AdminBanPlayerMessage = PokerTHMessage_PokerTHMessageType_Type_AdminBanPlayerMessage; - static const PokerTHMessageType Type_AdminBanPlayerAckMessage = PokerTHMessage_PokerTHMessageType_Type_AdminBanPlayerAckMessage; - static const PokerTHMessageType Type_GameListSpectatorJoinedMessage = PokerTHMessage_PokerTHMessageType_Type_GameListSpectatorJoinedMessage; - static const PokerTHMessageType Type_GameListSpectatorLeftMessage = PokerTHMessage_PokerTHMessageType_Type_GameListSpectatorLeftMessage; - static const PokerTHMessageType Type_GameSpectatorJoinedMessage = PokerTHMessage_PokerTHMessageType_Type_GameSpectatorJoinedMessage; - static const PokerTHMessageType Type_GameSpectatorLeftMessage = PokerTHMessage_PokerTHMessageType_Type_GameSpectatorLeftMessage; - static const PokerTHMessageType Type_GameStartReentryMessage = PokerTHMessage_PokerTHMessageType_Type_GameStartReentryMessage; + static constexpr PokerTHMessageType Type_AnnounceMessage = + PokerTHMessage_PokerTHMessageType_Type_AnnounceMessage; + static constexpr PokerTHMessageType Type_InitMessage = + PokerTHMessage_PokerTHMessageType_Type_InitMessage; + static constexpr PokerTHMessageType Type_AuthServerChallengeMessage = + PokerTHMessage_PokerTHMessageType_Type_AuthServerChallengeMessage; + static constexpr PokerTHMessageType Type_AuthClientResponseMessage = + PokerTHMessage_PokerTHMessageType_Type_AuthClientResponseMessage; + static constexpr PokerTHMessageType Type_AuthServerVerificationMessage = + PokerTHMessage_PokerTHMessageType_Type_AuthServerVerificationMessage; + static constexpr PokerTHMessageType Type_InitAckMessage = + PokerTHMessage_PokerTHMessageType_Type_InitAckMessage; + static constexpr PokerTHMessageType Type_AvatarRequestMessage = + PokerTHMessage_PokerTHMessageType_Type_AvatarRequestMessage; + static constexpr PokerTHMessageType Type_AvatarHeaderMessage = + PokerTHMessage_PokerTHMessageType_Type_AvatarHeaderMessage; + static constexpr PokerTHMessageType Type_AvatarDataMessage = + PokerTHMessage_PokerTHMessageType_Type_AvatarDataMessage; + static constexpr PokerTHMessageType Type_AvatarEndMessage = + PokerTHMessage_PokerTHMessageType_Type_AvatarEndMessage; + static constexpr PokerTHMessageType Type_UnknownAvatarMessage = + PokerTHMessage_PokerTHMessageType_Type_UnknownAvatarMessage; + static constexpr PokerTHMessageType Type_PlayerListMessage = + PokerTHMessage_PokerTHMessageType_Type_PlayerListMessage; + static constexpr PokerTHMessageType Type_GameListNewMessage = + PokerTHMessage_PokerTHMessageType_Type_GameListNewMessage; + static constexpr PokerTHMessageType Type_GameListUpdateMessage = + PokerTHMessage_PokerTHMessageType_Type_GameListUpdateMessage; + static constexpr PokerTHMessageType Type_GameListPlayerJoinedMessage = + PokerTHMessage_PokerTHMessageType_Type_GameListPlayerJoinedMessage; + static constexpr PokerTHMessageType Type_GameListPlayerLeftMessage = + PokerTHMessage_PokerTHMessageType_Type_GameListPlayerLeftMessage; + static constexpr PokerTHMessageType Type_GameListAdminChangedMessage = + PokerTHMessage_PokerTHMessageType_Type_GameListAdminChangedMessage; + static constexpr PokerTHMessageType Type_PlayerInfoRequestMessage = + PokerTHMessage_PokerTHMessageType_Type_PlayerInfoRequestMessage; + static constexpr PokerTHMessageType Type_PlayerInfoReplyMessage = + PokerTHMessage_PokerTHMessageType_Type_PlayerInfoReplyMessage; + static constexpr PokerTHMessageType Type_SubscriptionRequestMessage = + PokerTHMessage_PokerTHMessageType_Type_SubscriptionRequestMessage; + static constexpr PokerTHMessageType Type_JoinExistingGameMessage = + PokerTHMessage_PokerTHMessageType_Type_JoinExistingGameMessage; + static constexpr PokerTHMessageType Type_JoinNewGameMessage = + PokerTHMessage_PokerTHMessageType_Type_JoinNewGameMessage; + static constexpr PokerTHMessageType Type_RejoinExistingGameMessage = + PokerTHMessage_PokerTHMessageType_Type_RejoinExistingGameMessage; + static constexpr PokerTHMessageType Type_JoinGameAckMessage = + PokerTHMessage_PokerTHMessageType_Type_JoinGameAckMessage; + static constexpr PokerTHMessageType Type_JoinGameFailedMessage = + PokerTHMessage_PokerTHMessageType_Type_JoinGameFailedMessage; + static constexpr PokerTHMessageType Type_GamePlayerJoinedMessage = + PokerTHMessage_PokerTHMessageType_Type_GamePlayerJoinedMessage; + static constexpr PokerTHMessageType Type_GamePlayerLeftMessage = + PokerTHMessage_PokerTHMessageType_Type_GamePlayerLeftMessage; + static constexpr PokerTHMessageType Type_GameAdminChangedMessage = + PokerTHMessage_PokerTHMessageType_Type_GameAdminChangedMessage; + static constexpr PokerTHMessageType Type_RemovedFromGameMessage = + PokerTHMessage_PokerTHMessageType_Type_RemovedFromGameMessage; + static constexpr PokerTHMessageType Type_KickPlayerRequestMessage = + PokerTHMessage_PokerTHMessageType_Type_KickPlayerRequestMessage; + static constexpr PokerTHMessageType Type_LeaveGameRequestMessage = + PokerTHMessage_PokerTHMessageType_Type_LeaveGameRequestMessage; + static constexpr PokerTHMessageType Type_InvitePlayerToGameMessage = + PokerTHMessage_PokerTHMessageType_Type_InvitePlayerToGameMessage; + static constexpr PokerTHMessageType Type_InviteNotifyMessage = + PokerTHMessage_PokerTHMessageType_Type_InviteNotifyMessage; + static constexpr PokerTHMessageType Type_RejectGameInvitationMessage = + PokerTHMessage_PokerTHMessageType_Type_RejectGameInvitationMessage; + static constexpr PokerTHMessageType Type_RejectInvNotifyMessage = + PokerTHMessage_PokerTHMessageType_Type_RejectInvNotifyMessage; + static constexpr PokerTHMessageType Type_StartEventMessage = + PokerTHMessage_PokerTHMessageType_Type_StartEventMessage; + static constexpr PokerTHMessageType Type_StartEventAckMessage = + PokerTHMessage_PokerTHMessageType_Type_StartEventAckMessage; + static constexpr PokerTHMessageType Type_GameStartInitialMessage = + PokerTHMessage_PokerTHMessageType_Type_GameStartInitialMessage; + static constexpr PokerTHMessageType Type_GameStartRejoinMessage = + PokerTHMessage_PokerTHMessageType_Type_GameStartRejoinMessage; + static constexpr PokerTHMessageType Type_HandStartMessage = + PokerTHMessage_PokerTHMessageType_Type_HandStartMessage; + static constexpr PokerTHMessageType Type_PlayersTurnMessage = + PokerTHMessage_PokerTHMessageType_Type_PlayersTurnMessage; + static constexpr PokerTHMessageType Type_MyActionRequestMessage = + PokerTHMessage_PokerTHMessageType_Type_MyActionRequestMessage; + static constexpr PokerTHMessageType Type_YourActionRejectedMessage = + PokerTHMessage_PokerTHMessageType_Type_YourActionRejectedMessage; + static constexpr PokerTHMessageType Type_PlayersActionDoneMessage = + PokerTHMessage_PokerTHMessageType_Type_PlayersActionDoneMessage; + static constexpr PokerTHMessageType Type_DealFlopCardsMessage = + PokerTHMessage_PokerTHMessageType_Type_DealFlopCardsMessage; + static constexpr PokerTHMessageType Type_DealTurnCardMessage = + PokerTHMessage_PokerTHMessageType_Type_DealTurnCardMessage; + static constexpr PokerTHMessageType Type_DealRiverCardMessage = + PokerTHMessage_PokerTHMessageType_Type_DealRiverCardMessage; + static constexpr PokerTHMessageType Type_AllInShowCardsMessage = + PokerTHMessage_PokerTHMessageType_Type_AllInShowCardsMessage; + static constexpr PokerTHMessageType Type_EndOfHandShowCardsMessage = + PokerTHMessage_PokerTHMessageType_Type_EndOfHandShowCardsMessage; + static constexpr PokerTHMessageType Type_EndOfHandHideCardsMessage = + PokerTHMessage_PokerTHMessageType_Type_EndOfHandHideCardsMessage; + static constexpr PokerTHMessageType Type_ShowMyCardsRequestMessage = + PokerTHMessage_PokerTHMessageType_Type_ShowMyCardsRequestMessage; + static constexpr PokerTHMessageType Type_AfterHandShowCardsMessage = + PokerTHMessage_PokerTHMessageType_Type_AfterHandShowCardsMessage; + static constexpr PokerTHMessageType Type_EndOfGameMessage = + PokerTHMessage_PokerTHMessageType_Type_EndOfGameMessage; + static constexpr PokerTHMessageType Type_PlayerIdChangedMessage = + PokerTHMessage_PokerTHMessageType_Type_PlayerIdChangedMessage; + static constexpr PokerTHMessageType Type_AskKickPlayerMessage = + PokerTHMessage_PokerTHMessageType_Type_AskKickPlayerMessage; + static constexpr PokerTHMessageType Type_AskKickDeniedMessage = + PokerTHMessage_PokerTHMessageType_Type_AskKickDeniedMessage; + static constexpr PokerTHMessageType Type_StartKickPetitionMessage = + PokerTHMessage_PokerTHMessageType_Type_StartKickPetitionMessage; + static constexpr PokerTHMessageType Type_VoteKickRequestMessage = + PokerTHMessage_PokerTHMessageType_Type_VoteKickRequestMessage; + static constexpr PokerTHMessageType Type_VoteKickReplyMessage = + PokerTHMessage_PokerTHMessageType_Type_VoteKickReplyMessage; + static constexpr PokerTHMessageType Type_KickPetitionUpdateMessage = + PokerTHMessage_PokerTHMessageType_Type_KickPetitionUpdateMessage; + static constexpr PokerTHMessageType Type_EndKickPetitionMessage = + PokerTHMessage_PokerTHMessageType_Type_EndKickPetitionMessage; + static constexpr PokerTHMessageType Type_StatisticsMessage = + PokerTHMessage_PokerTHMessageType_Type_StatisticsMessage; + static constexpr PokerTHMessageType Type_ChatRequestMessage = + PokerTHMessage_PokerTHMessageType_Type_ChatRequestMessage; + static constexpr PokerTHMessageType Type_ChatMessage = + PokerTHMessage_PokerTHMessageType_Type_ChatMessage; + static constexpr PokerTHMessageType Type_ChatRejectMessage = + PokerTHMessage_PokerTHMessageType_Type_ChatRejectMessage; + static constexpr PokerTHMessageType Type_DialogMessage = + PokerTHMessage_PokerTHMessageType_Type_DialogMessage; + static constexpr PokerTHMessageType Type_TimeoutWarningMessage = + PokerTHMessage_PokerTHMessageType_Type_TimeoutWarningMessage; + static constexpr PokerTHMessageType Type_ResetTimeoutMessage = + PokerTHMessage_PokerTHMessageType_Type_ResetTimeoutMessage; + static constexpr PokerTHMessageType Type_ReportAvatarMessage = + PokerTHMessage_PokerTHMessageType_Type_ReportAvatarMessage; + static constexpr PokerTHMessageType Type_ReportAvatarAckMessage = + PokerTHMessage_PokerTHMessageType_Type_ReportAvatarAckMessage; + static constexpr PokerTHMessageType Type_ReportGameMessage = + PokerTHMessage_PokerTHMessageType_Type_ReportGameMessage; + static constexpr PokerTHMessageType Type_ReportGameAckMessage = + PokerTHMessage_PokerTHMessageType_Type_ReportGameAckMessage; + static constexpr PokerTHMessageType Type_ErrorMessage = + PokerTHMessage_PokerTHMessageType_Type_ErrorMessage; + static constexpr PokerTHMessageType Type_AdminRemoveGameMessage = + PokerTHMessage_PokerTHMessageType_Type_AdminRemoveGameMessage; + static constexpr PokerTHMessageType Type_AdminRemoveGameAckMessage = + PokerTHMessage_PokerTHMessageType_Type_AdminRemoveGameAckMessage; + static constexpr PokerTHMessageType Type_AdminBanPlayerMessage = + PokerTHMessage_PokerTHMessageType_Type_AdminBanPlayerMessage; + static constexpr PokerTHMessageType Type_AdminBanPlayerAckMessage = + PokerTHMessage_PokerTHMessageType_Type_AdminBanPlayerAckMessage; + static constexpr PokerTHMessageType Type_GameListSpectatorJoinedMessage = + PokerTHMessage_PokerTHMessageType_Type_GameListSpectatorJoinedMessage; + static constexpr PokerTHMessageType Type_GameListSpectatorLeftMessage = + PokerTHMessage_PokerTHMessageType_Type_GameListSpectatorLeftMessage; + static constexpr PokerTHMessageType Type_GameSpectatorJoinedMessage = + PokerTHMessage_PokerTHMessageType_Type_GameSpectatorJoinedMessage; + static constexpr PokerTHMessageType Type_GameSpectatorLeftMessage = + PokerTHMessage_PokerTHMessageType_Type_GameSpectatorLeftMessage; static inline bool PokerTHMessageType_IsValid(int value) { return PokerTHMessage_PokerTHMessageType_IsValid(value); } - static const PokerTHMessageType PokerTHMessageType_MIN = + static constexpr PokerTHMessageType PokerTHMessageType_MIN = PokerTHMessage_PokerTHMessageType_PokerTHMessageType_MIN; - static const PokerTHMessageType PokerTHMessageType_MAX = + static constexpr PokerTHMessageType PokerTHMessageType_MAX = PokerTHMessage_PokerTHMessageType_PokerTHMessageType_MAX; - static const int PokerTHMessageType_ARRAYSIZE = + static constexpr int PokerTHMessageType_ARRAYSIZE = PokerTHMessage_PokerTHMessageType_PokerTHMessageType_ARRAYSIZE; + template + static inline const std::string& PokerTHMessageType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PokerTHMessageType_Name."); + return PokerTHMessage_PokerTHMessageType_Name(enum_t_value); + } + static inline bool PokerTHMessageType_Parse(const std::string& name, + PokerTHMessageType* value) { + return PokerTHMessage_PokerTHMessageType_Parse(name, value); + } // accessors ------------------------------------------------------- - // required .PokerTHMessage.PokerTHMessageType messageType = 1; - inline bool has_messagetype() const; - inline void clear_messagetype(); - static const int kMessageTypeFieldNumber = 1; - inline ::PokerTHMessage_PokerTHMessageType messagetype() const; - inline void set_messagetype(::PokerTHMessage_PokerTHMessageType value); - + enum : int { + kAnnounceMessageFieldNumber = 2, + kInitMessageFieldNumber = 3, + kAuthServerChallengeMessageFieldNumber = 4, + kAuthClientResponseMessageFieldNumber = 5, + kAuthServerVerificationMessageFieldNumber = 6, + kInitAckMessageFieldNumber = 7, + kAvatarRequestMessageFieldNumber = 8, + kAvatarHeaderMessageFieldNumber = 9, + kAvatarDataMessageFieldNumber = 10, + kAvatarEndMessageFieldNumber = 11, + kUnknownAvatarMessageFieldNumber = 12, + kPlayerListMessageFieldNumber = 13, + kGameListNewMessageFieldNumber = 14, + kGameListUpdateMessageFieldNumber = 15, + kGameListPlayerJoinedMessageFieldNumber = 16, + kGameListPlayerLeftMessageFieldNumber = 17, + kGameListAdminChangedMessageFieldNumber = 18, + kPlayerInfoRequestMessageFieldNumber = 19, + kPlayerInfoReplyMessageFieldNumber = 20, + kSubscriptionRequestMessageFieldNumber = 21, + kJoinExistingGameMessageFieldNumber = 22, + kJoinNewGameMessageFieldNumber = 23, + kRejoinExistingGameMessageFieldNumber = 24, + kJoinGameAckMessageFieldNumber = 25, + kJoinGameFailedMessageFieldNumber = 26, + kGamePlayerJoinedMessageFieldNumber = 27, + kGamePlayerLeftMessageFieldNumber = 28, + kGameAdminChangedMessageFieldNumber = 29, + kRemovedFromGameMessageFieldNumber = 30, + kKickPlayerRequestMessageFieldNumber = 31, + kLeaveGameRequestMessageFieldNumber = 32, + kInvitePlayerToGameMessageFieldNumber = 33, + kInviteNotifyMessageFieldNumber = 34, + kRejectGameInvitationMessageFieldNumber = 35, + kRejectInvNotifyMessageFieldNumber = 36, + kStartEventMessageFieldNumber = 37, + kStartEventAckMessageFieldNumber = 38, + kGameStartInitialMessageFieldNumber = 39, + kGameStartRejoinMessageFieldNumber = 40, + kHandStartMessageFieldNumber = 41, + kPlayersTurnMessageFieldNumber = 42, + kMyActionRequestMessageFieldNumber = 43, + kYourActionRejectedMessageFieldNumber = 44, + kPlayersActionDoneMessageFieldNumber = 45, + kDealFlopCardsMessageFieldNumber = 46, + kDealTurnCardMessageFieldNumber = 47, + kDealRiverCardMessageFieldNumber = 48, + kAllInShowCardsMessageFieldNumber = 49, + kEndOfHandShowCardsMessageFieldNumber = 50, + kEndOfHandHideCardsMessageFieldNumber = 51, + kShowMyCardsRequestMessageFieldNumber = 52, + kAfterHandShowCardsMessageFieldNumber = 53, + kEndOfGameMessageFieldNumber = 54, + kPlayerIdChangedMessageFieldNumber = 55, + kAskKickPlayerMessageFieldNumber = 56, + kAskKickDeniedMessageFieldNumber = 57, + kStartKickPetitionMessageFieldNumber = 58, + kVoteKickRequestMessageFieldNumber = 59, + kVoteKickReplyMessageFieldNumber = 60, + kKickPetitionUpdateMessageFieldNumber = 61, + kEndKickPetitionMessageFieldNumber = 62, + kStatisticsMessageFieldNumber = 63, + kChatRequestMessageFieldNumber = 64, + kChatMessageFieldNumber = 65, + kChatRejectMessageFieldNumber = 66, + kDialogMessageFieldNumber = 67, + kTimeoutWarningMessageFieldNumber = 68, + kResetTimeoutMessageFieldNumber = 69, + kReportAvatarMessageFieldNumber = 70, + kReportAvatarAckMessageFieldNumber = 71, + kReportGameMessageFieldNumber = 72, + kReportGameAckMessageFieldNumber = 73, + kErrorMessageFieldNumber = 74, + kAdminRemoveGameMessageFieldNumber = 75, + kAdminRemoveGameAckMessageFieldNumber = 76, + kAdminBanPlayerMessageFieldNumber = 77, + kAdminBanPlayerAckMessageFieldNumber = 78, + kGameListSpectatorJoinedMessageFieldNumber = 79, + kGameListSpectatorLeftMessageFieldNumber = 80, + kGameSpectatorJoinedMessageFieldNumber = 81, + kGameSpectatorLeftMessageFieldNumber = 82, + kMessageTypeFieldNumber = 1, + }; // optional .AnnounceMessage announceMessage = 2; - inline bool has_announcemessage() const; - inline void clear_announcemessage(); - static const int kAnnounceMessageFieldNumber = 2; - inline const ::AnnounceMessage& announcemessage() const; - inline ::AnnounceMessage* mutable_announcemessage(); - inline ::AnnounceMessage* release_announcemessage(); - inline void set_allocated_announcemessage(::AnnounceMessage* announcemessage); + bool has_announcemessage() const; + private: + bool _internal_has_announcemessage() const; + public: + void clear_announcemessage(); + const ::AnnounceMessage& announcemessage() const; + ::AnnounceMessage* release_announcemessage(); + ::AnnounceMessage* mutable_announcemessage(); + void set_allocated_announcemessage(::AnnounceMessage* announcemessage); + private: + const ::AnnounceMessage& _internal_announcemessage() const; + ::AnnounceMessage* _internal_mutable_announcemessage(); + public: + void unsafe_arena_set_allocated_announcemessage( + ::AnnounceMessage* announcemessage); + ::AnnounceMessage* unsafe_arena_release_announcemessage(); // optional .InitMessage initMessage = 3; - inline bool has_initmessage() const; - inline void clear_initmessage(); - static const int kInitMessageFieldNumber = 3; - inline const ::InitMessage& initmessage() const; - inline ::InitMessage* mutable_initmessage(); - inline ::InitMessage* release_initmessage(); - inline void set_allocated_initmessage(::InitMessage* initmessage); + bool has_initmessage() const; + private: + bool _internal_has_initmessage() const; + public: + void clear_initmessage(); + const ::InitMessage& initmessage() const; + ::InitMessage* release_initmessage(); + ::InitMessage* mutable_initmessage(); + void set_allocated_initmessage(::InitMessage* initmessage); + private: + const ::InitMessage& _internal_initmessage() const; + ::InitMessage* _internal_mutable_initmessage(); + public: + void unsafe_arena_set_allocated_initmessage( + ::InitMessage* initmessage); + ::InitMessage* unsafe_arena_release_initmessage(); // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - inline bool has_authserverchallengemessage() const; - inline void clear_authserverchallengemessage(); - static const int kAuthServerChallengeMessageFieldNumber = 4; - inline const ::AuthServerChallengeMessage& authserverchallengemessage() const; - inline ::AuthServerChallengeMessage* mutable_authserverchallengemessage(); - inline ::AuthServerChallengeMessage* release_authserverchallengemessage(); - inline void set_allocated_authserverchallengemessage(::AuthServerChallengeMessage* authserverchallengemessage); + bool has_authserverchallengemessage() const; + private: + bool _internal_has_authserverchallengemessage() const; + public: + void clear_authserverchallengemessage(); + const ::AuthServerChallengeMessage& authserverchallengemessage() const; + ::AuthServerChallengeMessage* release_authserverchallengemessage(); + ::AuthServerChallengeMessage* mutable_authserverchallengemessage(); + void set_allocated_authserverchallengemessage(::AuthServerChallengeMessage* authserverchallengemessage); + private: + const ::AuthServerChallengeMessage& _internal_authserverchallengemessage() const; + ::AuthServerChallengeMessage* _internal_mutable_authserverchallengemessage(); + public: + void unsafe_arena_set_allocated_authserverchallengemessage( + ::AuthServerChallengeMessage* authserverchallengemessage); + ::AuthServerChallengeMessage* unsafe_arena_release_authserverchallengemessage(); // optional .AuthClientResponseMessage authClientResponseMessage = 5; - inline bool has_authclientresponsemessage() const; - inline void clear_authclientresponsemessage(); - static const int kAuthClientResponseMessageFieldNumber = 5; - inline const ::AuthClientResponseMessage& authclientresponsemessage() const; - inline ::AuthClientResponseMessage* mutable_authclientresponsemessage(); - inline ::AuthClientResponseMessage* release_authclientresponsemessage(); - inline void set_allocated_authclientresponsemessage(::AuthClientResponseMessage* authclientresponsemessage); + bool has_authclientresponsemessage() const; + private: + bool _internal_has_authclientresponsemessage() const; + public: + void clear_authclientresponsemessage(); + const ::AuthClientResponseMessage& authclientresponsemessage() const; + ::AuthClientResponseMessage* release_authclientresponsemessage(); + ::AuthClientResponseMessage* mutable_authclientresponsemessage(); + void set_allocated_authclientresponsemessage(::AuthClientResponseMessage* authclientresponsemessage); + private: + const ::AuthClientResponseMessage& _internal_authclientresponsemessage() const; + ::AuthClientResponseMessage* _internal_mutable_authclientresponsemessage(); + public: + void unsafe_arena_set_allocated_authclientresponsemessage( + ::AuthClientResponseMessage* authclientresponsemessage); + ::AuthClientResponseMessage* unsafe_arena_release_authclientresponsemessage(); // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - inline bool has_authserververificationmessage() const; - inline void clear_authserververificationmessage(); - static const int kAuthServerVerificationMessageFieldNumber = 6; - inline const ::AuthServerVerificationMessage& authserververificationmessage() const; - inline ::AuthServerVerificationMessage* mutable_authserververificationmessage(); - inline ::AuthServerVerificationMessage* release_authserververificationmessage(); - inline void set_allocated_authserververificationmessage(::AuthServerVerificationMessage* authserververificationmessage); + bool has_authserververificationmessage() const; + private: + bool _internal_has_authserververificationmessage() const; + public: + void clear_authserververificationmessage(); + const ::AuthServerVerificationMessage& authserververificationmessage() const; + ::AuthServerVerificationMessage* release_authserververificationmessage(); + ::AuthServerVerificationMessage* mutable_authserververificationmessage(); + void set_allocated_authserververificationmessage(::AuthServerVerificationMessage* authserververificationmessage); + private: + const ::AuthServerVerificationMessage& _internal_authserververificationmessage() const; + ::AuthServerVerificationMessage* _internal_mutable_authserververificationmessage(); + public: + void unsafe_arena_set_allocated_authserververificationmessage( + ::AuthServerVerificationMessage* authserververificationmessage); + ::AuthServerVerificationMessage* unsafe_arena_release_authserververificationmessage(); // optional .InitAckMessage initAckMessage = 7; - inline bool has_initackmessage() const; - inline void clear_initackmessage(); - static const int kInitAckMessageFieldNumber = 7; - inline const ::InitAckMessage& initackmessage() const; - inline ::InitAckMessage* mutable_initackmessage(); - inline ::InitAckMessage* release_initackmessage(); - inline void set_allocated_initackmessage(::InitAckMessage* initackmessage); + bool has_initackmessage() const; + private: + bool _internal_has_initackmessage() const; + public: + void clear_initackmessage(); + const ::InitAckMessage& initackmessage() const; + ::InitAckMessage* release_initackmessage(); + ::InitAckMessage* mutable_initackmessage(); + void set_allocated_initackmessage(::InitAckMessage* initackmessage); + private: + const ::InitAckMessage& _internal_initackmessage() const; + ::InitAckMessage* _internal_mutable_initackmessage(); + public: + void unsafe_arena_set_allocated_initackmessage( + ::InitAckMessage* initackmessage); + ::InitAckMessage* unsafe_arena_release_initackmessage(); // optional .AvatarRequestMessage avatarRequestMessage = 8; - inline bool has_avatarrequestmessage() const; - inline void clear_avatarrequestmessage(); - static const int kAvatarRequestMessageFieldNumber = 8; - inline const ::AvatarRequestMessage& avatarrequestmessage() const; - inline ::AvatarRequestMessage* mutable_avatarrequestmessage(); - inline ::AvatarRequestMessage* release_avatarrequestmessage(); - inline void set_allocated_avatarrequestmessage(::AvatarRequestMessage* avatarrequestmessage); + bool has_avatarrequestmessage() const; + private: + bool _internal_has_avatarrequestmessage() const; + public: + void clear_avatarrequestmessage(); + const ::AvatarRequestMessage& avatarrequestmessage() const; + ::AvatarRequestMessage* release_avatarrequestmessage(); + ::AvatarRequestMessage* mutable_avatarrequestmessage(); + void set_allocated_avatarrequestmessage(::AvatarRequestMessage* avatarrequestmessage); + private: + const ::AvatarRequestMessage& _internal_avatarrequestmessage() const; + ::AvatarRequestMessage* _internal_mutable_avatarrequestmessage(); + public: + void unsafe_arena_set_allocated_avatarrequestmessage( + ::AvatarRequestMessage* avatarrequestmessage); + ::AvatarRequestMessage* unsafe_arena_release_avatarrequestmessage(); // optional .AvatarHeaderMessage avatarHeaderMessage = 9; - inline bool has_avatarheadermessage() const; - inline void clear_avatarheadermessage(); - static const int kAvatarHeaderMessageFieldNumber = 9; - inline const ::AvatarHeaderMessage& avatarheadermessage() const; - inline ::AvatarHeaderMessage* mutable_avatarheadermessage(); - inline ::AvatarHeaderMessage* release_avatarheadermessage(); - inline void set_allocated_avatarheadermessage(::AvatarHeaderMessage* avatarheadermessage); + bool has_avatarheadermessage() const; + private: + bool _internal_has_avatarheadermessage() const; + public: + void clear_avatarheadermessage(); + const ::AvatarHeaderMessage& avatarheadermessage() const; + ::AvatarHeaderMessage* release_avatarheadermessage(); + ::AvatarHeaderMessage* mutable_avatarheadermessage(); + void set_allocated_avatarheadermessage(::AvatarHeaderMessage* avatarheadermessage); + private: + const ::AvatarHeaderMessage& _internal_avatarheadermessage() const; + ::AvatarHeaderMessage* _internal_mutable_avatarheadermessage(); + public: + void unsafe_arena_set_allocated_avatarheadermessage( + ::AvatarHeaderMessage* avatarheadermessage); + ::AvatarHeaderMessage* unsafe_arena_release_avatarheadermessage(); // optional .AvatarDataMessage avatarDataMessage = 10; - inline bool has_avatardatamessage() const; - inline void clear_avatardatamessage(); - static const int kAvatarDataMessageFieldNumber = 10; - inline const ::AvatarDataMessage& avatardatamessage() const; - inline ::AvatarDataMessage* mutable_avatardatamessage(); - inline ::AvatarDataMessage* release_avatardatamessage(); - inline void set_allocated_avatardatamessage(::AvatarDataMessage* avatardatamessage); + bool has_avatardatamessage() const; + private: + bool _internal_has_avatardatamessage() const; + public: + void clear_avatardatamessage(); + const ::AvatarDataMessage& avatardatamessage() const; + ::AvatarDataMessage* release_avatardatamessage(); + ::AvatarDataMessage* mutable_avatardatamessage(); + void set_allocated_avatardatamessage(::AvatarDataMessage* avatardatamessage); + private: + const ::AvatarDataMessage& _internal_avatardatamessage() const; + ::AvatarDataMessage* _internal_mutable_avatardatamessage(); + public: + void unsafe_arena_set_allocated_avatardatamessage( + ::AvatarDataMessage* avatardatamessage); + ::AvatarDataMessage* unsafe_arena_release_avatardatamessage(); // optional .AvatarEndMessage avatarEndMessage = 11; - inline bool has_avatarendmessage() const; - inline void clear_avatarendmessage(); - static const int kAvatarEndMessageFieldNumber = 11; - inline const ::AvatarEndMessage& avatarendmessage() const; - inline ::AvatarEndMessage* mutable_avatarendmessage(); - inline ::AvatarEndMessage* release_avatarendmessage(); - inline void set_allocated_avatarendmessage(::AvatarEndMessage* avatarendmessage); + bool has_avatarendmessage() const; + private: + bool _internal_has_avatarendmessage() const; + public: + void clear_avatarendmessage(); + const ::AvatarEndMessage& avatarendmessage() const; + ::AvatarEndMessage* release_avatarendmessage(); + ::AvatarEndMessage* mutable_avatarendmessage(); + void set_allocated_avatarendmessage(::AvatarEndMessage* avatarendmessage); + private: + const ::AvatarEndMessage& _internal_avatarendmessage() const; + ::AvatarEndMessage* _internal_mutable_avatarendmessage(); + public: + void unsafe_arena_set_allocated_avatarendmessage( + ::AvatarEndMessage* avatarendmessage); + ::AvatarEndMessage* unsafe_arena_release_avatarendmessage(); // optional .UnknownAvatarMessage unknownAvatarMessage = 12; - inline bool has_unknownavatarmessage() const; - inline void clear_unknownavatarmessage(); - static const int kUnknownAvatarMessageFieldNumber = 12; - inline const ::UnknownAvatarMessage& unknownavatarmessage() const; - inline ::UnknownAvatarMessage* mutable_unknownavatarmessage(); - inline ::UnknownAvatarMessage* release_unknownavatarmessage(); - inline void set_allocated_unknownavatarmessage(::UnknownAvatarMessage* unknownavatarmessage); + bool has_unknownavatarmessage() const; + private: + bool _internal_has_unknownavatarmessage() const; + public: + void clear_unknownavatarmessage(); + const ::UnknownAvatarMessage& unknownavatarmessage() const; + ::UnknownAvatarMessage* release_unknownavatarmessage(); + ::UnknownAvatarMessage* mutable_unknownavatarmessage(); + void set_allocated_unknownavatarmessage(::UnknownAvatarMessage* unknownavatarmessage); + private: + const ::UnknownAvatarMessage& _internal_unknownavatarmessage() const; + ::UnknownAvatarMessage* _internal_mutable_unknownavatarmessage(); + public: + void unsafe_arena_set_allocated_unknownavatarmessage( + ::UnknownAvatarMessage* unknownavatarmessage); + ::UnknownAvatarMessage* unsafe_arena_release_unknownavatarmessage(); // optional .PlayerListMessage playerListMessage = 13; - inline bool has_playerlistmessage() const; - inline void clear_playerlistmessage(); - static const int kPlayerListMessageFieldNumber = 13; - inline const ::PlayerListMessage& playerlistmessage() const; - inline ::PlayerListMessage* mutable_playerlistmessage(); - inline ::PlayerListMessage* release_playerlistmessage(); - inline void set_allocated_playerlistmessage(::PlayerListMessage* playerlistmessage); + bool has_playerlistmessage() const; + private: + bool _internal_has_playerlistmessage() const; + public: + void clear_playerlistmessage(); + const ::PlayerListMessage& playerlistmessage() const; + ::PlayerListMessage* release_playerlistmessage(); + ::PlayerListMessage* mutable_playerlistmessage(); + void set_allocated_playerlistmessage(::PlayerListMessage* playerlistmessage); + private: + const ::PlayerListMessage& _internal_playerlistmessage() const; + ::PlayerListMessage* _internal_mutable_playerlistmessage(); + public: + void unsafe_arena_set_allocated_playerlistmessage( + ::PlayerListMessage* playerlistmessage); + ::PlayerListMessage* unsafe_arena_release_playerlistmessage(); // optional .GameListNewMessage gameListNewMessage = 14; - inline bool has_gamelistnewmessage() const; - inline void clear_gamelistnewmessage(); - static const int kGameListNewMessageFieldNumber = 14; - inline const ::GameListNewMessage& gamelistnewmessage() const; - inline ::GameListNewMessage* mutable_gamelistnewmessage(); - inline ::GameListNewMessage* release_gamelistnewmessage(); - inline void set_allocated_gamelistnewmessage(::GameListNewMessage* gamelistnewmessage); + bool has_gamelistnewmessage() const; + private: + bool _internal_has_gamelistnewmessage() const; + public: + void clear_gamelistnewmessage(); + const ::GameListNewMessage& gamelistnewmessage() const; + ::GameListNewMessage* release_gamelistnewmessage(); + ::GameListNewMessage* mutable_gamelistnewmessage(); + void set_allocated_gamelistnewmessage(::GameListNewMessage* gamelistnewmessage); + private: + const ::GameListNewMessage& _internal_gamelistnewmessage() const; + ::GameListNewMessage* _internal_mutable_gamelistnewmessage(); + public: + void unsafe_arena_set_allocated_gamelistnewmessage( + ::GameListNewMessage* gamelistnewmessage); + ::GameListNewMessage* unsafe_arena_release_gamelistnewmessage(); // optional .GameListUpdateMessage gameListUpdateMessage = 15; - inline bool has_gamelistupdatemessage() const; - inline void clear_gamelistupdatemessage(); - static const int kGameListUpdateMessageFieldNumber = 15; - inline const ::GameListUpdateMessage& gamelistupdatemessage() const; - inline ::GameListUpdateMessage* mutable_gamelistupdatemessage(); - inline ::GameListUpdateMessage* release_gamelistupdatemessage(); - inline void set_allocated_gamelistupdatemessage(::GameListUpdateMessage* gamelistupdatemessage); + bool has_gamelistupdatemessage() const; + private: + bool _internal_has_gamelistupdatemessage() const; + public: + void clear_gamelistupdatemessage(); + const ::GameListUpdateMessage& gamelistupdatemessage() const; + ::GameListUpdateMessage* release_gamelistupdatemessage(); + ::GameListUpdateMessage* mutable_gamelistupdatemessage(); + void set_allocated_gamelistupdatemessage(::GameListUpdateMessage* gamelistupdatemessage); + private: + const ::GameListUpdateMessage& _internal_gamelistupdatemessage() const; + ::GameListUpdateMessage* _internal_mutable_gamelistupdatemessage(); + public: + void unsafe_arena_set_allocated_gamelistupdatemessage( + ::GameListUpdateMessage* gamelistupdatemessage); + ::GameListUpdateMessage* unsafe_arena_release_gamelistupdatemessage(); // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - inline bool has_gamelistplayerjoinedmessage() const; - inline void clear_gamelistplayerjoinedmessage(); - static const int kGameListPlayerJoinedMessageFieldNumber = 16; - inline const ::GameListPlayerJoinedMessage& gamelistplayerjoinedmessage() const; - inline ::GameListPlayerJoinedMessage* mutable_gamelistplayerjoinedmessage(); - inline ::GameListPlayerJoinedMessage* release_gamelistplayerjoinedmessage(); - inline void set_allocated_gamelistplayerjoinedmessage(::GameListPlayerJoinedMessage* gamelistplayerjoinedmessage); + bool has_gamelistplayerjoinedmessage() const; + private: + bool _internal_has_gamelistplayerjoinedmessage() const; + public: + void clear_gamelistplayerjoinedmessage(); + const ::GameListPlayerJoinedMessage& gamelistplayerjoinedmessage() const; + ::GameListPlayerJoinedMessage* release_gamelistplayerjoinedmessage(); + ::GameListPlayerJoinedMessage* mutable_gamelistplayerjoinedmessage(); + void set_allocated_gamelistplayerjoinedmessage(::GameListPlayerJoinedMessage* gamelistplayerjoinedmessage); + private: + const ::GameListPlayerJoinedMessage& _internal_gamelistplayerjoinedmessage() const; + ::GameListPlayerJoinedMessage* _internal_mutable_gamelistplayerjoinedmessage(); + public: + void unsafe_arena_set_allocated_gamelistplayerjoinedmessage( + ::GameListPlayerJoinedMessage* gamelistplayerjoinedmessage); + ::GameListPlayerJoinedMessage* unsafe_arena_release_gamelistplayerjoinedmessage(); // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - inline bool has_gamelistplayerleftmessage() const; - inline void clear_gamelistplayerleftmessage(); - static const int kGameListPlayerLeftMessageFieldNumber = 17; - inline const ::GameListPlayerLeftMessage& gamelistplayerleftmessage() const; - inline ::GameListPlayerLeftMessage* mutable_gamelistplayerleftmessage(); - inline ::GameListPlayerLeftMessage* release_gamelistplayerleftmessage(); - inline void set_allocated_gamelistplayerleftmessage(::GameListPlayerLeftMessage* gamelistplayerleftmessage); + bool has_gamelistplayerleftmessage() const; + private: + bool _internal_has_gamelistplayerleftmessage() const; + public: + void clear_gamelistplayerleftmessage(); + const ::GameListPlayerLeftMessage& gamelistplayerleftmessage() const; + ::GameListPlayerLeftMessage* release_gamelistplayerleftmessage(); + ::GameListPlayerLeftMessage* mutable_gamelistplayerleftmessage(); + void set_allocated_gamelistplayerleftmessage(::GameListPlayerLeftMessage* gamelistplayerleftmessage); + private: + const ::GameListPlayerLeftMessage& _internal_gamelistplayerleftmessage() const; + ::GameListPlayerLeftMessage* _internal_mutable_gamelistplayerleftmessage(); + public: + void unsafe_arena_set_allocated_gamelistplayerleftmessage( + ::GameListPlayerLeftMessage* gamelistplayerleftmessage); + ::GameListPlayerLeftMessage* unsafe_arena_release_gamelistplayerleftmessage(); // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - inline bool has_gamelistadminchangedmessage() const; - inline void clear_gamelistadminchangedmessage(); - static const int kGameListAdminChangedMessageFieldNumber = 18; - inline const ::GameListAdminChangedMessage& gamelistadminchangedmessage() const; - inline ::GameListAdminChangedMessage* mutable_gamelistadminchangedmessage(); - inline ::GameListAdminChangedMessage* release_gamelistadminchangedmessage(); - inline void set_allocated_gamelistadminchangedmessage(::GameListAdminChangedMessage* gamelistadminchangedmessage); + bool has_gamelistadminchangedmessage() const; + private: + bool _internal_has_gamelistadminchangedmessage() const; + public: + void clear_gamelistadminchangedmessage(); + const ::GameListAdminChangedMessage& gamelistadminchangedmessage() const; + ::GameListAdminChangedMessage* release_gamelistadminchangedmessage(); + ::GameListAdminChangedMessage* mutable_gamelistadminchangedmessage(); + void set_allocated_gamelistadminchangedmessage(::GameListAdminChangedMessage* gamelistadminchangedmessage); + private: + const ::GameListAdminChangedMessage& _internal_gamelistadminchangedmessage() const; + ::GameListAdminChangedMessage* _internal_mutable_gamelistadminchangedmessage(); + public: + void unsafe_arena_set_allocated_gamelistadminchangedmessage( + ::GameListAdminChangedMessage* gamelistadminchangedmessage); + ::GameListAdminChangedMessage* unsafe_arena_release_gamelistadminchangedmessage(); // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - inline bool has_playerinforequestmessage() const; - inline void clear_playerinforequestmessage(); - static const int kPlayerInfoRequestMessageFieldNumber = 19; - inline const ::PlayerInfoRequestMessage& playerinforequestmessage() const; - inline ::PlayerInfoRequestMessage* mutable_playerinforequestmessage(); - inline ::PlayerInfoRequestMessage* release_playerinforequestmessage(); - inline void set_allocated_playerinforequestmessage(::PlayerInfoRequestMessage* playerinforequestmessage); + bool has_playerinforequestmessage() const; + private: + bool _internal_has_playerinforequestmessage() const; + public: + void clear_playerinforequestmessage(); + const ::PlayerInfoRequestMessage& playerinforequestmessage() const; + ::PlayerInfoRequestMessage* release_playerinforequestmessage(); + ::PlayerInfoRequestMessage* mutable_playerinforequestmessage(); + void set_allocated_playerinforequestmessage(::PlayerInfoRequestMessage* playerinforequestmessage); + private: + const ::PlayerInfoRequestMessage& _internal_playerinforequestmessage() const; + ::PlayerInfoRequestMessage* _internal_mutable_playerinforequestmessage(); + public: + void unsafe_arena_set_allocated_playerinforequestmessage( + ::PlayerInfoRequestMessage* playerinforequestmessage); + ::PlayerInfoRequestMessage* unsafe_arena_release_playerinforequestmessage(); // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - inline bool has_playerinforeplymessage() const; - inline void clear_playerinforeplymessage(); - static const int kPlayerInfoReplyMessageFieldNumber = 20; - inline const ::PlayerInfoReplyMessage& playerinforeplymessage() const; - inline ::PlayerInfoReplyMessage* mutable_playerinforeplymessage(); - inline ::PlayerInfoReplyMessage* release_playerinforeplymessage(); - inline void set_allocated_playerinforeplymessage(::PlayerInfoReplyMessage* playerinforeplymessage); + bool has_playerinforeplymessage() const; + private: + bool _internal_has_playerinforeplymessage() const; + public: + void clear_playerinforeplymessage(); + const ::PlayerInfoReplyMessage& playerinforeplymessage() const; + ::PlayerInfoReplyMessage* release_playerinforeplymessage(); + ::PlayerInfoReplyMessage* mutable_playerinforeplymessage(); + void set_allocated_playerinforeplymessage(::PlayerInfoReplyMessage* playerinforeplymessage); + private: + const ::PlayerInfoReplyMessage& _internal_playerinforeplymessage() const; + ::PlayerInfoReplyMessage* _internal_mutable_playerinforeplymessage(); + public: + void unsafe_arena_set_allocated_playerinforeplymessage( + ::PlayerInfoReplyMessage* playerinforeplymessage); + ::PlayerInfoReplyMessage* unsafe_arena_release_playerinforeplymessage(); // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - inline bool has_subscriptionrequestmessage() const; - inline void clear_subscriptionrequestmessage(); - static const int kSubscriptionRequestMessageFieldNumber = 21; - inline const ::SubscriptionRequestMessage& subscriptionrequestmessage() const; - inline ::SubscriptionRequestMessage* mutable_subscriptionrequestmessage(); - inline ::SubscriptionRequestMessage* release_subscriptionrequestmessage(); - inline void set_allocated_subscriptionrequestmessage(::SubscriptionRequestMessage* subscriptionrequestmessage); + bool has_subscriptionrequestmessage() const; + private: + bool _internal_has_subscriptionrequestmessage() const; + public: + void clear_subscriptionrequestmessage(); + const ::SubscriptionRequestMessage& subscriptionrequestmessage() const; + ::SubscriptionRequestMessage* release_subscriptionrequestmessage(); + ::SubscriptionRequestMessage* mutable_subscriptionrequestmessage(); + void set_allocated_subscriptionrequestmessage(::SubscriptionRequestMessage* subscriptionrequestmessage); + private: + const ::SubscriptionRequestMessage& _internal_subscriptionrequestmessage() const; + ::SubscriptionRequestMessage* _internal_mutable_subscriptionrequestmessage(); + public: + void unsafe_arena_set_allocated_subscriptionrequestmessage( + ::SubscriptionRequestMessage* subscriptionrequestmessage); + ::SubscriptionRequestMessage* unsafe_arena_release_subscriptionrequestmessage(); // optional .JoinExistingGameMessage joinExistingGameMessage = 22; - inline bool has_joinexistinggamemessage() const; - inline void clear_joinexistinggamemessage(); - static const int kJoinExistingGameMessageFieldNumber = 22; - inline const ::JoinExistingGameMessage& joinexistinggamemessage() const; - inline ::JoinExistingGameMessage* mutable_joinexistinggamemessage(); - inline ::JoinExistingGameMessage* release_joinexistinggamemessage(); - inline void set_allocated_joinexistinggamemessage(::JoinExistingGameMessage* joinexistinggamemessage); + bool has_joinexistinggamemessage() const; + private: + bool _internal_has_joinexistinggamemessage() const; + public: + void clear_joinexistinggamemessage(); + const ::JoinExistingGameMessage& joinexistinggamemessage() const; + ::JoinExistingGameMessage* release_joinexistinggamemessage(); + ::JoinExistingGameMessage* mutable_joinexistinggamemessage(); + void set_allocated_joinexistinggamemessage(::JoinExistingGameMessage* joinexistinggamemessage); + private: + const ::JoinExistingGameMessage& _internal_joinexistinggamemessage() const; + ::JoinExistingGameMessage* _internal_mutable_joinexistinggamemessage(); + public: + void unsafe_arena_set_allocated_joinexistinggamemessage( + ::JoinExistingGameMessage* joinexistinggamemessage); + ::JoinExistingGameMessage* unsafe_arena_release_joinexistinggamemessage(); // optional .JoinNewGameMessage joinNewGameMessage = 23; - inline bool has_joinnewgamemessage() const; - inline void clear_joinnewgamemessage(); - static const int kJoinNewGameMessageFieldNumber = 23; - inline const ::JoinNewGameMessage& joinnewgamemessage() const; - inline ::JoinNewGameMessage* mutable_joinnewgamemessage(); - inline ::JoinNewGameMessage* release_joinnewgamemessage(); - inline void set_allocated_joinnewgamemessage(::JoinNewGameMessage* joinnewgamemessage); + bool has_joinnewgamemessage() const; + private: + bool _internal_has_joinnewgamemessage() const; + public: + void clear_joinnewgamemessage(); + const ::JoinNewGameMessage& joinnewgamemessage() const; + ::JoinNewGameMessage* release_joinnewgamemessage(); + ::JoinNewGameMessage* mutable_joinnewgamemessage(); + void set_allocated_joinnewgamemessage(::JoinNewGameMessage* joinnewgamemessage); + private: + const ::JoinNewGameMessage& _internal_joinnewgamemessage() const; + ::JoinNewGameMessage* _internal_mutable_joinnewgamemessage(); + public: + void unsafe_arena_set_allocated_joinnewgamemessage( + ::JoinNewGameMessage* joinnewgamemessage); + ::JoinNewGameMessage* unsafe_arena_release_joinnewgamemessage(); // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - inline bool has_rejoinexistinggamemessage() const; - inline void clear_rejoinexistinggamemessage(); - static const int kRejoinExistingGameMessageFieldNumber = 24; - inline const ::RejoinExistingGameMessage& rejoinexistinggamemessage() const; - inline ::RejoinExistingGameMessage* mutable_rejoinexistinggamemessage(); - inline ::RejoinExistingGameMessage* release_rejoinexistinggamemessage(); - inline void set_allocated_rejoinexistinggamemessage(::RejoinExistingGameMessage* rejoinexistinggamemessage); + bool has_rejoinexistinggamemessage() const; + private: + bool _internal_has_rejoinexistinggamemessage() const; + public: + void clear_rejoinexistinggamemessage(); + const ::RejoinExistingGameMessage& rejoinexistinggamemessage() const; + ::RejoinExistingGameMessage* release_rejoinexistinggamemessage(); + ::RejoinExistingGameMessage* mutable_rejoinexistinggamemessage(); + void set_allocated_rejoinexistinggamemessage(::RejoinExistingGameMessage* rejoinexistinggamemessage); + private: + const ::RejoinExistingGameMessage& _internal_rejoinexistinggamemessage() const; + ::RejoinExistingGameMessage* _internal_mutable_rejoinexistinggamemessage(); + public: + void unsafe_arena_set_allocated_rejoinexistinggamemessage( + ::RejoinExistingGameMessage* rejoinexistinggamemessage); + ::RejoinExistingGameMessage* unsafe_arena_release_rejoinexistinggamemessage(); // optional .JoinGameAckMessage joinGameAckMessage = 25; - inline bool has_joingameackmessage() const; - inline void clear_joingameackmessage(); - static const int kJoinGameAckMessageFieldNumber = 25; - inline const ::JoinGameAckMessage& joingameackmessage() const; - inline ::JoinGameAckMessage* mutable_joingameackmessage(); - inline ::JoinGameAckMessage* release_joingameackmessage(); - inline void set_allocated_joingameackmessage(::JoinGameAckMessage* joingameackmessage); + bool has_joingameackmessage() const; + private: + bool _internal_has_joingameackmessage() const; + public: + void clear_joingameackmessage(); + const ::JoinGameAckMessage& joingameackmessage() const; + ::JoinGameAckMessage* release_joingameackmessage(); + ::JoinGameAckMessage* mutable_joingameackmessage(); + void set_allocated_joingameackmessage(::JoinGameAckMessage* joingameackmessage); + private: + const ::JoinGameAckMessage& _internal_joingameackmessage() const; + ::JoinGameAckMessage* _internal_mutable_joingameackmessage(); + public: + void unsafe_arena_set_allocated_joingameackmessage( + ::JoinGameAckMessage* joingameackmessage); + ::JoinGameAckMessage* unsafe_arena_release_joingameackmessage(); // optional .JoinGameFailedMessage joinGameFailedMessage = 26; - inline bool has_joingamefailedmessage() const; - inline void clear_joingamefailedmessage(); - static const int kJoinGameFailedMessageFieldNumber = 26; - inline const ::JoinGameFailedMessage& joingamefailedmessage() const; - inline ::JoinGameFailedMessage* mutable_joingamefailedmessage(); - inline ::JoinGameFailedMessage* release_joingamefailedmessage(); - inline void set_allocated_joingamefailedmessage(::JoinGameFailedMessage* joingamefailedmessage); + bool has_joingamefailedmessage() const; + private: + bool _internal_has_joingamefailedmessage() const; + public: + void clear_joingamefailedmessage(); + const ::JoinGameFailedMessage& joingamefailedmessage() const; + ::JoinGameFailedMessage* release_joingamefailedmessage(); + ::JoinGameFailedMessage* mutable_joingamefailedmessage(); + void set_allocated_joingamefailedmessage(::JoinGameFailedMessage* joingamefailedmessage); + private: + const ::JoinGameFailedMessage& _internal_joingamefailedmessage() const; + ::JoinGameFailedMessage* _internal_mutable_joingamefailedmessage(); + public: + void unsafe_arena_set_allocated_joingamefailedmessage( + ::JoinGameFailedMessage* joingamefailedmessage); + ::JoinGameFailedMessage* unsafe_arena_release_joingamefailedmessage(); // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - inline bool has_gameplayerjoinedmessage() const; - inline void clear_gameplayerjoinedmessage(); - static const int kGamePlayerJoinedMessageFieldNumber = 27; - inline const ::GamePlayerJoinedMessage& gameplayerjoinedmessage() const; - inline ::GamePlayerJoinedMessage* mutable_gameplayerjoinedmessage(); - inline ::GamePlayerJoinedMessage* release_gameplayerjoinedmessage(); - inline void set_allocated_gameplayerjoinedmessage(::GamePlayerJoinedMessage* gameplayerjoinedmessage); + bool has_gameplayerjoinedmessage() const; + private: + bool _internal_has_gameplayerjoinedmessage() const; + public: + void clear_gameplayerjoinedmessage(); + const ::GamePlayerJoinedMessage& gameplayerjoinedmessage() const; + ::GamePlayerJoinedMessage* release_gameplayerjoinedmessage(); + ::GamePlayerJoinedMessage* mutable_gameplayerjoinedmessage(); + void set_allocated_gameplayerjoinedmessage(::GamePlayerJoinedMessage* gameplayerjoinedmessage); + private: + const ::GamePlayerJoinedMessage& _internal_gameplayerjoinedmessage() const; + ::GamePlayerJoinedMessage* _internal_mutable_gameplayerjoinedmessage(); + public: + void unsafe_arena_set_allocated_gameplayerjoinedmessage( + ::GamePlayerJoinedMessage* gameplayerjoinedmessage); + ::GamePlayerJoinedMessage* unsafe_arena_release_gameplayerjoinedmessage(); // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - inline bool has_gameplayerleftmessage() const; - inline void clear_gameplayerleftmessage(); - static const int kGamePlayerLeftMessageFieldNumber = 28; - inline const ::GamePlayerLeftMessage& gameplayerleftmessage() const; - inline ::GamePlayerLeftMessage* mutable_gameplayerleftmessage(); - inline ::GamePlayerLeftMessage* release_gameplayerleftmessage(); - inline void set_allocated_gameplayerleftmessage(::GamePlayerLeftMessage* gameplayerleftmessage); + bool has_gameplayerleftmessage() const; + private: + bool _internal_has_gameplayerleftmessage() const; + public: + void clear_gameplayerleftmessage(); + const ::GamePlayerLeftMessage& gameplayerleftmessage() const; + ::GamePlayerLeftMessage* release_gameplayerleftmessage(); + ::GamePlayerLeftMessage* mutable_gameplayerleftmessage(); + void set_allocated_gameplayerleftmessage(::GamePlayerLeftMessage* gameplayerleftmessage); + private: + const ::GamePlayerLeftMessage& _internal_gameplayerleftmessage() const; + ::GamePlayerLeftMessage* _internal_mutable_gameplayerleftmessage(); + public: + void unsafe_arena_set_allocated_gameplayerleftmessage( + ::GamePlayerLeftMessage* gameplayerleftmessage); + ::GamePlayerLeftMessage* unsafe_arena_release_gameplayerleftmessage(); // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - inline bool has_gameadminchangedmessage() const; - inline void clear_gameadminchangedmessage(); - static const int kGameAdminChangedMessageFieldNumber = 29; - inline const ::GameAdminChangedMessage& gameadminchangedmessage() const; - inline ::GameAdminChangedMessage* mutable_gameadminchangedmessage(); - inline ::GameAdminChangedMessage* release_gameadminchangedmessage(); - inline void set_allocated_gameadminchangedmessage(::GameAdminChangedMessage* gameadminchangedmessage); + bool has_gameadminchangedmessage() const; + private: + bool _internal_has_gameadminchangedmessage() const; + public: + void clear_gameadminchangedmessage(); + const ::GameAdminChangedMessage& gameadminchangedmessage() const; + ::GameAdminChangedMessage* release_gameadminchangedmessage(); + ::GameAdminChangedMessage* mutable_gameadminchangedmessage(); + void set_allocated_gameadminchangedmessage(::GameAdminChangedMessage* gameadminchangedmessage); + private: + const ::GameAdminChangedMessage& _internal_gameadminchangedmessage() const; + ::GameAdminChangedMessage* _internal_mutable_gameadminchangedmessage(); + public: + void unsafe_arena_set_allocated_gameadminchangedmessage( + ::GameAdminChangedMessage* gameadminchangedmessage); + ::GameAdminChangedMessage* unsafe_arena_release_gameadminchangedmessage(); // optional .RemovedFromGameMessage removedFromGameMessage = 30; - inline bool has_removedfromgamemessage() const; - inline void clear_removedfromgamemessage(); - static const int kRemovedFromGameMessageFieldNumber = 30; - inline const ::RemovedFromGameMessage& removedfromgamemessage() const; - inline ::RemovedFromGameMessage* mutable_removedfromgamemessage(); - inline ::RemovedFromGameMessage* release_removedfromgamemessage(); - inline void set_allocated_removedfromgamemessage(::RemovedFromGameMessage* removedfromgamemessage); + bool has_removedfromgamemessage() const; + private: + bool _internal_has_removedfromgamemessage() const; + public: + void clear_removedfromgamemessage(); + const ::RemovedFromGameMessage& removedfromgamemessage() const; + ::RemovedFromGameMessage* release_removedfromgamemessage(); + ::RemovedFromGameMessage* mutable_removedfromgamemessage(); + void set_allocated_removedfromgamemessage(::RemovedFromGameMessage* removedfromgamemessage); + private: + const ::RemovedFromGameMessage& _internal_removedfromgamemessage() const; + ::RemovedFromGameMessage* _internal_mutable_removedfromgamemessage(); + public: + void unsafe_arena_set_allocated_removedfromgamemessage( + ::RemovedFromGameMessage* removedfromgamemessage); + ::RemovedFromGameMessage* unsafe_arena_release_removedfromgamemessage(); // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - inline bool has_kickplayerrequestmessage() const; - inline void clear_kickplayerrequestmessage(); - static const int kKickPlayerRequestMessageFieldNumber = 31; - inline const ::KickPlayerRequestMessage& kickplayerrequestmessage() const; - inline ::KickPlayerRequestMessage* mutable_kickplayerrequestmessage(); - inline ::KickPlayerRequestMessage* release_kickplayerrequestmessage(); - inline void set_allocated_kickplayerrequestmessage(::KickPlayerRequestMessage* kickplayerrequestmessage); + bool has_kickplayerrequestmessage() const; + private: + bool _internal_has_kickplayerrequestmessage() const; + public: + void clear_kickplayerrequestmessage(); + const ::KickPlayerRequestMessage& kickplayerrequestmessage() const; + ::KickPlayerRequestMessage* release_kickplayerrequestmessage(); + ::KickPlayerRequestMessage* mutable_kickplayerrequestmessage(); + void set_allocated_kickplayerrequestmessage(::KickPlayerRequestMessage* kickplayerrequestmessage); + private: + const ::KickPlayerRequestMessage& _internal_kickplayerrequestmessage() const; + ::KickPlayerRequestMessage* _internal_mutable_kickplayerrequestmessage(); + public: + void unsafe_arena_set_allocated_kickplayerrequestmessage( + ::KickPlayerRequestMessage* kickplayerrequestmessage); + ::KickPlayerRequestMessage* unsafe_arena_release_kickplayerrequestmessage(); // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - inline bool has_leavegamerequestmessage() const; - inline void clear_leavegamerequestmessage(); - static const int kLeaveGameRequestMessageFieldNumber = 32; - inline const ::LeaveGameRequestMessage& leavegamerequestmessage() const; - inline ::LeaveGameRequestMessage* mutable_leavegamerequestmessage(); - inline ::LeaveGameRequestMessage* release_leavegamerequestmessage(); - inline void set_allocated_leavegamerequestmessage(::LeaveGameRequestMessage* leavegamerequestmessage); + bool has_leavegamerequestmessage() const; + private: + bool _internal_has_leavegamerequestmessage() const; + public: + void clear_leavegamerequestmessage(); + const ::LeaveGameRequestMessage& leavegamerequestmessage() const; + ::LeaveGameRequestMessage* release_leavegamerequestmessage(); + ::LeaveGameRequestMessage* mutable_leavegamerequestmessage(); + void set_allocated_leavegamerequestmessage(::LeaveGameRequestMessage* leavegamerequestmessage); + private: + const ::LeaveGameRequestMessage& _internal_leavegamerequestmessage() const; + ::LeaveGameRequestMessage* _internal_mutable_leavegamerequestmessage(); + public: + void unsafe_arena_set_allocated_leavegamerequestmessage( + ::LeaveGameRequestMessage* leavegamerequestmessage); + ::LeaveGameRequestMessage* unsafe_arena_release_leavegamerequestmessage(); // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - inline bool has_inviteplayertogamemessage() const; - inline void clear_inviteplayertogamemessage(); - static const int kInvitePlayerToGameMessageFieldNumber = 33; - inline const ::InvitePlayerToGameMessage& inviteplayertogamemessage() const; - inline ::InvitePlayerToGameMessage* mutable_inviteplayertogamemessage(); - inline ::InvitePlayerToGameMessage* release_inviteplayertogamemessage(); - inline void set_allocated_inviteplayertogamemessage(::InvitePlayerToGameMessage* inviteplayertogamemessage); + bool has_inviteplayertogamemessage() const; + private: + bool _internal_has_inviteplayertogamemessage() const; + public: + void clear_inviteplayertogamemessage(); + const ::InvitePlayerToGameMessage& inviteplayertogamemessage() const; + ::InvitePlayerToGameMessage* release_inviteplayertogamemessage(); + ::InvitePlayerToGameMessage* mutable_inviteplayertogamemessage(); + void set_allocated_inviteplayertogamemessage(::InvitePlayerToGameMessage* inviteplayertogamemessage); + private: + const ::InvitePlayerToGameMessage& _internal_inviteplayertogamemessage() const; + ::InvitePlayerToGameMessage* _internal_mutable_inviteplayertogamemessage(); + public: + void unsafe_arena_set_allocated_inviteplayertogamemessage( + ::InvitePlayerToGameMessage* inviteplayertogamemessage); + ::InvitePlayerToGameMessage* unsafe_arena_release_inviteplayertogamemessage(); // optional .InviteNotifyMessage inviteNotifyMessage = 34; - inline bool has_invitenotifymessage() const; - inline void clear_invitenotifymessage(); - static const int kInviteNotifyMessageFieldNumber = 34; - inline const ::InviteNotifyMessage& invitenotifymessage() const; - inline ::InviteNotifyMessage* mutable_invitenotifymessage(); - inline ::InviteNotifyMessage* release_invitenotifymessage(); - inline void set_allocated_invitenotifymessage(::InviteNotifyMessage* invitenotifymessage); + bool has_invitenotifymessage() const; + private: + bool _internal_has_invitenotifymessage() const; + public: + void clear_invitenotifymessage(); + const ::InviteNotifyMessage& invitenotifymessage() const; + ::InviteNotifyMessage* release_invitenotifymessage(); + ::InviteNotifyMessage* mutable_invitenotifymessage(); + void set_allocated_invitenotifymessage(::InviteNotifyMessage* invitenotifymessage); + private: + const ::InviteNotifyMessage& _internal_invitenotifymessage() const; + ::InviteNotifyMessage* _internal_mutable_invitenotifymessage(); + public: + void unsafe_arena_set_allocated_invitenotifymessage( + ::InviteNotifyMessage* invitenotifymessage); + ::InviteNotifyMessage* unsafe_arena_release_invitenotifymessage(); // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - inline bool has_rejectgameinvitationmessage() const; - inline void clear_rejectgameinvitationmessage(); - static const int kRejectGameInvitationMessageFieldNumber = 35; - inline const ::RejectGameInvitationMessage& rejectgameinvitationmessage() const; - inline ::RejectGameInvitationMessage* mutable_rejectgameinvitationmessage(); - inline ::RejectGameInvitationMessage* release_rejectgameinvitationmessage(); - inline void set_allocated_rejectgameinvitationmessage(::RejectGameInvitationMessage* rejectgameinvitationmessage); + bool has_rejectgameinvitationmessage() const; + private: + bool _internal_has_rejectgameinvitationmessage() const; + public: + void clear_rejectgameinvitationmessage(); + const ::RejectGameInvitationMessage& rejectgameinvitationmessage() const; + ::RejectGameInvitationMessage* release_rejectgameinvitationmessage(); + ::RejectGameInvitationMessage* mutable_rejectgameinvitationmessage(); + void set_allocated_rejectgameinvitationmessage(::RejectGameInvitationMessage* rejectgameinvitationmessage); + private: + const ::RejectGameInvitationMessage& _internal_rejectgameinvitationmessage() const; + ::RejectGameInvitationMessage* _internal_mutable_rejectgameinvitationmessage(); + public: + void unsafe_arena_set_allocated_rejectgameinvitationmessage( + ::RejectGameInvitationMessage* rejectgameinvitationmessage); + ::RejectGameInvitationMessage* unsafe_arena_release_rejectgameinvitationmessage(); // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - inline bool has_rejectinvnotifymessage() const; - inline void clear_rejectinvnotifymessage(); - static const int kRejectInvNotifyMessageFieldNumber = 36; - inline const ::RejectInvNotifyMessage& rejectinvnotifymessage() const; - inline ::RejectInvNotifyMessage* mutable_rejectinvnotifymessage(); - inline ::RejectInvNotifyMessage* release_rejectinvnotifymessage(); - inline void set_allocated_rejectinvnotifymessage(::RejectInvNotifyMessage* rejectinvnotifymessage); + bool has_rejectinvnotifymessage() const; + private: + bool _internal_has_rejectinvnotifymessage() const; + public: + void clear_rejectinvnotifymessage(); + const ::RejectInvNotifyMessage& rejectinvnotifymessage() const; + ::RejectInvNotifyMessage* release_rejectinvnotifymessage(); + ::RejectInvNotifyMessage* mutable_rejectinvnotifymessage(); + void set_allocated_rejectinvnotifymessage(::RejectInvNotifyMessage* rejectinvnotifymessage); + private: + const ::RejectInvNotifyMessage& _internal_rejectinvnotifymessage() const; + ::RejectInvNotifyMessage* _internal_mutable_rejectinvnotifymessage(); + public: + void unsafe_arena_set_allocated_rejectinvnotifymessage( + ::RejectInvNotifyMessage* rejectinvnotifymessage); + ::RejectInvNotifyMessage* unsafe_arena_release_rejectinvnotifymessage(); // optional .StartEventMessage startEventMessage = 37; - inline bool has_starteventmessage() const; - inline void clear_starteventmessage(); - static const int kStartEventMessageFieldNumber = 37; - inline const ::StartEventMessage& starteventmessage() const; - inline ::StartEventMessage* mutable_starteventmessage(); - inline ::StartEventMessage* release_starteventmessage(); - inline void set_allocated_starteventmessage(::StartEventMessage* starteventmessage); + bool has_starteventmessage() const; + private: + bool _internal_has_starteventmessage() const; + public: + void clear_starteventmessage(); + const ::StartEventMessage& starteventmessage() const; + ::StartEventMessage* release_starteventmessage(); + ::StartEventMessage* mutable_starteventmessage(); + void set_allocated_starteventmessage(::StartEventMessage* starteventmessage); + private: + const ::StartEventMessage& _internal_starteventmessage() const; + ::StartEventMessage* _internal_mutable_starteventmessage(); + public: + void unsafe_arena_set_allocated_starteventmessage( + ::StartEventMessage* starteventmessage); + ::StartEventMessage* unsafe_arena_release_starteventmessage(); // optional .StartEventAckMessage startEventAckMessage = 38; - inline bool has_starteventackmessage() const; - inline void clear_starteventackmessage(); - static const int kStartEventAckMessageFieldNumber = 38; - inline const ::StartEventAckMessage& starteventackmessage() const; - inline ::StartEventAckMessage* mutable_starteventackmessage(); - inline ::StartEventAckMessage* release_starteventackmessage(); - inline void set_allocated_starteventackmessage(::StartEventAckMessage* starteventackmessage); + bool has_starteventackmessage() const; + private: + bool _internal_has_starteventackmessage() const; + public: + void clear_starteventackmessage(); + const ::StartEventAckMessage& starteventackmessage() const; + ::StartEventAckMessage* release_starteventackmessage(); + ::StartEventAckMessage* mutable_starteventackmessage(); + void set_allocated_starteventackmessage(::StartEventAckMessage* starteventackmessage); + private: + const ::StartEventAckMessage& _internal_starteventackmessage() const; + ::StartEventAckMessage* _internal_mutable_starteventackmessage(); + public: + void unsafe_arena_set_allocated_starteventackmessage( + ::StartEventAckMessage* starteventackmessage); + ::StartEventAckMessage* unsafe_arena_release_starteventackmessage(); // optional .GameStartInitialMessage gameStartInitialMessage = 39; - inline bool has_gamestartinitialmessage() const; - inline void clear_gamestartinitialmessage(); - static const int kGameStartInitialMessageFieldNumber = 39; - inline const ::GameStartInitialMessage& gamestartinitialmessage() const; - inline ::GameStartInitialMessage* mutable_gamestartinitialmessage(); - inline ::GameStartInitialMessage* release_gamestartinitialmessage(); - inline void set_allocated_gamestartinitialmessage(::GameStartInitialMessage* gamestartinitialmessage); + bool has_gamestartinitialmessage() const; + private: + bool _internal_has_gamestartinitialmessage() const; + public: + void clear_gamestartinitialmessage(); + const ::GameStartInitialMessage& gamestartinitialmessage() const; + ::GameStartInitialMessage* release_gamestartinitialmessage(); + ::GameStartInitialMessage* mutable_gamestartinitialmessage(); + void set_allocated_gamestartinitialmessage(::GameStartInitialMessage* gamestartinitialmessage); + private: + const ::GameStartInitialMessage& _internal_gamestartinitialmessage() const; + ::GameStartInitialMessage* _internal_mutable_gamestartinitialmessage(); + public: + void unsafe_arena_set_allocated_gamestartinitialmessage( + ::GameStartInitialMessage* gamestartinitialmessage); + ::GameStartInitialMessage* unsafe_arena_release_gamestartinitialmessage(); // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - inline bool has_gamestartrejoinmessage() const; - inline void clear_gamestartrejoinmessage(); - static const int kGameStartRejoinMessageFieldNumber = 40; - inline const ::GameStartRejoinMessage& gamestartrejoinmessage() const; - inline ::GameStartRejoinMessage* mutable_gamestartrejoinmessage(); - inline ::GameStartRejoinMessage* release_gamestartrejoinmessage(); - inline void set_allocated_gamestartrejoinmessage(::GameStartRejoinMessage* gamestartrejoinmessage); + bool has_gamestartrejoinmessage() const; + private: + bool _internal_has_gamestartrejoinmessage() const; + public: + void clear_gamestartrejoinmessage(); + const ::GameStartRejoinMessage& gamestartrejoinmessage() const; + ::GameStartRejoinMessage* release_gamestartrejoinmessage(); + ::GameStartRejoinMessage* mutable_gamestartrejoinmessage(); + void set_allocated_gamestartrejoinmessage(::GameStartRejoinMessage* gamestartrejoinmessage); + private: + const ::GameStartRejoinMessage& _internal_gamestartrejoinmessage() const; + ::GameStartRejoinMessage* _internal_mutable_gamestartrejoinmessage(); + public: + void unsafe_arena_set_allocated_gamestartrejoinmessage( + ::GameStartRejoinMessage* gamestartrejoinmessage); + ::GameStartRejoinMessage* unsafe_arena_release_gamestartrejoinmessage(); // optional .HandStartMessage handStartMessage = 41; - inline bool has_handstartmessage() const; - inline void clear_handstartmessage(); - static const int kHandStartMessageFieldNumber = 41; - inline const ::HandStartMessage& handstartmessage() const; - inline ::HandStartMessage* mutable_handstartmessage(); - inline ::HandStartMessage* release_handstartmessage(); - inline void set_allocated_handstartmessage(::HandStartMessage* handstartmessage); + bool has_handstartmessage() const; + private: + bool _internal_has_handstartmessage() const; + public: + void clear_handstartmessage(); + const ::HandStartMessage& handstartmessage() const; + ::HandStartMessage* release_handstartmessage(); + ::HandStartMessage* mutable_handstartmessage(); + void set_allocated_handstartmessage(::HandStartMessage* handstartmessage); + private: + const ::HandStartMessage& _internal_handstartmessage() const; + ::HandStartMessage* _internal_mutable_handstartmessage(); + public: + void unsafe_arena_set_allocated_handstartmessage( + ::HandStartMessage* handstartmessage); + ::HandStartMessage* unsafe_arena_release_handstartmessage(); // optional .PlayersTurnMessage playersTurnMessage = 42; - inline bool has_playersturnmessage() const; - inline void clear_playersturnmessage(); - static const int kPlayersTurnMessageFieldNumber = 42; - inline const ::PlayersTurnMessage& playersturnmessage() const; - inline ::PlayersTurnMessage* mutable_playersturnmessage(); - inline ::PlayersTurnMessage* release_playersturnmessage(); - inline void set_allocated_playersturnmessage(::PlayersTurnMessage* playersturnmessage); + bool has_playersturnmessage() const; + private: + bool _internal_has_playersturnmessage() const; + public: + void clear_playersturnmessage(); + const ::PlayersTurnMessage& playersturnmessage() const; + ::PlayersTurnMessage* release_playersturnmessage(); + ::PlayersTurnMessage* mutable_playersturnmessage(); + void set_allocated_playersturnmessage(::PlayersTurnMessage* playersturnmessage); + private: + const ::PlayersTurnMessage& _internal_playersturnmessage() const; + ::PlayersTurnMessage* _internal_mutable_playersturnmessage(); + public: + void unsafe_arena_set_allocated_playersturnmessage( + ::PlayersTurnMessage* playersturnmessage); + ::PlayersTurnMessage* unsafe_arena_release_playersturnmessage(); // optional .MyActionRequestMessage myActionRequestMessage = 43; - inline bool has_myactionrequestmessage() const; - inline void clear_myactionrequestmessage(); - static const int kMyActionRequestMessageFieldNumber = 43; - inline const ::MyActionRequestMessage& myactionrequestmessage() const; - inline ::MyActionRequestMessage* mutable_myactionrequestmessage(); - inline ::MyActionRequestMessage* release_myactionrequestmessage(); - inline void set_allocated_myactionrequestmessage(::MyActionRequestMessage* myactionrequestmessage); + bool has_myactionrequestmessage() const; + private: + bool _internal_has_myactionrequestmessage() const; + public: + void clear_myactionrequestmessage(); + const ::MyActionRequestMessage& myactionrequestmessage() const; + ::MyActionRequestMessage* release_myactionrequestmessage(); + ::MyActionRequestMessage* mutable_myactionrequestmessage(); + void set_allocated_myactionrequestmessage(::MyActionRequestMessage* myactionrequestmessage); + private: + const ::MyActionRequestMessage& _internal_myactionrequestmessage() const; + ::MyActionRequestMessage* _internal_mutable_myactionrequestmessage(); + public: + void unsafe_arena_set_allocated_myactionrequestmessage( + ::MyActionRequestMessage* myactionrequestmessage); + ::MyActionRequestMessage* unsafe_arena_release_myactionrequestmessage(); // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - inline bool has_youractionrejectedmessage() const; - inline void clear_youractionrejectedmessage(); - static const int kYourActionRejectedMessageFieldNumber = 44; - inline const ::YourActionRejectedMessage& youractionrejectedmessage() const; - inline ::YourActionRejectedMessage* mutable_youractionrejectedmessage(); - inline ::YourActionRejectedMessage* release_youractionrejectedmessage(); - inline void set_allocated_youractionrejectedmessage(::YourActionRejectedMessage* youractionrejectedmessage); + bool has_youractionrejectedmessage() const; + private: + bool _internal_has_youractionrejectedmessage() const; + public: + void clear_youractionrejectedmessage(); + const ::YourActionRejectedMessage& youractionrejectedmessage() const; + ::YourActionRejectedMessage* release_youractionrejectedmessage(); + ::YourActionRejectedMessage* mutable_youractionrejectedmessage(); + void set_allocated_youractionrejectedmessage(::YourActionRejectedMessage* youractionrejectedmessage); + private: + const ::YourActionRejectedMessage& _internal_youractionrejectedmessage() const; + ::YourActionRejectedMessage* _internal_mutable_youractionrejectedmessage(); + public: + void unsafe_arena_set_allocated_youractionrejectedmessage( + ::YourActionRejectedMessage* youractionrejectedmessage); + ::YourActionRejectedMessage* unsafe_arena_release_youractionrejectedmessage(); // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - inline bool has_playersactiondonemessage() const; - inline void clear_playersactiondonemessage(); - static const int kPlayersActionDoneMessageFieldNumber = 45; - inline const ::PlayersActionDoneMessage& playersactiondonemessage() const; - inline ::PlayersActionDoneMessage* mutable_playersactiondonemessage(); - inline ::PlayersActionDoneMessage* release_playersactiondonemessage(); - inline void set_allocated_playersactiondonemessage(::PlayersActionDoneMessage* playersactiondonemessage); + bool has_playersactiondonemessage() const; + private: + bool _internal_has_playersactiondonemessage() const; + public: + void clear_playersactiondonemessage(); + const ::PlayersActionDoneMessage& playersactiondonemessage() const; + ::PlayersActionDoneMessage* release_playersactiondonemessage(); + ::PlayersActionDoneMessage* mutable_playersactiondonemessage(); + void set_allocated_playersactiondonemessage(::PlayersActionDoneMessage* playersactiondonemessage); + private: + const ::PlayersActionDoneMessage& _internal_playersactiondonemessage() const; + ::PlayersActionDoneMessage* _internal_mutable_playersactiondonemessage(); + public: + void unsafe_arena_set_allocated_playersactiondonemessage( + ::PlayersActionDoneMessage* playersactiondonemessage); + ::PlayersActionDoneMessage* unsafe_arena_release_playersactiondonemessage(); // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - inline bool has_dealflopcardsmessage() const; - inline void clear_dealflopcardsmessage(); - static const int kDealFlopCardsMessageFieldNumber = 46; - inline const ::DealFlopCardsMessage& dealflopcardsmessage() const; - inline ::DealFlopCardsMessage* mutable_dealflopcardsmessage(); - inline ::DealFlopCardsMessage* release_dealflopcardsmessage(); - inline void set_allocated_dealflopcardsmessage(::DealFlopCardsMessage* dealflopcardsmessage); + bool has_dealflopcardsmessage() const; + private: + bool _internal_has_dealflopcardsmessage() const; + public: + void clear_dealflopcardsmessage(); + const ::DealFlopCardsMessage& dealflopcardsmessage() const; + ::DealFlopCardsMessage* release_dealflopcardsmessage(); + ::DealFlopCardsMessage* mutable_dealflopcardsmessage(); + void set_allocated_dealflopcardsmessage(::DealFlopCardsMessage* dealflopcardsmessage); + private: + const ::DealFlopCardsMessage& _internal_dealflopcardsmessage() const; + ::DealFlopCardsMessage* _internal_mutable_dealflopcardsmessage(); + public: + void unsafe_arena_set_allocated_dealflopcardsmessage( + ::DealFlopCardsMessage* dealflopcardsmessage); + ::DealFlopCardsMessage* unsafe_arena_release_dealflopcardsmessage(); // optional .DealTurnCardMessage dealTurnCardMessage = 47; - inline bool has_dealturncardmessage() const; - inline void clear_dealturncardmessage(); - static const int kDealTurnCardMessageFieldNumber = 47; - inline const ::DealTurnCardMessage& dealturncardmessage() const; - inline ::DealTurnCardMessage* mutable_dealturncardmessage(); - inline ::DealTurnCardMessage* release_dealturncardmessage(); - inline void set_allocated_dealturncardmessage(::DealTurnCardMessage* dealturncardmessage); + bool has_dealturncardmessage() const; + private: + bool _internal_has_dealturncardmessage() const; + public: + void clear_dealturncardmessage(); + const ::DealTurnCardMessage& dealturncardmessage() const; + ::DealTurnCardMessage* release_dealturncardmessage(); + ::DealTurnCardMessage* mutable_dealturncardmessage(); + void set_allocated_dealturncardmessage(::DealTurnCardMessage* dealturncardmessage); + private: + const ::DealTurnCardMessage& _internal_dealturncardmessage() const; + ::DealTurnCardMessage* _internal_mutable_dealturncardmessage(); + public: + void unsafe_arena_set_allocated_dealturncardmessage( + ::DealTurnCardMessage* dealturncardmessage); + ::DealTurnCardMessage* unsafe_arena_release_dealturncardmessage(); // optional .DealRiverCardMessage dealRiverCardMessage = 48; - inline bool has_dealrivercardmessage() const; - inline void clear_dealrivercardmessage(); - static const int kDealRiverCardMessageFieldNumber = 48; - inline const ::DealRiverCardMessage& dealrivercardmessage() const; - inline ::DealRiverCardMessage* mutable_dealrivercardmessage(); - inline ::DealRiverCardMessage* release_dealrivercardmessage(); - inline void set_allocated_dealrivercardmessage(::DealRiverCardMessage* dealrivercardmessage); + bool has_dealrivercardmessage() const; + private: + bool _internal_has_dealrivercardmessage() const; + public: + void clear_dealrivercardmessage(); + const ::DealRiverCardMessage& dealrivercardmessage() const; + ::DealRiverCardMessage* release_dealrivercardmessage(); + ::DealRiverCardMessage* mutable_dealrivercardmessage(); + void set_allocated_dealrivercardmessage(::DealRiverCardMessage* dealrivercardmessage); + private: + const ::DealRiverCardMessage& _internal_dealrivercardmessage() const; + ::DealRiverCardMessage* _internal_mutable_dealrivercardmessage(); + public: + void unsafe_arena_set_allocated_dealrivercardmessage( + ::DealRiverCardMessage* dealrivercardmessage); + ::DealRiverCardMessage* unsafe_arena_release_dealrivercardmessage(); // optional .AllInShowCardsMessage allInShowCardsMessage = 49; - inline bool has_allinshowcardsmessage() const; - inline void clear_allinshowcardsmessage(); - static const int kAllInShowCardsMessageFieldNumber = 49; - inline const ::AllInShowCardsMessage& allinshowcardsmessage() const; - inline ::AllInShowCardsMessage* mutable_allinshowcardsmessage(); - inline ::AllInShowCardsMessage* release_allinshowcardsmessage(); - inline void set_allocated_allinshowcardsmessage(::AllInShowCardsMessage* allinshowcardsmessage); + bool has_allinshowcardsmessage() const; + private: + bool _internal_has_allinshowcardsmessage() const; + public: + void clear_allinshowcardsmessage(); + const ::AllInShowCardsMessage& allinshowcardsmessage() const; + ::AllInShowCardsMessage* release_allinshowcardsmessage(); + ::AllInShowCardsMessage* mutable_allinshowcardsmessage(); + void set_allocated_allinshowcardsmessage(::AllInShowCardsMessage* allinshowcardsmessage); + private: + const ::AllInShowCardsMessage& _internal_allinshowcardsmessage() const; + ::AllInShowCardsMessage* _internal_mutable_allinshowcardsmessage(); + public: + void unsafe_arena_set_allocated_allinshowcardsmessage( + ::AllInShowCardsMessage* allinshowcardsmessage); + ::AllInShowCardsMessage* unsafe_arena_release_allinshowcardsmessage(); // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - inline bool has_endofhandshowcardsmessage() const; - inline void clear_endofhandshowcardsmessage(); - static const int kEndOfHandShowCardsMessageFieldNumber = 50; - inline const ::EndOfHandShowCardsMessage& endofhandshowcardsmessage() const; - inline ::EndOfHandShowCardsMessage* mutable_endofhandshowcardsmessage(); - inline ::EndOfHandShowCardsMessage* release_endofhandshowcardsmessage(); - inline void set_allocated_endofhandshowcardsmessage(::EndOfHandShowCardsMessage* endofhandshowcardsmessage); + bool has_endofhandshowcardsmessage() const; + private: + bool _internal_has_endofhandshowcardsmessage() const; + public: + void clear_endofhandshowcardsmessage(); + const ::EndOfHandShowCardsMessage& endofhandshowcardsmessage() const; + ::EndOfHandShowCardsMessage* release_endofhandshowcardsmessage(); + ::EndOfHandShowCardsMessage* mutable_endofhandshowcardsmessage(); + void set_allocated_endofhandshowcardsmessage(::EndOfHandShowCardsMessage* endofhandshowcardsmessage); + private: + const ::EndOfHandShowCardsMessage& _internal_endofhandshowcardsmessage() const; + ::EndOfHandShowCardsMessage* _internal_mutable_endofhandshowcardsmessage(); + public: + void unsafe_arena_set_allocated_endofhandshowcardsmessage( + ::EndOfHandShowCardsMessage* endofhandshowcardsmessage); + ::EndOfHandShowCardsMessage* unsafe_arena_release_endofhandshowcardsmessage(); // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - inline bool has_endofhandhidecardsmessage() const; - inline void clear_endofhandhidecardsmessage(); - static const int kEndOfHandHideCardsMessageFieldNumber = 51; - inline const ::EndOfHandHideCardsMessage& endofhandhidecardsmessage() const; - inline ::EndOfHandHideCardsMessage* mutable_endofhandhidecardsmessage(); - inline ::EndOfHandHideCardsMessage* release_endofhandhidecardsmessage(); - inline void set_allocated_endofhandhidecardsmessage(::EndOfHandHideCardsMessage* endofhandhidecardsmessage); + bool has_endofhandhidecardsmessage() const; + private: + bool _internal_has_endofhandhidecardsmessage() const; + public: + void clear_endofhandhidecardsmessage(); + const ::EndOfHandHideCardsMessage& endofhandhidecardsmessage() const; + ::EndOfHandHideCardsMessage* release_endofhandhidecardsmessage(); + ::EndOfHandHideCardsMessage* mutable_endofhandhidecardsmessage(); + void set_allocated_endofhandhidecardsmessage(::EndOfHandHideCardsMessage* endofhandhidecardsmessage); + private: + const ::EndOfHandHideCardsMessage& _internal_endofhandhidecardsmessage() const; + ::EndOfHandHideCardsMessage* _internal_mutable_endofhandhidecardsmessage(); + public: + void unsafe_arena_set_allocated_endofhandhidecardsmessage( + ::EndOfHandHideCardsMessage* endofhandhidecardsmessage); + ::EndOfHandHideCardsMessage* unsafe_arena_release_endofhandhidecardsmessage(); // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - inline bool has_showmycardsrequestmessage() const; - inline void clear_showmycardsrequestmessage(); - static const int kShowMyCardsRequestMessageFieldNumber = 52; - inline const ::ShowMyCardsRequestMessage& showmycardsrequestmessage() const; - inline ::ShowMyCardsRequestMessage* mutable_showmycardsrequestmessage(); - inline ::ShowMyCardsRequestMessage* release_showmycardsrequestmessage(); - inline void set_allocated_showmycardsrequestmessage(::ShowMyCardsRequestMessage* showmycardsrequestmessage); + bool has_showmycardsrequestmessage() const; + private: + bool _internal_has_showmycardsrequestmessage() const; + public: + void clear_showmycardsrequestmessage(); + const ::ShowMyCardsRequestMessage& showmycardsrequestmessage() const; + ::ShowMyCardsRequestMessage* release_showmycardsrequestmessage(); + ::ShowMyCardsRequestMessage* mutable_showmycardsrequestmessage(); + void set_allocated_showmycardsrequestmessage(::ShowMyCardsRequestMessage* showmycardsrequestmessage); + private: + const ::ShowMyCardsRequestMessage& _internal_showmycardsrequestmessage() const; + ::ShowMyCardsRequestMessage* _internal_mutable_showmycardsrequestmessage(); + public: + void unsafe_arena_set_allocated_showmycardsrequestmessage( + ::ShowMyCardsRequestMessage* showmycardsrequestmessage); + ::ShowMyCardsRequestMessage* unsafe_arena_release_showmycardsrequestmessage(); // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - inline bool has_afterhandshowcardsmessage() const; - inline void clear_afterhandshowcardsmessage(); - static const int kAfterHandShowCardsMessageFieldNumber = 53; - inline const ::AfterHandShowCardsMessage& afterhandshowcardsmessage() const; - inline ::AfterHandShowCardsMessage* mutable_afterhandshowcardsmessage(); - inline ::AfterHandShowCardsMessage* release_afterhandshowcardsmessage(); - inline void set_allocated_afterhandshowcardsmessage(::AfterHandShowCardsMessage* afterhandshowcardsmessage); + bool has_afterhandshowcardsmessage() const; + private: + bool _internal_has_afterhandshowcardsmessage() const; + public: + void clear_afterhandshowcardsmessage(); + const ::AfterHandShowCardsMessage& afterhandshowcardsmessage() const; + ::AfterHandShowCardsMessage* release_afterhandshowcardsmessage(); + ::AfterHandShowCardsMessage* mutable_afterhandshowcardsmessage(); + void set_allocated_afterhandshowcardsmessage(::AfterHandShowCardsMessage* afterhandshowcardsmessage); + private: + const ::AfterHandShowCardsMessage& _internal_afterhandshowcardsmessage() const; + ::AfterHandShowCardsMessage* _internal_mutable_afterhandshowcardsmessage(); + public: + void unsafe_arena_set_allocated_afterhandshowcardsmessage( + ::AfterHandShowCardsMessage* afterhandshowcardsmessage); + ::AfterHandShowCardsMessage* unsafe_arena_release_afterhandshowcardsmessage(); // optional .EndOfGameMessage endOfGameMessage = 54; - inline bool has_endofgamemessage() const; - inline void clear_endofgamemessage(); - static const int kEndOfGameMessageFieldNumber = 54; - inline const ::EndOfGameMessage& endofgamemessage() const; - inline ::EndOfGameMessage* mutable_endofgamemessage(); - inline ::EndOfGameMessage* release_endofgamemessage(); - inline void set_allocated_endofgamemessage(::EndOfGameMessage* endofgamemessage); + bool has_endofgamemessage() const; + private: + bool _internal_has_endofgamemessage() const; + public: + void clear_endofgamemessage(); + const ::EndOfGameMessage& endofgamemessage() const; + ::EndOfGameMessage* release_endofgamemessage(); + ::EndOfGameMessage* mutable_endofgamemessage(); + void set_allocated_endofgamemessage(::EndOfGameMessage* endofgamemessage); + private: + const ::EndOfGameMessage& _internal_endofgamemessage() const; + ::EndOfGameMessage* _internal_mutable_endofgamemessage(); + public: + void unsafe_arena_set_allocated_endofgamemessage( + ::EndOfGameMessage* endofgamemessage); + ::EndOfGameMessage* unsafe_arena_release_endofgamemessage(); // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - inline bool has_playeridchangedmessage() const; - inline void clear_playeridchangedmessage(); - static const int kPlayerIdChangedMessageFieldNumber = 55; - inline const ::PlayerIdChangedMessage& playeridchangedmessage() const; - inline ::PlayerIdChangedMessage* mutable_playeridchangedmessage(); - inline ::PlayerIdChangedMessage* release_playeridchangedmessage(); - inline void set_allocated_playeridchangedmessage(::PlayerIdChangedMessage* playeridchangedmessage); + bool has_playeridchangedmessage() const; + private: + bool _internal_has_playeridchangedmessage() const; + public: + void clear_playeridchangedmessage(); + const ::PlayerIdChangedMessage& playeridchangedmessage() const; + ::PlayerIdChangedMessage* release_playeridchangedmessage(); + ::PlayerIdChangedMessage* mutable_playeridchangedmessage(); + void set_allocated_playeridchangedmessage(::PlayerIdChangedMessage* playeridchangedmessage); + private: + const ::PlayerIdChangedMessage& _internal_playeridchangedmessage() const; + ::PlayerIdChangedMessage* _internal_mutable_playeridchangedmessage(); + public: + void unsafe_arena_set_allocated_playeridchangedmessage( + ::PlayerIdChangedMessage* playeridchangedmessage); + ::PlayerIdChangedMessage* unsafe_arena_release_playeridchangedmessage(); // optional .AskKickPlayerMessage askKickPlayerMessage = 56; - inline bool has_askkickplayermessage() const; - inline void clear_askkickplayermessage(); - static const int kAskKickPlayerMessageFieldNumber = 56; - inline const ::AskKickPlayerMessage& askkickplayermessage() const; - inline ::AskKickPlayerMessage* mutable_askkickplayermessage(); - inline ::AskKickPlayerMessage* release_askkickplayermessage(); - inline void set_allocated_askkickplayermessage(::AskKickPlayerMessage* askkickplayermessage); + bool has_askkickplayermessage() const; + private: + bool _internal_has_askkickplayermessage() const; + public: + void clear_askkickplayermessage(); + const ::AskKickPlayerMessage& askkickplayermessage() const; + ::AskKickPlayerMessage* release_askkickplayermessage(); + ::AskKickPlayerMessage* mutable_askkickplayermessage(); + void set_allocated_askkickplayermessage(::AskKickPlayerMessage* askkickplayermessage); + private: + const ::AskKickPlayerMessage& _internal_askkickplayermessage() const; + ::AskKickPlayerMessage* _internal_mutable_askkickplayermessage(); + public: + void unsafe_arena_set_allocated_askkickplayermessage( + ::AskKickPlayerMessage* askkickplayermessage); + ::AskKickPlayerMessage* unsafe_arena_release_askkickplayermessage(); // optional .AskKickDeniedMessage askKickDeniedMessage = 57; - inline bool has_askkickdeniedmessage() const; - inline void clear_askkickdeniedmessage(); - static const int kAskKickDeniedMessageFieldNumber = 57; - inline const ::AskKickDeniedMessage& askkickdeniedmessage() const; - inline ::AskKickDeniedMessage* mutable_askkickdeniedmessage(); - inline ::AskKickDeniedMessage* release_askkickdeniedmessage(); - inline void set_allocated_askkickdeniedmessage(::AskKickDeniedMessage* askkickdeniedmessage); + bool has_askkickdeniedmessage() const; + private: + bool _internal_has_askkickdeniedmessage() const; + public: + void clear_askkickdeniedmessage(); + const ::AskKickDeniedMessage& askkickdeniedmessage() const; + ::AskKickDeniedMessage* release_askkickdeniedmessage(); + ::AskKickDeniedMessage* mutable_askkickdeniedmessage(); + void set_allocated_askkickdeniedmessage(::AskKickDeniedMessage* askkickdeniedmessage); + private: + const ::AskKickDeniedMessage& _internal_askkickdeniedmessage() const; + ::AskKickDeniedMessage* _internal_mutable_askkickdeniedmessage(); + public: + void unsafe_arena_set_allocated_askkickdeniedmessage( + ::AskKickDeniedMessage* askkickdeniedmessage); + ::AskKickDeniedMessage* unsafe_arena_release_askkickdeniedmessage(); // optional .StartKickPetitionMessage startKickPetitionMessage = 58; - inline bool has_startkickpetitionmessage() const; - inline void clear_startkickpetitionmessage(); - static const int kStartKickPetitionMessageFieldNumber = 58; - inline const ::StartKickPetitionMessage& startkickpetitionmessage() const; - inline ::StartKickPetitionMessage* mutable_startkickpetitionmessage(); - inline ::StartKickPetitionMessage* release_startkickpetitionmessage(); - inline void set_allocated_startkickpetitionmessage(::StartKickPetitionMessage* startkickpetitionmessage); + bool has_startkickpetitionmessage() const; + private: + bool _internal_has_startkickpetitionmessage() const; + public: + void clear_startkickpetitionmessage(); + const ::StartKickPetitionMessage& startkickpetitionmessage() const; + ::StartKickPetitionMessage* release_startkickpetitionmessage(); + ::StartKickPetitionMessage* mutable_startkickpetitionmessage(); + void set_allocated_startkickpetitionmessage(::StartKickPetitionMessage* startkickpetitionmessage); + private: + const ::StartKickPetitionMessage& _internal_startkickpetitionmessage() const; + ::StartKickPetitionMessage* _internal_mutable_startkickpetitionmessage(); + public: + void unsafe_arena_set_allocated_startkickpetitionmessage( + ::StartKickPetitionMessage* startkickpetitionmessage); + ::StartKickPetitionMessage* unsafe_arena_release_startkickpetitionmessage(); // optional .VoteKickRequestMessage voteKickRequestMessage = 59; - inline bool has_votekickrequestmessage() const; - inline void clear_votekickrequestmessage(); - static const int kVoteKickRequestMessageFieldNumber = 59; - inline const ::VoteKickRequestMessage& votekickrequestmessage() const; - inline ::VoteKickRequestMessage* mutable_votekickrequestmessage(); - inline ::VoteKickRequestMessage* release_votekickrequestmessage(); - inline void set_allocated_votekickrequestmessage(::VoteKickRequestMessage* votekickrequestmessage); + bool has_votekickrequestmessage() const; + private: + bool _internal_has_votekickrequestmessage() const; + public: + void clear_votekickrequestmessage(); + const ::VoteKickRequestMessage& votekickrequestmessage() const; + ::VoteKickRequestMessage* release_votekickrequestmessage(); + ::VoteKickRequestMessage* mutable_votekickrequestmessage(); + void set_allocated_votekickrequestmessage(::VoteKickRequestMessage* votekickrequestmessage); + private: + const ::VoteKickRequestMessage& _internal_votekickrequestmessage() const; + ::VoteKickRequestMessage* _internal_mutable_votekickrequestmessage(); + public: + void unsafe_arena_set_allocated_votekickrequestmessage( + ::VoteKickRequestMessage* votekickrequestmessage); + ::VoteKickRequestMessage* unsafe_arena_release_votekickrequestmessage(); // optional .VoteKickReplyMessage voteKickReplyMessage = 60; - inline bool has_votekickreplymessage() const; - inline void clear_votekickreplymessage(); - static const int kVoteKickReplyMessageFieldNumber = 60; - inline const ::VoteKickReplyMessage& votekickreplymessage() const; - inline ::VoteKickReplyMessage* mutable_votekickreplymessage(); - inline ::VoteKickReplyMessage* release_votekickreplymessage(); - inline void set_allocated_votekickreplymessage(::VoteKickReplyMessage* votekickreplymessage); + bool has_votekickreplymessage() const; + private: + bool _internal_has_votekickreplymessage() const; + public: + void clear_votekickreplymessage(); + const ::VoteKickReplyMessage& votekickreplymessage() const; + ::VoteKickReplyMessage* release_votekickreplymessage(); + ::VoteKickReplyMessage* mutable_votekickreplymessage(); + void set_allocated_votekickreplymessage(::VoteKickReplyMessage* votekickreplymessage); + private: + const ::VoteKickReplyMessage& _internal_votekickreplymessage() const; + ::VoteKickReplyMessage* _internal_mutable_votekickreplymessage(); + public: + void unsafe_arena_set_allocated_votekickreplymessage( + ::VoteKickReplyMessage* votekickreplymessage); + ::VoteKickReplyMessage* unsafe_arena_release_votekickreplymessage(); // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - inline bool has_kickpetitionupdatemessage() const; - inline void clear_kickpetitionupdatemessage(); - static const int kKickPetitionUpdateMessageFieldNumber = 61; - inline const ::KickPetitionUpdateMessage& kickpetitionupdatemessage() const; - inline ::KickPetitionUpdateMessage* mutable_kickpetitionupdatemessage(); - inline ::KickPetitionUpdateMessage* release_kickpetitionupdatemessage(); - inline void set_allocated_kickpetitionupdatemessage(::KickPetitionUpdateMessage* kickpetitionupdatemessage); + bool has_kickpetitionupdatemessage() const; + private: + bool _internal_has_kickpetitionupdatemessage() const; + public: + void clear_kickpetitionupdatemessage(); + const ::KickPetitionUpdateMessage& kickpetitionupdatemessage() const; + ::KickPetitionUpdateMessage* release_kickpetitionupdatemessage(); + ::KickPetitionUpdateMessage* mutable_kickpetitionupdatemessage(); + void set_allocated_kickpetitionupdatemessage(::KickPetitionUpdateMessage* kickpetitionupdatemessage); + private: + const ::KickPetitionUpdateMessage& _internal_kickpetitionupdatemessage() const; + ::KickPetitionUpdateMessage* _internal_mutable_kickpetitionupdatemessage(); + public: + void unsafe_arena_set_allocated_kickpetitionupdatemessage( + ::KickPetitionUpdateMessage* kickpetitionupdatemessage); + ::KickPetitionUpdateMessage* unsafe_arena_release_kickpetitionupdatemessage(); // optional .EndKickPetitionMessage endKickPetitionMessage = 62; - inline bool has_endkickpetitionmessage() const; - inline void clear_endkickpetitionmessage(); - static const int kEndKickPetitionMessageFieldNumber = 62; - inline const ::EndKickPetitionMessage& endkickpetitionmessage() const; - inline ::EndKickPetitionMessage* mutable_endkickpetitionmessage(); - inline ::EndKickPetitionMessage* release_endkickpetitionmessage(); - inline void set_allocated_endkickpetitionmessage(::EndKickPetitionMessage* endkickpetitionmessage); + bool has_endkickpetitionmessage() const; + private: + bool _internal_has_endkickpetitionmessage() const; + public: + void clear_endkickpetitionmessage(); + const ::EndKickPetitionMessage& endkickpetitionmessage() const; + ::EndKickPetitionMessage* release_endkickpetitionmessage(); + ::EndKickPetitionMessage* mutable_endkickpetitionmessage(); + void set_allocated_endkickpetitionmessage(::EndKickPetitionMessage* endkickpetitionmessage); + private: + const ::EndKickPetitionMessage& _internal_endkickpetitionmessage() const; + ::EndKickPetitionMessage* _internal_mutable_endkickpetitionmessage(); + public: + void unsafe_arena_set_allocated_endkickpetitionmessage( + ::EndKickPetitionMessage* endkickpetitionmessage); + ::EndKickPetitionMessage* unsafe_arena_release_endkickpetitionmessage(); // optional .StatisticsMessage statisticsMessage = 63; - inline bool has_statisticsmessage() const; - inline void clear_statisticsmessage(); - static const int kStatisticsMessageFieldNumber = 63; - inline const ::StatisticsMessage& statisticsmessage() const; - inline ::StatisticsMessage* mutable_statisticsmessage(); - inline ::StatisticsMessage* release_statisticsmessage(); - inline void set_allocated_statisticsmessage(::StatisticsMessage* statisticsmessage); + bool has_statisticsmessage() const; + private: + bool _internal_has_statisticsmessage() const; + public: + void clear_statisticsmessage(); + const ::StatisticsMessage& statisticsmessage() const; + ::StatisticsMessage* release_statisticsmessage(); + ::StatisticsMessage* mutable_statisticsmessage(); + void set_allocated_statisticsmessage(::StatisticsMessage* statisticsmessage); + private: + const ::StatisticsMessage& _internal_statisticsmessage() const; + ::StatisticsMessage* _internal_mutable_statisticsmessage(); + public: + void unsafe_arena_set_allocated_statisticsmessage( + ::StatisticsMessage* statisticsmessage); + ::StatisticsMessage* unsafe_arena_release_statisticsmessage(); // optional .ChatRequestMessage chatRequestMessage = 64; - inline bool has_chatrequestmessage() const; - inline void clear_chatrequestmessage(); - static const int kChatRequestMessageFieldNumber = 64; - inline const ::ChatRequestMessage& chatrequestmessage() const; - inline ::ChatRequestMessage* mutable_chatrequestmessage(); - inline ::ChatRequestMessage* release_chatrequestmessage(); - inline void set_allocated_chatrequestmessage(::ChatRequestMessage* chatrequestmessage); + bool has_chatrequestmessage() const; + private: + bool _internal_has_chatrequestmessage() const; + public: + void clear_chatrequestmessage(); + const ::ChatRequestMessage& chatrequestmessage() const; + ::ChatRequestMessage* release_chatrequestmessage(); + ::ChatRequestMessage* mutable_chatrequestmessage(); + void set_allocated_chatrequestmessage(::ChatRequestMessage* chatrequestmessage); + private: + const ::ChatRequestMessage& _internal_chatrequestmessage() const; + ::ChatRequestMessage* _internal_mutable_chatrequestmessage(); + public: + void unsafe_arena_set_allocated_chatrequestmessage( + ::ChatRequestMessage* chatrequestmessage); + ::ChatRequestMessage* unsafe_arena_release_chatrequestmessage(); // optional .ChatMessage chatMessage = 65; - inline bool has_chatmessage() const; - inline void clear_chatmessage(); - static const int kChatMessageFieldNumber = 65; - inline const ::ChatMessage& chatmessage() const; - inline ::ChatMessage* mutable_chatmessage(); - inline ::ChatMessage* release_chatmessage(); - inline void set_allocated_chatmessage(::ChatMessage* chatmessage); + bool has_chatmessage() const; + private: + bool _internal_has_chatmessage() const; + public: + void clear_chatmessage(); + const ::ChatMessage& chatmessage() const; + ::ChatMessage* release_chatmessage(); + ::ChatMessage* mutable_chatmessage(); + void set_allocated_chatmessage(::ChatMessage* chatmessage); + private: + const ::ChatMessage& _internal_chatmessage() const; + ::ChatMessage* _internal_mutable_chatmessage(); + public: + void unsafe_arena_set_allocated_chatmessage( + ::ChatMessage* chatmessage); + ::ChatMessage* unsafe_arena_release_chatmessage(); // optional .ChatRejectMessage chatRejectMessage = 66; - inline bool has_chatrejectmessage() const; - inline void clear_chatrejectmessage(); - static const int kChatRejectMessageFieldNumber = 66; - inline const ::ChatRejectMessage& chatrejectmessage() const; - inline ::ChatRejectMessage* mutable_chatrejectmessage(); - inline ::ChatRejectMessage* release_chatrejectmessage(); - inline void set_allocated_chatrejectmessage(::ChatRejectMessage* chatrejectmessage); + bool has_chatrejectmessage() const; + private: + bool _internal_has_chatrejectmessage() const; + public: + void clear_chatrejectmessage(); + const ::ChatRejectMessage& chatrejectmessage() const; + ::ChatRejectMessage* release_chatrejectmessage(); + ::ChatRejectMessage* mutable_chatrejectmessage(); + void set_allocated_chatrejectmessage(::ChatRejectMessage* chatrejectmessage); + private: + const ::ChatRejectMessage& _internal_chatrejectmessage() const; + ::ChatRejectMessage* _internal_mutable_chatrejectmessage(); + public: + void unsafe_arena_set_allocated_chatrejectmessage( + ::ChatRejectMessage* chatrejectmessage); + ::ChatRejectMessage* unsafe_arena_release_chatrejectmessage(); // optional .DialogMessage dialogMessage = 67; - inline bool has_dialogmessage() const; - inline void clear_dialogmessage(); - static const int kDialogMessageFieldNumber = 67; - inline const ::DialogMessage& dialogmessage() const; - inline ::DialogMessage* mutable_dialogmessage(); - inline ::DialogMessage* release_dialogmessage(); - inline void set_allocated_dialogmessage(::DialogMessage* dialogmessage); + bool has_dialogmessage() const; + private: + bool _internal_has_dialogmessage() const; + public: + void clear_dialogmessage(); + const ::DialogMessage& dialogmessage() const; + ::DialogMessage* release_dialogmessage(); + ::DialogMessage* mutable_dialogmessage(); + void set_allocated_dialogmessage(::DialogMessage* dialogmessage); + private: + const ::DialogMessage& _internal_dialogmessage() const; + ::DialogMessage* _internal_mutable_dialogmessage(); + public: + void unsafe_arena_set_allocated_dialogmessage( + ::DialogMessage* dialogmessage); + ::DialogMessage* unsafe_arena_release_dialogmessage(); // optional .TimeoutWarningMessage timeoutWarningMessage = 68; - inline bool has_timeoutwarningmessage() const; - inline void clear_timeoutwarningmessage(); - static const int kTimeoutWarningMessageFieldNumber = 68; - inline const ::TimeoutWarningMessage& timeoutwarningmessage() const; - inline ::TimeoutWarningMessage* mutable_timeoutwarningmessage(); - inline ::TimeoutWarningMessage* release_timeoutwarningmessage(); - inline void set_allocated_timeoutwarningmessage(::TimeoutWarningMessage* timeoutwarningmessage); + bool has_timeoutwarningmessage() const; + private: + bool _internal_has_timeoutwarningmessage() const; + public: + void clear_timeoutwarningmessage(); + const ::TimeoutWarningMessage& timeoutwarningmessage() const; + ::TimeoutWarningMessage* release_timeoutwarningmessage(); + ::TimeoutWarningMessage* mutable_timeoutwarningmessage(); + void set_allocated_timeoutwarningmessage(::TimeoutWarningMessage* timeoutwarningmessage); + private: + const ::TimeoutWarningMessage& _internal_timeoutwarningmessage() const; + ::TimeoutWarningMessage* _internal_mutable_timeoutwarningmessage(); + public: + void unsafe_arena_set_allocated_timeoutwarningmessage( + ::TimeoutWarningMessage* timeoutwarningmessage); + ::TimeoutWarningMessage* unsafe_arena_release_timeoutwarningmessage(); // optional .ResetTimeoutMessage resetTimeoutMessage = 69; - inline bool has_resettimeoutmessage() const; - inline void clear_resettimeoutmessage(); - static const int kResetTimeoutMessageFieldNumber = 69; - inline const ::ResetTimeoutMessage& resettimeoutmessage() const; - inline ::ResetTimeoutMessage* mutable_resettimeoutmessage(); - inline ::ResetTimeoutMessage* release_resettimeoutmessage(); - inline void set_allocated_resettimeoutmessage(::ResetTimeoutMessage* resettimeoutmessage); + bool has_resettimeoutmessage() const; + private: + bool _internal_has_resettimeoutmessage() const; + public: + void clear_resettimeoutmessage(); + const ::ResetTimeoutMessage& resettimeoutmessage() const; + ::ResetTimeoutMessage* release_resettimeoutmessage(); + ::ResetTimeoutMessage* mutable_resettimeoutmessage(); + void set_allocated_resettimeoutmessage(::ResetTimeoutMessage* resettimeoutmessage); + private: + const ::ResetTimeoutMessage& _internal_resettimeoutmessage() const; + ::ResetTimeoutMessage* _internal_mutable_resettimeoutmessage(); + public: + void unsafe_arena_set_allocated_resettimeoutmessage( + ::ResetTimeoutMessage* resettimeoutmessage); + ::ResetTimeoutMessage* unsafe_arena_release_resettimeoutmessage(); // optional .ReportAvatarMessage reportAvatarMessage = 70; - inline bool has_reportavatarmessage() const; - inline void clear_reportavatarmessage(); - static const int kReportAvatarMessageFieldNumber = 70; - inline const ::ReportAvatarMessage& reportavatarmessage() const; - inline ::ReportAvatarMessage* mutable_reportavatarmessage(); - inline ::ReportAvatarMessage* release_reportavatarmessage(); - inline void set_allocated_reportavatarmessage(::ReportAvatarMessage* reportavatarmessage); + bool has_reportavatarmessage() const; + private: + bool _internal_has_reportavatarmessage() const; + public: + void clear_reportavatarmessage(); + const ::ReportAvatarMessage& reportavatarmessage() const; + ::ReportAvatarMessage* release_reportavatarmessage(); + ::ReportAvatarMessage* mutable_reportavatarmessage(); + void set_allocated_reportavatarmessage(::ReportAvatarMessage* reportavatarmessage); + private: + const ::ReportAvatarMessage& _internal_reportavatarmessage() const; + ::ReportAvatarMessage* _internal_mutable_reportavatarmessage(); + public: + void unsafe_arena_set_allocated_reportavatarmessage( + ::ReportAvatarMessage* reportavatarmessage); + ::ReportAvatarMessage* unsafe_arena_release_reportavatarmessage(); // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - inline bool has_reportavatarackmessage() const; - inline void clear_reportavatarackmessage(); - static const int kReportAvatarAckMessageFieldNumber = 71; - inline const ::ReportAvatarAckMessage& reportavatarackmessage() const; - inline ::ReportAvatarAckMessage* mutable_reportavatarackmessage(); - inline ::ReportAvatarAckMessage* release_reportavatarackmessage(); - inline void set_allocated_reportavatarackmessage(::ReportAvatarAckMessage* reportavatarackmessage); + bool has_reportavatarackmessage() const; + private: + bool _internal_has_reportavatarackmessage() const; + public: + void clear_reportavatarackmessage(); + const ::ReportAvatarAckMessage& reportavatarackmessage() const; + ::ReportAvatarAckMessage* release_reportavatarackmessage(); + ::ReportAvatarAckMessage* mutable_reportavatarackmessage(); + void set_allocated_reportavatarackmessage(::ReportAvatarAckMessage* reportavatarackmessage); + private: + const ::ReportAvatarAckMessage& _internal_reportavatarackmessage() const; + ::ReportAvatarAckMessage* _internal_mutable_reportavatarackmessage(); + public: + void unsafe_arena_set_allocated_reportavatarackmessage( + ::ReportAvatarAckMessage* reportavatarackmessage); + ::ReportAvatarAckMessage* unsafe_arena_release_reportavatarackmessage(); // optional .ReportGameMessage reportGameMessage = 72; - inline bool has_reportgamemessage() const; - inline void clear_reportgamemessage(); - static const int kReportGameMessageFieldNumber = 72; - inline const ::ReportGameMessage& reportgamemessage() const; - inline ::ReportGameMessage* mutable_reportgamemessage(); - inline ::ReportGameMessage* release_reportgamemessage(); - inline void set_allocated_reportgamemessage(::ReportGameMessage* reportgamemessage); + bool has_reportgamemessage() const; + private: + bool _internal_has_reportgamemessage() const; + public: + void clear_reportgamemessage(); + const ::ReportGameMessage& reportgamemessage() const; + ::ReportGameMessage* release_reportgamemessage(); + ::ReportGameMessage* mutable_reportgamemessage(); + void set_allocated_reportgamemessage(::ReportGameMessage* reportgamemessage); + private: + const ::ReportGameMessage& _internal_reportgamemessage() const; + ::ReportGameMessage* _internal_mutable_reportgamemessage(); + public: + void unsafe_arena_set_allocated_reportgamemessage( + ::ReportGameMessage* reportgamemessage); + ::ReportGameMessage* unsafe_arena_release_reportgamemessage(); // optional .ReportGameAckMessage reportGameAckMessage = 73; - inline bool has_reportgameackmessage() const; - inline void clear_reportgameackmessage(); - static const int kReportGameAckMessageFieldNumber = 73; - inline const ::ReportGameAckMessage& reportgameackmessage() const; - inline ::ReportGameAckMessage* mutable_reportgameackmessage(); - inline ::ReportGameAckMessage* release_reportgameackmessage(); - inline void set_allocated_reportgameackmessage(::ReportGameAckMessage* reportgameackmessage); + bool has_reportgameackmessage() const; + private: + bool _internal_has_reportgameackmessage() const; + public: + void clear_reportgameackmessage(); + const ::ReportGameAckMessage& reportgameackmessage() const; + ::ReportGameAckMessage* release_reportgameackmessage(); + ::ReportGameAckMessage* mutable_reportgameackmessage(); + void set_allocated_reportgameackmessage(::ReportGameAckMessage* reportgameackmessage); + private: + const ::ReportGameAckMessage& _internal_reportgameackmessage() const; + ::ReportGameAckMessage* _internal_mutable_reportgameackmessage(); + public: + void unsafe_arena_set_allocated_reportgameackmessage( + ::ReportGameAckMessage* reportgameackmessage); + ::ReportGameAckMessage* unsafe_arena_release_reportgameackmessage(); // optional .ErrorMessage errorMessage = 74; - inline bool has_errormessage() const; - inline void clear_errormessage(); - static const int kErrorMessageFieldNumber = 74; - inline const ::ErrorMessage& errormessage() const; - inline ::ErrorMessage* mutable_errormessage(); - inline ::ErrorMessage* release_errormessage(); - inline void set_allocated_errormessage(::ErrorMessage* errormessage); + bool has_errormessage() const; + private: + bool _internal_has_errormessage() const; + public: + void clear_errormessage(); + const ::ErrorMessage& errormessage() const; + ::ErrorMessage* release_errormessage(); + ::ErrorMessage* mutable_errormessage(); + void set_allocated_errormessage(::ErrorMessage* errormessage); + private: + const ::ErrorMessage& _internal_errormessage() const; + ::ErrorMessage* _internal_mutable_errormessage(); + public: + void unsafe_arena_set_allocated_errormessage( + ::ErrorMessage* errormessage); + ::ErrorMessage* unsafe_arena_release_errormessage(); // optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - inline bool has_adminremovegamemessage() const; - inline void clear_adminremovegamemessage(); - static const int kAdminRemoveGameMessageFieldNumber = 75; - inline const ::AdminRemoveGameMessage& adminremovegamemessage() const; - inline ::AdminRemoveGameMessage* mutable_adminremovegamemessage(); - inline ::AdminRemoveGameMessage* release_adminremovegamemessage(); - inline void set_allocated_adminremovegamemessage(::AdminRemoveGameMessage* adminremovegamemessage); + bool has_adminremovegamemessage() const; + private: + bool _internal_has_adminremovegamemessage() const; + public: + void clear_adminremovegamemessage(); + const ::AdminRemoveGameMessage& adminremovegamemessage() const; + ::AdminRemoveGameMessage* release_adminremovegamemessage(); + ::AdminRemoveGameMessage* mutable_adminremovegamemessage(); + void set_allocated_adminremovegamemessage(::AdminRemoveGameMessage* adminremovegamemessage); + private: + const ::AdminRemoveGameMessage& _internal_adminremovegamemessage() const; + ::AdminRemoveGameMessage* _internal_mutable_adminremovegamemessage(); + public: + void unsafe_arena_set_allocated_adminremovegamemessage( + ::AdminRemoveGameMessage* adminremovegamemessage); + ::AdminRemoveGameMessage* unsafe_arena_release_adminremovegamemessage(); // optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - inline bool has_adminremovegameackmessage() const; - inline void clear_adminremovegameackmessage(); - static const int kAdminRemoveGameAckMessageFieldNumber = 76; - inline const ::AdminRemoveGameAckMessage& adminremovegameackmessage() const; - inline ::AdminRemoveGameAckMessage* mutable_adminremovegameackmessage(); - inline ::AdminRemoveGameAckMessage* release_adminremovegameackmessage(); - inline void set_allocated_adminremovegameackmessage(::AdminRemoveGameAckMessage* adminremovegameackmessage); + bool has_adminremovegameackmessage() const; + private: + bool _internal_has_adminremovegameackmessage() const; + public: + void clear_adminremovegameackmessage(); + const ::AdminRemoveGameAckMessage& adminremovegameackmessage() const; + ::AdminRemoveGameAckMessage* release_adminremovegameackmessage(); + ::AdminRemoveGameAckMessage* mutable_adminremovegameackmessage(); + void set_allocated_adminremovegameackmessage(::AdminRemoveGameAckMessage* adminremovegameackmessage); + private: + const ::AdminRemoveGameAckMessage& _internal_adminremovegameackmessage() const; + ::AdminRemoveGameAckMessage* _internal_mutable_adminremovegameackmessage(); + public: + void unsafe_arena_set_allocated_adminremovegameackmessage( + ::AdminRemoveGameAckMessage* adminremovegameackmessage); + ::AdminRemoveGameAckMessage* unsafe_arena_release_adminremovegameackmessage(); // optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - inline bool has_adminbanplayermessage() const; - inline void clear_adminbanplayermessage(); - static const int kAdminBanPlayerMessageFieldNumber = 77; - inline const ::AdminBanPlayerMessage& adminbanplayermessage() const; - inline ::AdminBanPlayerMessage* mutable_adminbanplayermessage(); - inline ::AdminBanPlayerMessage* release_adminbanplayermessage(); - inline void set_allocated_adminbanplayermessage(::AdminBanPlayerMessage* adminbanplayermessage); + bool has_adminbanplayermessage() const; + private: + bool _internal_has_adminbanplayermessage() const; + public: + void clear_adminbanplayermessage(); + const ::AdminBanPlayerMessage& adminbanplayermessage() const; + ::AdminBanPlayerMessage* release_adminbanplayermessage(); + ::AdminBanPlayerMessage* mutable_adminbanplayermessage(); + void set_allocated_adminbanplayermessage(::AdminBanPlayerMessage* adminbanplayermessage); + private: + const ::AdminBanPlayerMessage& _internal_adminbanplayermessage() const; + ::AdminBanPlayerMessage* _internal_mutable_adminbanplayermessage(); + public: + void unsafe_arena_set_allocated_adminbanplayermessage( + ::AdminBanPlayerMessage* adminbanplayermessage); + ::AdminBanPlayerMessage* unsafe_arena_release_adminbanplayermessage(); // optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - inline bool has_adminbanplayerackmessage() const; - inline void clear_adminbanplayerackmessage(); - static const int kAdminBanPlayerAckMessageFieldNumber = 78; - inline const ::AdminBanPlayerAckMessage& adminbanplayerackmessage() const; - inline ::AdminBanPlayerAckMessage* mutable_adminbanplayerackmessage(); - inline ::AdminBanPlayerAckMessage* release_adminbanplayerackmessage(); - inline void set_allocated_adminbanplayerackmessage(::AdminBanPlayerAckMessage* adminbanplayerackmessage); + bool has_adminbanplayerackmessage() const; + private: + bool _internal_has_adminbanplayerackmessage() const; + public: + void clear_adminbanplayerackmessage(); + const ::AdminBanPlayerAckMessage& adminbanplayerackmessage() const; + ::AdminBanPlayerAckMessage* release_adminbanplayerackmessage(); + ::AdminBanPlayerAckMessage* mutable_adminbanplayerackmessage(); + void set_allocated_adminbanplayerackmessage(::AdminBanPlayerAckMessage* adminbanplayerackmessage); + private: + const ::AdminBanPlayerAckMessage& _internal_adminbanplayerackmessage() const; + ::AdminBanPlayerAckMessage* _internal_mutable_adminbanplayerackmessage(); + public: + void unsafe_arena_set_allocated_adminbanplayerackmessage( + ::AdminBanPlayerAckMessage* adminbanplayerackmessage); + ::AdminBanPlayerAckMessage* unsafe_arena_release_adminbanplayerackmessage(); // optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - inline bool has_gamelistspectatorjoinedmessage() const; - inline void clear_gamelistspectatorjoinedmessage(); - static const int kGameListSpectatorJoinedMessageFieldNumber = 79; - inline const ::GameListSpectatorJoinedMessage& gamelistspectatorjoinedmessage() const; - inline ::GameListSpectatorJoinedMessage* mutable_gamelistspectatorjoinedmessage(); - inline ::GameListSpectatorJoinedMessage* release_gamelistspectatorjoinedmessage(); - inline void set_allocated_gamelistspectatorjoinedmessage(::GameListSpectatorJoinedMessage* gamelistspectatorjoinedmessage); + bool has_gamelistspectatorjoinedmessage() const; + private: + bool _internal_has_gamelistspectatorjoinedmessage() const; + public: + void clear_gamelistspectatorjoinedmessage(); + const ::GameListSpectatorJoinedMessage& gamelistspectatorjoinedmessage() const; + ::GameListSpectatorJoinedMessage* release_gamelistspectatorjoinedmessage(); + ::GameListSpectatorJoinedMessage* mutable_gamelistspectatorjoinedmessage(); + void set_allocated_gamelistspectatorjoinedmessage(::GameListSpectatorJoinedMessage* gamelistspectatorjoinedmessage); + private: + const ::GameListSpectatorJoinedMessage& _internal_gamelistspectatorjoinedmessage() const; + ::GameListSpectatorJoinedMessage* _internal_mutable_gamelistspectatorjoinedmessage(); + public: + void unsafe_arena_set_allocated_gamelistspectatorjoinedmessage( + ::GameListSpectatorJoinedMessage* gamelistspectatorjoinedmessage); + ::GameListSpectatorJoinedMessage* unsafe_arena_release_gamelistspectatorjoinedmessage(); // optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - inline bool has_gamelistspectatorleftmessage() const; - inline void clear_gamelistspectatorleftmessage(); - static const int kGameListSpectatorLeftMessageFieldNumber = 80; - inline const ::GameListSpectatorLeftMessage& gamelistspectatorleftmessage() const; - inline ::GameListSpectatorLeftMessage* mutable_gamelistspectatorleftmessage(); - inline ::GameListSpectatorLeftMessage* release_gamelistspectatorleftmessage(); - inline void set_allocated_gamelistspectatorleftmessage(::GameListSpectatorLeftMessage* gamelistspectatorleftmessage); + bool has_gamelistspectatorleftmessage() const; + private: + bool _internal_has_gamelistspectatorleftmessage() const; + public: + void clear_gamelistspectatorleftmessage(); + const ::GameListSpectatorLeftMessage& gamelistspectatorleftmessage() const; + ::GameListSpectatorLeftMessage* release_gamelistspectatorleftmessage(); + ::GameListSpectatorLeftMessage* mutable_gamelistspectatorleftmessage(); + void set_allocated_gamelistspectatorleftmessage(::GameListSpectatorLeftMessage* gamelistspectatorleftmessage); + private: + const ::GameListSpectatorLeftMessage& _internal_gamelistspectatorleftmessage() const; + ::GameListSpectatorLeftMessage* _internal_mutable_gamelistspectatorleftmessage(); + public: + void unsafe_arena_set_allocated_gamelistspectatorleftmessage( + ::GameListSpectatorLeftMessage* gamelistspectatorleftmessage); + ::GameListSpectatorLeftMessage* unsafe_arena_release_gamelistspectatorleftmessage(); // optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - inline bool has_gamespectatorjoinedmessage() const; - inline void clear_gamespectatorjoinedmessage(); - static const int kGameSpectatorJoinedMessageFieldNumber = 81; - inline const ::GameSpectatorJoinedMessage& gamespectatorjoinedmessage() const; - inline ::GameSpectatorJoinedMessage* mutable_gamespectatorjoinedmessage(); - inline ::GameSpectatorJoinedMessage* release_gamespectatorjoinedmessage(); - inline void set_allocated_gamespectatorjoinedmessage(::GameSpectatorJoinedMessage* gamespectatorjoinedmessage); + bool has_gamespectatorjoinedmessage() const; + private: + bool _internal_has_gamespectatorjoinedmessage() const; + public: + void clear_gamespectatorjoinedmessage(); + const ::GameSpectatorJoinedMessage& gamespectatorjoinedmessage() const; + ::GameSpectatorJoinedMessage* release_gamespectatorjoinedmessage(); + ::GameSpectatorJoinedMessage* mutable_gamespectatorjoinedmessage(); + void set_allocated_gamespectatorjoinedmessage(::GameSpectatorJoinedMessage* gamespectatorjoinedmessage); + private: + const ::GameSpectatorJoinedMessage& _internal_gamespectatorjoinedmessage() const; + ::GameSpectatorJoinedMessage* _internal_mutable_gamespectatorjoinedmessage(); + public: + void unsafe_arena_set_allocated_gamespectatorjoinedmessage( + ::GameSpectatorJoinedMessage* gamespectatorjoinedmessage); + ::GameSpectatorJoinedMessage* unsafe_arena_release_gamespectatorjoinedmessage(); // optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - inline bool has_gamespectatorleftmessage() const; - inline void clear_gamespectatorleftmessage(); - static const int kGameSpectatorLeftMessageFieldNumber = 82; - inline const ::GameSpectatorLeftMessage& gamespectatorleftmessage() const; - inline ::GameSpectatorLeftMessage* mutable_gamespectatorleftmessage(); - inline ::GameSpectatorLeftMessage* release_gamespectatorleftmessage(); - inline void set_allocated_gamespectatorleftmessage(::GameSpectatorLeftMessage* gamespectatorleftmessage); + bool has_gamespectatorleftmessage() const; + private: + bool _internal_has_gamespectatorleftmessage() const; + public: + void clear_gamespectatorleftmessage(); + const ::GameSpectatorLeftMessage& gamespectatorleftmessage() const; + ::GameSpectatorLeftMessage* release_gamespectatorleftmessage(); + ::GameSpectatorLeftMessage* mutable_gamespectatorleftmessage(); + void set_allocated_gamespectatorleftmessage(::GameSpectatorLeftMessage* gamespectatorleftmessage); + private: + const ::GameSpectatorLeftMessage& _internal_gamespectatorleftmessage() const; + ::GameSpectatorLeftMessage* _internal_mutable_gamespectatorleftmessage(); + public: + void unsafe_arena_set_allocated_gamespectatorleftmessage( + ::GameSpectatorLeftMessage* gamespectatorleftmessage); + ::GameSpectatorLeftMessage* unsafe_arena_release_gamespectatorleftmessage(); + + // required .PokerTHMessage.PokerTHMessageType messageType = 1; + bool has_messagetype() const; + private: + bool _internal_has_messagetype() const; + public: + void clear_messagetype(); + ::PokerTHMessage_PokerTHMessageType messagetype() const; + void set_messagetype(::PokerTHMessage_PokerTHMessageType value); + private: + ::PokerTHMessage_PokerTHMessageType _internal_messagetype() const; + void _internal_set_messagetype(::PokerTHMessage_PokerTHMessageType value); + public: // optional .GameStartReentryMessage gameStartReentryMessage = 83; inline bool has_gamestartreentrymessage() const; @@ -11315,173 +18905,13 @@ class PokerTHMessage : public ::google::protobuf::MessageLite { // @@protoc_insertion_point(class_scope:PokerTHMessage) private: - inline void set_has_messagetype(); - inline void clear_has_messagetype(); - inline void set_has_announcemessage(); - inline void clear_has_announcemessage(); - inline void set_has_initmessage(); - inline void clear_has_initmessage(); - inline void set_has_authserverchallengemessage(); - inline void clear_has_authserverchallengemessage(); - inline void set_has_authclientresponsemessage(); - inline void clear_has_authclientresponsemessage(); - inline void set_has_authserververificationmessage(); - inline void clear_has_authserververificationmessage(); - inline void set_has_initackmessage(); - inline void clear_has_initackmessage(); - inline void set_has_avatarrequestmessage(); - inline void clear_has_avatarrequestmessage(); - inline void set_has_avatarheadermessage(); - inline void clear_has_avatarheadermessage(); - inline void set_has_avatardatamessage(); - inline void clear_has_avatardatamessage(); - inline void set_has_avatarendmessage(); - inline void clear_has_avatarendmessage(); - inline void set_has_unknownavatarmessage(); - inline void clear_has_unknownavatarmessage(); - inline void set_has_playerlistmessage(); - inline void clear_has_playerlistmessage(); - inline void set_has_gamelistnewmessage(); - inline void clear_has_gamelistnewmessage(); - inline void set_has_gamelistupdatemessage(); - inline void clear_has_gamelistupdatemessage(); - inline void set_has_gamelistplayerjoinedmessage(); - inline void clear_has_gamelistplayerjoinedmessage(); - inline void set_has_gamelistplayerleftmessage(); - inline void clear_has_gamelistplayerleftmessage(); - inline void set_has_gamelistadminchangedmessage(); - inline void clear_has_gamelistadminchangedmessage(); - inline void set_has_playerinforequestmessage(); - inline void clear_has_playerinforequestmessage(); - inline void set_has_playerinforeplymessage(); - inline void clear_has_playerinforeplymessage(); - inline void set_has_subscriptionrequestmessage(); - inline void clear_has_subscriptionrequestmessage(); - inline void set_has_joinexistinggamemessage(); - inline void clear_has_joinexistinggamemessage(); - inline void set_has_joinnewgamemessage(); - inline void clear_has_joinnewgamemessage(); - inline void set_has_rejoinexistinggamemessage(); - inline void clear_has_rejoinexistinggamemessage(); - inline void set_has_joingameackmessage(); - inline void clear_has_joingameackmessage(); - inline void set_has_joingamefailedmessage(); - inline void clear_has_joingamefailedmessage(); - inline void set_has_gameplayerjoinedmessage(); - inline void clear_has_gameplayerjoinedmessage(); - inline void set_has_gameplayerleftmessage(); - inline void clear_has_gameplayerleftmessage(); - inline void set_has_gameadminchangedmessage(); - inline void clear_has_gameadminchangedmessage(); - inline void set_has_removedfromgamemessage(); - inline void clear_has_removedfromgamemessage(); - inline void set_has_kickplayerrequestmessage(); - inline void clear_has_kickplayerrequestmessage(); - inline void set_has_leavegamerequestmessage(); - inline void clear_has_leavegamerequestmessage(); - inline void set_has_inviteplayertogamemessage(); - inline void clear_has_inviteplayertogamemessage(); - inline void set_has_invitenotifymessage(); - inline void clear_has_invitenotifymessage(); - inline void set_has_rejectgameinvitationmessage(); - inline void clear_has_rejectgameinvitationmessage(); - inline void set_has_rejectinvnotifymessage(); - inline void clear_has_rejectinvnotifymessage(); - inline void set_has_starteventmessage(); - inline void clear_has_starteventmessage(); - inline void set_has_starteventackmessage(); - inline void clear_has_starteventackmessage(); - inline void set_has_gamestartinitialmessage(); - inline void clear_has_gamestartinitialmessage(); - inline void set_has_gamestartrejoinmessage(); - inline void clear_has_gamestartrejoinmessage(); - inline void set_has_handstartmessage(); - inline void clear_has_handstartmessage(); - inline void set_has_playersturnmessage(); - inline void clear_has_playersturnmessage(); - inline void set_has_myactionrequestmessage(); - inline void clear_has_myactionrequestmessage(); - inline void set_has_youractionrejectedmessage(); - inline void clear_has_youractionrejectedmessage(); - inline void set_has_playersactiondonemessage(); - inline void clear_has_playersactiondonemessage(); - inline void set_has_dealflopcardsmessage(); - inline void clear_has_dealflopcardsmessage(); - inline void set_has_dealturncardmessage(); - inline void clear_has_dealturncardmessage(); - inline void set_has_dealrivercardmessage(); - inline void clear_has_dealrivercardmessage(); - inline void set_has_allinshowcardsmessage(); - inline void clear_has_allinshowcardsmessage(); - inline void set_has_endofhandshowcardsmessage(); - inline void clear_has_endofhandshowcardsmessage(); - inline void set_has_endofhandhidecardsmessage(); - inline void clear_has_endofhandhidecardsmessage(); - inline void set_has_showmycardsrequestmessage(); - inline void clear_has_showmycardsrequestmessage(); - inline void set_has_afterhandshowcardsmessage(); - inline void clear_has_afterhandshowcardsmessage(); - inline void set_has_endofgamemessage(); - inline void clear_has_endofgamemessage(); - inline void set_has_playeridchangedmessage(); - inline void clear_has_playeridchangedmessage(); - inline void set_has_askkickplayermessage(); - inline void clear_has_askkickplayermessage(); - inline void set_has_askkickdeniedmessage(); - inline void clear_has_askkickdeniedmessage(); - inline void set_has_startkickpetitionmessage(); - inline void clear_has_startkickpetitionmessage(); - inline void set_has_votekickrequestmessage(); - inline void clear_has_votekickrequestmessage(); - inline void set_has_votekickreplymessage(); - inline void clear_has_votekickreplymessage(); - inline void set_has_kickpetitionupdatemessage(); - inline void clear_has_kickpetitionupdatemessage(); - inline void set_has_endkickpetitionmessage(); - inline void clear_has_endkickpetitionmessage(); - inline void set_has_statisticsmessage(); - inline void clear_has_statisticsmessage(); - inline void set_has_chatrequestmessage(); - inline void clear_has_chatrequestmessage(); - inline void set_has_chatmessage(); - inline void clear_has_chatmessage(); - inline void set_has_chatrejectmessage(); - inline void clear_has_chatrejectmessage(); - inline void set_has_dialogmessage(); - inline void clear_has_dialogmessage(); - inline void set_has_timeoutwarningmessage(); - inline void clear_has_timeoutwarningmessage(); - inline void set_has_resettimeoutmessage(); - inline void clear_has_resettimeoutmessage(); - inline void set_has_reportavatarmessage(); - inline void clear_has_reportavatarmessage(); - inline void set_has_reportavatarackmessage(); - inline void clear_has_reportavatarackmessage(); - inline void set_has_reportgamemessage(); - inline void clear_has_reportgamemessage(); - inline void set_has_reportgameackmessage(); - inline void clear_has_reportgameackmessage(); - inline void set_has_errormessage(); - inline void clear_has_errormessage(); - inline void set_has_adminremovegamemessage(); - inline void clear_has_adminremovegamemessage(); - inline void set_has_adminremovegameackmessage(); - inline void clear_has_adminremovegameackmessage(); - inline void set_has_adminbanplayermessage(); - inline void clear_has_adminbanplayermessage(); - inline void set_has_adminbanplayerackmessage(); - inline void clear_has_adminbanplayerackmessage(); - inline void set_has_gamelistspectatorjoinedmessage(); - inline void clear_has_gamelistspectatorjoinedmessage(); - inline void set_has_gamelistspectatorleftmessage(); - inline void clear_has_gamelistspectatorleftmessage(); - inline void set_has_gamespectatorjoinedmessage(); - inline void clear_has_gamespectatorjoinedmessage(); - inline void set_has_gamespectatorleftmessage(); - inline void clear_has_gamespectatorleftmessage(); - inline void set_has_gamestartreentrymessage(); - inline void clear_has_gamestartreentrymessage(); + class _Internal; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<3> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::AnnounceMessage* announcemessage_; ::InitMessage* initmessage_; ::AuthServerChallengeMessage* authserverchallengemessage_; @@ -11565,498 +18995,523 @@ class PokerTHMessage : public ::google::protobuf::MessageLite { ::GameSpectatorLeftMessage* gamespectatorleftmessage_; ::GameStartReentryMessage* gamestartreentrymessage_; int messagetype_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(83 + 31) / 32]; - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static PokerTHMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // =================================================================== // =================================================================== +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ // NetGameInfo // required string gameName = 1; +inline bool NetGameInfo::_internal_has_gamename() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool NetGameInfo::has_gamename() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void NetGameInfo::set_has_gamename() { - _has_bits_[0] |= 0x00000001u; -} -inline void NetGameInfo::clear_has_gamename() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gamename(); } inline void NetGameInfo::clear_gamename() { - if (gamename_ != &::google::protobuf::internal::kEmptyString) { - gamename_->clear(); - } - clear_has_gamename(); + gamename_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& NetGameInfo::gamename() const { - return *gamename_; +inline const std::string& NetGameInfo::gamename() const { + // @@protoc_insertion_point(field_get:NetGameInfo.gameName) + return _internal_gamename(); } -inline void NetGameInfo::set_gamename(const ::std::string& value) { - set_has_gamename(); - if (gamename_ == &::google::protobuf::internal::kEmptyString) { - gamename_ = new ::std::string; - } - gamename_->assign(value); +inline void NetGameInfo::set_gamename(const std::string& value) { + _internal_set_gamename(value); + // @@protoc_insertion_point(field_set:NetGameInfo.gameName) +} +inline std::string* NetGameInfo::mutable_gamename() { + // @@protoc_insertion_point(field_mutable:NetGameInfo.gameName) + return _internal_mutable_gamename(); +} +inline const std::string& NetGameInfo::_internal_gamename() const { + return gamename_.Get(); +} +inline void NetGameInfo::_internal_set_gamename(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + gamename_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void NetGameInfo::set_gamename(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + gamename_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:NetGameInfo.gameName) } inline void NetGameInfo::set_gamename(const char* value) { - set_has_gamename(); - if (gamename_ == &::google::protobuf::internal::kEmptyString) { - gamename_ = new ::std::string; - } - gamename_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + gamename_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:NetGameInfo.gameName) } -inline void NetGameInfo::set_gamename(const char* value, size_t size) { - set_has_gamename(); - if (gamename_ == &::google::protobuf::internal::kEmptyString) { - gamename_ = new ::std::string; - } - gamename_->assign(reinterpret_cast(value), size); +inline void NetGameInfo::set_gamename(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + gamename_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:NetGameInfo.gameName) } -inline ::std::string* NetGameInfo::mutable_gamename() { - set_has_gamename(); - if (gamename_ == &::google::protobuf::internal::kEmptyString) { - gamename_ = new ::std::string; - } - return gamename_; +inline std::string* NetGameInfo::_internal_mutable_gamename() { + _has_bits_[0] |= 0x00000001u; + return gamename_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* NetGameInfo::release_gamename() { - clear_has_gamename(); - if (gamename_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* NetGameInfo::release_gamename() { + // @@protoc_insertion_point(field_release:NetGameInfo.gameName) + if (!_internal_has_gamename()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return gamename_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void NetGameInfo::set_allocated_gamename(std::string* gamename) { + if (gamename != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = gamename_; - gamename_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + gamename_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), gamename, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:NetGameInfo.gameName) } -inline void NetGameInfo::set_allocated_gamename(::std::string* gamename) { - if (gamename_ != &::google::protobuf::internal::kEmptyString) { - delete gamename_; - } - if (gamename) { - set_has_gamename(); - gamename_ = gamename; +inline std::string* NetGameInfo::unsafe_arena_release_gamename() { + // @@protoc_insertion_point(field_unsafe_arena_release:NetGameInfo.gameName) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return gamename_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void NetGameInfo::unsafe_arena_set_allocated_gamename( + std::string* gamename) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (gamename != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_gamename(); - gamename_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + gamename_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + gamename, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:NetGameInfo.gameName) } // required .NetGameInfo.NetGameType netGameType = 2; +inline bool NetGameInfo::_internal_has_netgametype() const { + bool value = (_has_bits_[0] & 0x00000400u) != 0; + return value; +} inline bool NetGameInfo::has_netgametype() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void NetGameInfo::set_has_netgametype() { - _has_bits_[0] |= 0x00000002u; -} -inline void NetGameInfo::clear_has_netgametype() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_netgametype(); } inline void NetGameInfo::clear_netgametype() { netgametype_ = 1; - clear_has_netgametype(); + _has_bits_[0] &= ~0x00000400u; } -inline ::NetGameInfo_NetGameType NetGameInfo::netgametype() const { +inline ::NetGameInfo_NetGameType NetGameInfo::_internal_netgametype() const { return static_cast< ::NetGameInfo_NetGameType >(netgametype_); } -inline void NetGameInfo::set_netgametype(::NetGameInfo_NetGameType value) { +inline ::NetGameInfo_NetGameType NetGameInfo::netgametype() const { + // @@protoc_insertion_point(field_get:NetGameInfo.netGameType) + return _internal_netgametype(); +} +inline void NetGameInfo::_internal_set_netgametype(::NetGameInfo_NetGameType value) { assert(::NetGameInfo_NetGameType_IsValid(value)); - set_has_netgametype(); + _has_bits_[0] |= 0x00000400u; netgametype_ = value; } +inline void NetGameInfo::set_netgametype(::NetGameInfo_NetGameType value) { + _internal_set_netgametype(value); + // @@protoc_insertion_point(field_set:NetGameInfo.netGameType) +} // required uint32 maxNumPlayers = 3; +inline bool NetGameInfo::_internal_has_maxnumplayers() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool NetGameInfo::has_maxnumplayers() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void NetGameInfo::set_has_maxnumplayers() { - _has_bits_[0] |= 0x00000004u; -} -inline void NetGameInfo::clear_has_maxnumplayers() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_maxnumplayers(); } inline void NetGameInfo::clear_maxnumplayers() { maxnumplayers_ = 0u; - clear_has_maxnumplayers(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 NetGameInfo::maxnumplayers() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 NetGameInfo::_internal_maxnumplayers() const { return maxnumplayers_; } -inline void NetGameInfo::set_maxnumplayers(::google::protobuf::uint32 value) { - set_has_maxnumplayers(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 NetGameInfo::maxnumplayers() const { + // @@protoc_insertion_point(field_get:NetGameInfo.maxNumPlayers) + return _internal_maxnumplayers(); +} +inline void NetGameInfo::_internal_set_maxnumplayers(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; maxnumplayers_ = value; } +inline void NetGameInfo::set_maxnumplayers(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_maxnumplayers(value); + // @@protoc_insertion_point(field_set:NetGameInfo.maxNumPlayers) +} // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; +inline bool NetGameInfo::_internal_has_raiseintervalmode() const { + bool value = (_has_bits_[0] & 0x00000800u) != 0; + return value; +} inline bool NetGameInfo::has_raiseintervalmode() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void NetGameInfo::set_has_raiseintervalmode() { - _has_bits_[0] |= 0x00000008u; -} -inline void NetGameInfo::clear_has_raiseintervalmode() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_raiseintervalmode(); } inline void NetGameInfo::clear_raiseintervalmode() { raiseintervalmode_ = 1; - clear_has_raiseintervalmode(); + _has_bits_[0] &= ~0x00000800u; } -inline ::NetGameInfo_RaiseIntervalMode NetGameInfo::raiseintervalmode() const { +inline ::NetGameInfo_RaiseIntervalMode NetGameInfo::_internal_raiseintervalmode() const { return static_cast< ::NetGameInfo_RaiseIntervalMode >(raiseintervalmode_); } -inline void NetGameInfo::set_raiseintervalmode(::NetGameInfo_RaiseIntervalMode value) { +inline ::NetGameInfo_RaiseIntervalMode NetGameInfo::raiseintervalmode() const { + // @@protoc_insertion_point(field_get:NetGameInfo.raiseIntervalMode) + return _internal_raiseintervalmode(); +} +inline void NetGameInfo::_internal_set_raiseintervalmode(::NetGameInfo_RaiseIntervalMode value) { assert(::NetGameInfo_RaiseIntervalMode_IsValid(value)); - set_has_raiseintervalmode(); + _has_bits_[0] |= 0x00000800u; raiseintervalmode_ = value; } +inline void NetGameInfo::set_raiseintervalmode(::NetGameInfo_RaiseIntervalMode value) { + _internal_set_raiseintervalmode(value); + // @@protoc_insertion_point(field_set:NetGameInfo.raiseIntervalMode) +} // optional uint32 raiseEveryHands = 5; +inline bool NetGameInfo::_internal_has_raiseeveryhands() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool NetGameInfo::has_raiseeveryhands() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void NetGameInfo::set_has_raiseeveryhands() { - _has_bits_[0] |= 0x00000010u; -} -inline void NetGameInfo::clear_has_raiseeveryhands() { - _has_bits_[0] &= ~0x00000010u; + return _internal_has_raiseeveryhands(); } inline void NetGameInfo::clear_raiseeveryhands() { raiseeveryhands_ = 0u; - clear_has_raiseeveryhands(); + _has_bits_[0] &= ~0x00000004u; } -inline ::google::protobuf::uint32 NetGameInfo::raiseeveryhands() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 NetGameInfo::_internal_raiseeveryhands() const { return raiseeveryhands_; } -inline void NetGameInfo::set_raiseeveryhands(::google::protobuf::uint32 value) { - set_has_raiseeveryhands(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 NetGameInfo::raiseeveryhands() const { + // @@protoc_insertion_point(field_get:NetGameInfo.raiseEveryHands) + return _internal_raiseeveryhands(); +} +inline void NetGameInfo::_internal_set_raiseeveryhands(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000004u; raiseeveryhands_ = value; } +inline void NetGameInfo::set_raiseeveryhands(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_raiseeveryhands(value); + // @@protoc_insertion_point(field_set:NetGameInfo.raiseEveryHands) +} // optional uint32 raiseEveryMinutes = 6; +inline bool NetGameInfo::_internal_has_raiseeveryminutes() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool NetGameInfo::has_raiseeveryminutes() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void NetGameInfo::set_has_raiseeveryminutes() { - _has_bits_[0] |= 0x00000020u; -} -inline void NetGameInfo::clear_has_raiseeveryminutes() { - _has_bits_[0] &= ~0x00000020u; + return _internal_has_raiseeveryminutes(); } inline void NetGameInfo::clear_raiseeveryminutes() { raiseeveryminutes_ = 0u; - clear_has_raiseeveryminutes(); + _has_bits_[0] &= ~0x00000008u; } -inline ::google::protobuf::uint32 NetGameInfo::raiseeveryminutes() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 NetGameInfo::_internal_raiseeveryminutes() const { return raiseeveryminutes_; } -inline void NetGameInfo::set_raiseeveryminutes(::google::protobuf::uint32 value) { - set_has_raiseeveryminutes(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 NetGameInfo::raiseeveryminutes() const { + // @@protoc_insertion_point(field_get:NetGameInfo.raiseEveryMinutes) + return _internal_raiseeveryminutes(); +} +inline void NetGameInfo::_internal_set_raiseeveryminutes(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000008u; raiseeveryminutes_ = value; } +inline void NetGameInfo::set_raiseeveryminutes(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_raiseeveryminutes(value); + // @@protoc_insertion_point(field_set:NetGameInfo.raiseEveryMinutes) +} // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; +inline bool NetGameInfo::_internal_has_endraisemode() const { + bool value = (_has_bits_[0] & 0x00001000u) != 0; + return value; +} inline bool NetGameInfo::has_endraisemode() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void NetGameInfo::set_has_endraisemode() { - _has_bits_[0] |= 0x00000040u; -} -inline void NetGameInfo::clear_has_endraisemode() { - _has_bits_[0] &= ~0x00000040u; + return _internal_has_endraisemode(); } inline void NetGameInfo::clear_endraisemode() { endraisemode_ = 1; - clear_has_endraisemode(); + _has_bits_[0] &= ~0x00001000u; } -inline ::NetGameInfo_EndRaiseMode NetGameInfo::endraisemode() const { +inline ::NetGameInfo_EndRaiseMode NetGameInfo::_internal_endraisemode() const { return static_cast< ::NetGameInfo_EndRaiseMode >(endraisemode_); } -inline void NetGameInfo::set_endraisemode(::NetGameInfo_EndRaiseMode value) { +inline ::NetGameInfo_EndRaiseMode NetGameInfo::endraisemode() const { + // @@protoc_insertion_point(field_get:NetGameInfo.endRaiseMode) + return _internal_endraisemode(); +} +inline void NetGameInfo::_internal_set_endraisemode(::NetGameInfo_EndRaiseMode value) { assert(::NetGameInfo_EndRaiseMode_IsValid(value)); - set_has_endraisemode(); + _has_bits_[0] |= 0x00001000u; endraisemode_ = value; } +inline void NetGameInfo::set_endraisemode(::NetGameInfo_EndRaiseMode value) { + _internal_set_endraisemode(value); + // @@protoc_insertion_point(field_set:NetGameInfo.endRaiseMode) +} // optional uint32 endRaiseSmallBlindValue = 8; +inline bool NetGameInfo::_internal_has_endraisesmallblindvalue() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} inline bool NetGameInfo::has_endraisesmallblindvalue() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -inline void NetGameInfo::set_has_endraisesmallblindvalue() { - _has_bits_[0] |= 0x00000080u; -} -inline void NetGameInfo::clear_has_endraisesmallblindvalue() { - _has_bits_[0] &= ~0x00000080u; + return _internal_has_endraisesmallblindvalue(); } inline void NetGameInfo::clear_endraisesmallblindvalue() { endraisesmallblindvalue_ = 0u; - clear_has_endraisesmallblindvalue(); + _has_bits_[0] &= ~0x00000010u; } -inline ::google::protobuf::uint32 NetGameInfo::endraisesmallblindvalue() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 NetGameInfo::_internal_endraisesmallblindvalue() const { return endraisesmallblindvalue_; } -inline void NetGameInfo::set_endraisesmallblindvalue(::google::protobuf::uint32 value) { - set_has_endraisesmallblindvalue(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 NetGameInfo::endraisesmallblindvalue() const { + // @@protoc_insertion_point(field_get:NetGameInfo.endRaiseSmallBlindValue) + return _internal_endraisesmallblindvalue(); +} +inline void NetGameInfo::_internal_set_endraisesmallblindvalue(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000010u; endraisesmallblindvalue_ = value; } +inline void NetGameInfo::set_endraisesmallblindvalue(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_endraisesmallblindvalue(value); + // @@protoc_insertion_point(field_set:NetGameInfo.endRaiseSmallBlindValue) +} // required uint32 proposedGuiSpeed = 9; +inline bool NetGameInfo::_internal_has_proposedguispeed() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} inline bool NetGameInfo::has_proposedguispeed() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -inline void NetGameInfo::set_has_proposedguispeed() { - _has_bits_[0] |= 0x00000100u; -} -inline void NetGameInfo::clear_has_proposedguispeed() { - _has_bits_[0] &= ~0x00000100u; + return _internal_has_proposedguispeed(); } inline void NetGameInfo::clear_proposedguispeed() { proposedguispeed_ = 0u; - clear_has_proposedguispeed(); + _has_bits_[0] &= ~0x00000020u; } -inline ::google::protobuf::uint32 NetGameInfo::proposedguispeed() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 NetGameInfo::_internal_proposedguispeed() const { return proposedguispeed_; } -inline void NetGameInfo::set_proposedguispeed(::google::protobuf::uint32 value) { - set_has_proposedguispeed(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 NetGameInfo::proposedguispeed() const { + // @@protoc_insertion_point(field_get:NetGameInfo.proposedGuiSpeed) + return _internal_proposedguispeed(); +} +inline void NetGameInfo::_internal_set_proposedguispeed(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000020u; proposedguispeed_ = value; } +inline void NetGameInfo::set_proposedguispeed(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_proposedguispeed(value); + // @@protoc_insertion_point(field_set:NetGameInfo.proposedGuiSpeed) +} // required uint32 delayBetweenHands = 10; +inline bool NetGameInfo::_internal_has_delaybetweenhands() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} inline bool NetGameInfo::has_delaybetweenhands() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -inline void NetGameInfo::set_has_delaybetweenhands() { - _has_bits_[0] |= 0x00000200u; -} -inline void NetGameInfo::clear_has_delaybetweenhands() { - _has_bits_[0] &= ~0x00000200u; + return _internal_has_delaybetweenhands(); } inline void NetGameInfo::clear_delaybetweenhands() { delaybetweenhands_ = 0u; - clear_has_delaybetweenhands(); + _has_bits_[0] &= ~0x00000040u; } -inline ::google::protobuf::uint32 NetGameInfo::delaybetweenhands() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 NetGameInfo::_internal_delaybetweenhands() const { return delaybetweenhands_; } -inline void NetGameInfo::set_delaybetweenhands(::google::protobuf::uint32 value) { - set_has_delaybetweenhands(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 NetGameInfo::delaybetweenhands() const { + // @@protoc_insertion_point(field_get:NetGameInfo.delayBetweenHands) + return _internal_delaybetweenhands(); +} +inline void NetGameInfo::_internal_set_delaybetweenhands(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000040u; delaybetweenhands_ = value; } +inline void NetGameInfo::set_delaybetweenhands(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_delaybetweenhands(value); + // @@protoc_insertion_point(field_set:NetGameInfo.delayBetweenHands) +} // required uint32 playerActionTimeout = 11; +inline bool NetGameInfo::_internal_has_playeractiontimeout() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + return value; +} inline bool NetGameInfo::has_playeractiontimeout() const { - return (_has_bits_[0] & 0x00000400u) != 0; -} -inline void NetGameInfo::set_has_playeractiontimeout() { - _has_bits_[0] |= 0x00000400u; -} -inline void NetGameInfo::clear_has_playeractiontimeout() { - _has_bits_[0] &= ~0x00000400u; + return _internal_has_playeractiontimeout(); } inline void NetGameInfo::clear_playeractiontimeout() { playeractiontimeout_ = 0u; - clear_has_playeractiontimeout(); + _has_bits_[0] &= ~0x00000080u; } -inline ::google::protobuf::uint32 NetGameInfo::playeractiontimeout() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 NetGameInfo::_internal_playeractiontimeout() const { return playeractiontimeout_; } -inline void NetGameInfo::set_playeractiontimeout(::google::protobuf::uint32 value) { - set_has_playeractiontimeout(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 NetGameInfo::playeractiontimeout() const { + // @@protoc_insertion_point(field_get:NetGameInfo.playerActionTimeout) + return _internal_playeractiontimeout(); +} +inline void NetGameInfo::_internal_set_playeractiontimeout(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000080u; playeractiontimeout_ = value; } +inline void NetGameInfo::set_playeractiontimeout(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playeractiontimeout(value); + // @@protoc_insertion_point(field_set:NetGameInfo.playerActionTimeout) +} // required uint32 firstSmallBlind = 12; +inline bool NetGameInfo::_internal_has_firstsmallblind() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + return value; +} inline bool NetGameInfo::has_firstsmallblind() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -inline void NetGameInfo::set_has_firstsmallblind() { - _has_bits_[0] |= 0x00000800u; -} -inline void NetGameInfo::clear_has_firstsmallblind() { - _has_bits_[0] &= ~0x00000800u; + return _internal_has_firstsmallblind(); } inline void NetGameInfo::clear_firstsmallblind() { firstsmallblind_ = 0u; - clear_has_firstsmallblind(); + _has_bits_[0] &= ~0x00000100u; } -inline ::google::protobuf::uint32 NetGameInfo::firstsmallblind() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 NetGameInfo::_internal_firstsmallblind() const { return firstsmallblind_; } -inline void NetGameInfo::set_firstsmallblind(::google::protobuf::uint32 value) { - set_has_firstsmallblind(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 NetGameInfo::firstsmallblind() const { + // @@protoc_insertion_point(field_get:NetGameInfo.firstSmallBlind) + return _internal_firstsmallblind(); +} +inline void NetGameInfo::_internal_set_firstsmallblind(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000100u; firstsmallblind_ = value; } +inline void NetGameInfo::set_firstsmallblind(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_firstsmallblind(value); + // @@protoc_insertion_point(field_set:NetGameInfo.firstSmallBlind) +} // required uint32 startMoney = 13; +inline bool NetGameInfo::_internal_has_startmoney() const { + bool value = (_has_bits_[0] & 0x00000200u) != 0; + return value; +} inline bool NetGameInfo::has_startmoney() const { - return (_has_bits_[0] & 0x00001000u) != 0; -} -inline void NetGameInfo::set_has_startmoney() { - _has_bits_[0] |= 0x00001000u; -} -inline void NetGameInfo::clear_has_startmoney() { - _has_bits_[0] &= ~0x00001000u; + return _internal_has_startmoney(); } inline void NetGameInfo::clear_startmoney() { startmoney_ = 0u; - clear_has_startmoney(); + _has_bits_[0] &= ~0x00000200u; } -inline ::google::protobuf::uint32 NetGameInfo::startmoney() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 NetGameInfo::_internal_startmoney() const { return startmoney_; } -inline void NetGameInfo::set_startmoney(::google::protobuf::uint32 value) { - set_has_startmoney(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 NetGameInfo::startmoney() const { + // @@protoc_insertion_point(field_get:NetGameInfo.startMoney) + return _internal_startmoney(); +} +inline void NetGameInfo::_internal_set_startmoney(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000200u; startmoney_ = value; } +inline void NetGameInfo::set_startmoney(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_startmoney(value); + // @@protoc_insertion_point(field_set:NetGameInfo.startMoney) +} // repeated uint32 manualBlinds = 14 [packed = true]; -inline int NetGameInfo::manualblinds_size() const { +inline int NetGameInfo::_internal_manualblinds_size() const { return manualblinds_.size(); } +inline int NetGameInfo::manualblinds_size() const { + return _internal_manualblinds_size(); +} inline void NetGameInfo::clear_manualblinds() { manualblinds_.Clear(); } -inline ::google::protobuf::uint32 NetGameInfo::manualblinds(int index) const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 NetGameInfo::_internal_manualblinds(int index) const { return manualblinds_.Get(index); } -inline void NetGameInfo::set_manualblinds(int index, ::google::protobuf::uint32 value) { +inline ::PROTOBUF_NAMESPACE_ID::uint32 NetGameInfo::manualblinds(int index) const { + // @@protoc_insertion_point(field_get:NetGameInfo.manualBlinds) + return _internal_manualblinds(index); +} +inline void NetGameInfo::set_manualblinds(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value) { manualblinds_.Set(index, value); } -inline void NetGameInfo::add_manualblinds(::google::protobuf::uint32 value) { +inline void NetGameInfo::_internal_add_manualblinds(::PROTOBUF_NAMESPACE_ID::uint32 value) { manualblinds_.Add(value); } -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -NetGameInfo::manualblinds() const { +inline void NetGameInfo::add_manualblinds(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_add_manualblinds(value); + // @@protoc_insertion_point(field_add:NetGameInfo.manualBlinds) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& +NetGameInfo::_internal_manualblinds() const { return manualblinds_; } -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -NetGameInfo::mutable_manualblinds() { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& +NetGameInfo::manualblinds() const { + // @@protoc_insertion_point(field_list:NetGameInfo.manualBlinds) + return _internal_manualblinds(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* +NetGameInfo::_internal_mutable_manualblinds() { return &manualblinds_; } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* +NetGameInfo::mutable_manualblinds() { + // @@protoc_insertion_point(field_mutable_list:NetGameInfo.manualBlinds) + return _internal_mutable_manualblinds(); +} // optional bool allowSpectators = 15 [default = true]; +inline bool NetGameInfo::_internal_has_allowspectators() const { + bool value = (_has_bits_[0] & 0x00002000u) != 0; + return value; +} inline bool NetGameInfo::has_allowspectators() const { - return (_has_bits_[0] & 0x00004000u) != 0; -} -inline void NetGameInfo::set_has_allowspectators() { - _has_bits_[0] |= 0x00004000u; -} -inline void NetGameInfo::clear_has_allowspectators() { - _has_bits_[0] &= ~0x00004000u; + return _internal_has_allowspectators(); } inline void NetGameInfo::clear_allowspectators() { allowspectators_ = true; - clear_has_allowspectators(); + _has_bits_[0] &= ~0x00002000u; } -inline bool NetGameInfo::allowspectators() const { +inline bool NetGameInfo::_internal_allowspectators() const { return allowspectators_; } -inline void NetGameInfo::set_allowspectators(bool value) { - set_has_allowspectators(); +inline bool NetGameInfo::allowspectators() const { + // @@protoc_insertion_point(field_get:NetGameInfo.allowSpectators) + return _internal_allowspectators(); +} +inline void NetGameInfo::_internal_set_allowspectators(bool value) { + _has_bits_[0] |= 0x00002000u; allowspectators_ = value; } - -// optional bool allowLateReg = 16 [default = false]; -inline bool NetGameInfo::has_allowlatereg() const { - return (_has_bits_[0] & 0x00008000u) != 0; -} -inline void NetGameInfo::set_has_allowlatereg() { - _has_bits_[0] |= 0x00008000u; -} -inline void NetGameInfo::clear_has_allowlatereg() { - _has_bits_[0] &= ~0x00008000u; -} -inline void NetGameInfo::clear_allowlatereg() { - allowlatereg_ = false; - clear_has_allowlatereg(); -} -inline bool NetGameInfo::allowlatereg() const { - return allowlatereg_; -} -inline void NetGameInfo::set_allowlatereg(bool value) { - set_has_allowlatereg(); - allowlatereg_ = value; -} - -// optional bool allowReentries = 17 [default = false]; -inline bool NetGameInfo::has_allowreentries() const { - return (_has_bits_[0] & 0x00010000u) != 0; -} -inline void NetGameInfo::set_has_allowreentries() { - _has_bits_[0] |= 0x00010000u; -} -inline void NetGameInfo::clear_has_allowreentries() { - _has_bits_[0] &= ~0x00010000u; -} -inline void NetGameInfo::clear_allowreentries() { - allowreentries_ = false; - clear_has_allowreentries(); -} -inline bool NetGameInfo::allowreentries() const { - return allowreentries_; -} -inline void NetGameInfo::set_allowreentries(bool value) { - set_has_allowreentries(); - allowreentries_ = value; -} - -// optional uint32 numReentries = 18 [default = 0]; -inline bool NetGameInfo::has_numreentries() const { - return (_has_bits_[0] & 0x00020000u) != 0; -} -inline void NetGameInfo::set_has_numreentries() { - _has_bits_[0] |= 0x00020000u; -} -inline void NetGameInfo::clear_has_numreentries() { - _has_bits_[0] &= ~0x00020000u; -} -inline void NetGameInfo::clear_numreentries() { - numreentries_ = 0u; - clear_has_numreentries(); -} -inline ::google::protobuf::uint32 NetGameInfo::numreentries() const { - return numreentries_; -} -inline void NetGameInfo::set_numreentries(::google::protobuf::uint32 value) { - set_has_numreentries(); - numreentries_ = value; -} - -// optional uint32 maxTimeLateReg = 19 [default = 0]; -inline bool NetGameInfo::has_maxtimelatereg() const { - return (_has_bits_[0] & 0x00040000u) != 0; -} -inline void NetGameInfo::set_has_maxtimelatereg() { - _has_bits_[0] |= 0x00040000u; -} -inline void NetGameInfo::clear_has_maxtimelatereg() { - _has_bits_[0] &= ~0x00040000u; -} -inline void NetGameInfo::clear_maxtimelatereg() { - maxtimelatereg_ = 0u; - clear_has_maxtimelatereg(); -} -inline ::google::protobuf::uint32 NetGameInfo::maxtimelatereg() const { - return maxtimelatereg_; -} -inline void NetGameInfo::set_maxtimelatereg(::google::protobuf::uint32 value) { - set_has_maxtimelatereg(); - maxtimelatereg_ = value; +inline void NetGameInfo::set_allowspectators(bool value) { + _internal_set_allowspectators(value); + // @@protoc_insertion_point(field_set:NetGameInfo.allowSpectators) } // ------------------------------------------------------------------- @@ -12064,804 +19519,1135 @@ inline void NetGameInfo::set_maxtimelatereg(::google::protobuf::uint32 value) { // PlayerResult // required uint32 playerId = 1; +inline bool PlayerResult::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool PlayerResult::has_playerid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void PlayerResult::set_has_playerid() { - _has_bits_[0] |= 0x00000001u; -} -inline void PlayerResult::clear_has_playerid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_playerid(); } inline void PlayerResult::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 PlayerResult::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerResult::_internal_playerid() const { return playerid_; } -inline void PlayerResult::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerResult::playerid() const { + // @@protoc_insertion_point(field_get:PlayerResult.playerId) + return _internal_playerid(); +} +inline void PlayerResult::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; playerid_ = value; } +inline void PlayerResult::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:PlayerResult.playerId) +} // required uint32 resultCard1 = 2; +inline bool PlayerResult::_internal_has_resultcard1() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool PlayerResult::has_resultcard1() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void PlayerResult::set_has_resultcard1() { - _has_bits_[0] |= 0x00000002u; -} -inline void PlayerResult::clear_has_resultcard1() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_resultcard1(); } inline void PlayerResult::clear_resultcard1() { resultcard1_ = 0u; - clear_has_resultcard1(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 PlayerResult::resultcard1() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerResult::_internal_resultcard1() const { return resultcard1_; } -inline void PlayerResult::set_resultcard1(::google::protobuf::uint32 value) { - set_has_resultcard1(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerResult::resultcard1() const { + // @@protoc_insertion_point(field_get:PlayerResult.resultCard1) + return _internal_resultcard1(); +} +inline void PlayerResult::_internal_set_resultcard1(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; resultcard1_ = value; } +inline void PlayerResult::set_resultcard1(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_resultcard1(value); + // @@protoc_insertion_point(field_set:PlayerResult.resultCard1) +} // required uint32 resultCard2 = 3; +inline bool PlayerResult::_internal_has_resultcard2() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool PlayerResult::has_resultcard2() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void PlayerResult::set_has_resultcard2() { - _has_bits_[0] |= 0x00000004u; -} -inline void PlayerResult::clear_has_resultcard2() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_resultcard2(); } inline void PlayerResult::clear_resultcard2() { resultcard2_ = 0u; - clear_has_resultcard2(); + _has_bits_[0] &= ~0x00000004u; } -inline ::google::protobuf::uint32 PlayerResult::resultcard2() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerResult::_internal_resultcard2() const { return resultcard2_; } -inline void PlayerResult::set_resultcard2(::google::protobuf::uint32 value) { - set_has_resultcard2(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerResult::resultcard2() const { + // @@protoc_insertion_point(field_get:PlayerResult.resultCard2) + return _internal_resultcard2(); +} +inline void PlayerResult::_internal_set_resultcard2(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000004u; resultcard2_ = value; } +inline void PlayerResult::set_resultcard2(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_resultcard2(value); + // @@protoc_insertion_point(field_set:PlayerResult.resultCard2) +} // repeated uint32 bestHandPosition = 4 [packed = true]; -inline int PlayerResult::besthandposition_size() const { +inline int PlayerResult::_internal_besthandposition_size() const { return besthandposition_.size(); } +inline int PlayerResult::besthandposition_size() const { + return _internal_besthandposition_size(); +} inline void PlayerResult::clear_besthandposition() { besthandposition_.Clear(); } -inline ::google::protobuf::uint32 PlayerResult::besthandposition(int index) const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerResult::_internal_besthandposition(int index) const { return besthandposition_.Get(index); } -inline void PlayerResult::set_besthandposition(int index, ::google::protobuf::uint32 value) { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerResult::besthandposition(int index) const { + // @@protoc_insertion_point(field_get:PlayerResult.bestHandPosition) + return _internal_besthandposition(index); +} +inline void PlayerResult::set_besthandposition(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value) { besthandposition_.Set(index, value); } -inline void PlayerResult::add_besthandposition(::google::protobuf::uint32 value) { +inline void PlayerResult::_internal_add_besthandposition(::PROTOBUF_NAMESPACE_ID::uint32 value) { besthandposition_.Add(value); } -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -PlayerResult::besthandposition() const { +inline void PlayerResult::add_besthandposition(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_add_besthandposition(value); + // @@protoc_insertion_point(field_add:PlayerResult.bestHandPosition) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& +PlayerResult::_internal_besthandposition() const { return besthandposition_; } -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -PlayerResult::mutable_besthandposition() { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& +PlayerResult::besthandposition() const { + // @@protoc_insertion_point(field_list:PlayerResult.bestHandPosition) + return _internal_besthandposition(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* +PlayerResult::_internal_mutable_besthandposition() { return &besthandposition_; } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* +PlayerResult::mutable_besthandposition() { + // @@protoc_insertion_point(field_mutable_list:PlayerResult.bestHandPosition) + return _internal_mutable_besthandposition(); +} // required uint32 moneyWon = 5; +inline bool PlayerResult::_internal_has_moneywon() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool PlayerResult::has_moneywon() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void PlayerResult::set_has_moneywon() { - _has_bits_[0] |= 0x00000010u; -} -inline void PlayerResult::clear_has_moneywon() { - _has_bits_[0] &= ~0x00000010u; + return _internal_has_moneywon(); } inline void PlayerResult::clear_moneywon() { moneywon_ = 0u; - clear_has_moneywon(); + _has_bits_[0] &= ~0x00000008u; } -inline ::google::protobuf::uint32 PlayerResult::moneywon() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerResult::_internal_moneywon() const { return moneywon_; } -inline void PlayerResult::set_moneywon(::google::protobuf::uint32 value) { - set_has_moneywon(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerResult::moneywon() const { + // @@protoc_insertion_point(field_get:PlayerResult.moneyWon) + return _internal_moneywon(); +} +inline void PlayerResult::_internal_set_moneywon(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000008u; moneywon_ = value; } +inline void PlayerResult::set_moneywon(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_moneywon(value); + // @@protoc_insertion_point(field_set:PlayerResult.moneyWon) +} // required uint32 playerMoney = 6; +inline bool PlayerResult::_internal_has_playermoney() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} inline bool PlayerResult::has_playermoney() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void PlayerResult::set_has_playermoney() { - _has_bits_[0] |= 0x00000020u; -} -inline void PlayerResult::clear_has_playermoney() { - _has_bits_[0] &= ~0x00000020u; + return _internal_has_playermoney(); } inline void PlayerResult::clear_playermoney() { playermoney_ = 0u; - clear_has_playermoney(); + _has_bits_[0] &= ~0x00000010u; } -inline ::google::protobuf::uint32 PlayerResult::playermoney() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerResult::_internal_playermoney() const { return playermoney_; } -inline void PlayerResult::set_playermoney(::google::protobuf::uint32 value) { - set_has_playermoney(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerResult::playermoney() const { + // @@protoc_insertion_point(field_get:PlayerResult.playerMoney) + return _internal_playermoney(); +} +inline void PlayerResult::_internal_set_playermoney(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000010u; playermoney_ = value; } +inline void PlayerResult::set_playermoney(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playermoney(value); + // @@protoc_insertion_point(field_set:PlayerResult.playerMoney) +} // optional uint32 cardsValue = 7; +inline bool PlayerResult::_internal_has_cardsvalue() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} inline bool PlayerResult::has_cardsvalue() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void PlayerResult::set_has_cardsvalue() { - _has_bits_[0] |= 0x00000040u; -} -inline void PlayerResult::clear_has_cardsvalue() { - _has_bits_[0] &= ~0x00000040u; + return _internal_has_cardsvalue(); } inline void PlayerResult::clear_cardsvalue() { cardsvalue_ = 0u; - clear_has_cardsvalue(); + _has_bits_[0] &= ~0x00000020u; } -inline ::google::protobuf::uint32 PlayerResult::cardsvalue() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerResult::_internal_cardsvalue() const { return cardsvalue_; } -inline void PlayerResult::set_cardsvalue(::google::protobuf::uint32 value) { - set_has_cardsvalue(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerResult::cardsvalue() const { + // @@protoc_insertion_point(field_get:PlayerResult.cardsValue) + return _internal_cardsvalue(); +} +inline void PlayerResult::_internal_set_cardsvalue(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000020u; cardsvalue_ = value; } +inline void PlayerResult::set_cardsvalue(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_cardsvalue(value); + // @@protoc_insertion_point(field_set:PlayerResult.cardsValue) +} // ------------------------------------------------------------------- // AnnounceMessage_Version // required uint32 majorVersion = 1; +inline bool AnnounceMessage_Version::_internal_has_majorversion() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool AnnounceMessage_Version::has_majorversion() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AnnounceMessage_Version::set_has_majorversion() { - _has_bits_[0] |= 0x00000001u; -} -inline void AnnounceMessage_Version::clear_has_majorversion() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_majorversion(); } inline void AnnounceMessage_Version::clear_majorversion() { majorversion_ = 0u; - clear_has_majorversion(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 AnnounceMessage_Version::majorversion() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AnnounceMessage_Version::_internal_majorversion() const { return majorversion_; } -inline void AnnounceMessage_Version::set_majorversion(::google::protobuf::uint32 value) { - set_has_majorversion(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AnnounceMessage_Version::majorversion() const { + // @@protoc_insertion_point(field_get:AnnounceMessage.Version.majorVersion) + return _internal_majorversion(); +} +inline void AnnounceMessage_Version::_internal_set_majorversion(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; majorversion_ = value; } +inline void AnnounceMessage_Version::set_majorversion(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_majorversion(value); + // @@protoc_insertion_point(field_set:AnnounceMessage.Version.majorVersion) +} // required uint32 minorVersion = 2; +inline bool AnnounceMessage_Version::_internal_has_minorversion() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool AnnounceMessage_Version::has_minorversion() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AnnounceMessage_Version::set_has_minorversion() { - _has_bits_[0] |= 0x00000002u; -} -inline void AnnounceMessage_Version::clear_has_minorversion() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_minorversion(); } inline void AnnounceMessage_Version::clear_minorversion() { minorversion_ = 0u; - clear_has_minorversion(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 AnnounceMessage_Version::minorversion() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AnnounceMessage_Version::_internal_minorversion() const { return minorversion_; } -inline void AnnounceMessage_Version::set_minorversion(::google::protobuf::uint32 value) { - set_has_minorversion(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AnnounceMessage_Version::minorversion() const { + // @@protoc_insertion_point(field_get:AnnounceMessage.Version.minorVersion) + return _internal_minorversion(); +} +inline void AnnounceMessage_Version::_internal_set_minorversion(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; minorversion_ = value; } +inline void AnnounceMessage_Version::set_minorversion(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_minorversion(value); + // @@protoc_insertion_point(field_set:AnnounceMessage.Version.minorVersion) +} // ------------------------------------------------------------------- // AnnounceMessage // required .AnnounceMessage.Version protocolVersion = 1; +inline bool AnnounceMessage::_internal_has_protocolversion() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || protocolversion_ != nullptr); + return value; +} inline bool AnnounceMessage::has_protocolversion() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AnnounceMessage::set_has_protocolversion() { - _has_bits_[0] |= 0x00000001u; -} -inline void AnnounceMessage::clear_has_protocolversion() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_protocolversion(); } inline void AnnounceMessage::clear_protocolversion() { - if (protocolversion_ != NULL) protocolversion_->::AnnounceMessage_Version::Clear(); - clear_has_protocolversion(); + if (protocolversion_ != nullptr) protocolversion_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +inline const ::AnnounceMessage_Version& AnnounceMessage::_internal_protocolversion() const { + const ::AnnounceMessage_Version* p = protocolversion_; + return p != nullptr ? *p : *reinterpret_cast( + &::_AnnounceMessage_Version_default_instance_); } inline const ::AnnounceMessage_Version& AnnounceMessage::protocolversion() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return protocolversion_ != NULL ? *protocolversion_ : *default_instance().protocolversion_; -#else - return protocolversion_ != NULL ? *protocolversion_ : *default_instance_->protocolversion_; -#endif + // @@protoc_insertion_point(field_get:AnnounceMessage.protocolVersion) + return _internal_protocolversion(); } -inline ::AnnounceMessage_Version* AnnounceMessage::mutable_protocolversion() { - set_has_protocolversion(); - if (protocolversion_ == NULL) protocolversion_ = new ::AnnounceMessage_Version; - return protocolversion_; -} -inline ::AnnounceMessage_Version* AnnounceMessage::release_protocolversion() { - clear_has_protocolversion(); - ::AnnounceMessage_Version* temp = protocolversion_; - protocolversion_ = NULL; - return temp; -} -inline void AnnounceMessage::set_allocated_protocolversion(::AnnounceMessage_Version* protocolversion) { - delete protocolversion_; +inline void AnnounceMessage::unsafe_arena_set_allocated_protocolversion( + ::AnnounceMessage_Version* protocolversion) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(protocolversion_); + } protocolversion_ = protocolversion; if (protocolversion) { - set_has_protocolversion(); + _has_bits_[0] |= 0x00000001u; } else { - clear_has_protocolversion(); + _has_bits_[0] &= ~0x00000001u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:AnnounceMessage.protocolVersion) +} +inline ::AnnounceMessage_Version* AnnounceMessage::release_protocolversion() { + auto temp = unsafe_arena_release_protocolversion(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::AnnounceMessage_Version* AnnounceMessage::unsafe_arena_release_protocolversion() { + // @@protoc_insertion_point(field_release:AnnounceMessage.protocolVersion) + _has_bits_[0] &= ~0x00000001u; + ::AnnounceMessage_Version* temp = protocolversion_; + protocolversion_ = nullptr; + return temp; +} +inline ::AnnounceMessage_Version* AnnounceMessage::_internal_mutable_protocolversion() { + _has_bits_[0] |= 0x00000001u; + if (protocolversion_ == nullptr) { + auto* p = CreateMaybeMessage<::AnnounceMessage_Version>(GetArena()); + protocolversion_ = p; + } + return protocolversion_; +} +inline ::AnnounceMessage_Version* AnnounceMessage::mutable_protocolversion() { + // @@protoc_insertion_point(field_mutable:AnnounceMessage.protocolVersion) + return _internal_mutable_protocolversion(); +} +inline void AnnounceMessage::set_allocated_protocolversion(::AnnounceMessage_Version* protocolversion) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete protocolversion_; + } + if (protocolversion) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(protocolversion); + if (message_arena != submessage_arena) { + protocolversion = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, protocolversion, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + protocolversion_ = protocolversion; + // @@protoc_insertion_point(field_set_allocated:AnnounceMessage.protocolVersion) } // required .AnnounceMessage.Version latestGameVersion = 2; +inline bool AnnounceMessage::_internal_has_latestgameversion() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || latestgameversion_ != nullptr); + return value; +} inline bool AnnounceMessage::has_latestgameversion() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AnnounceMessage::set_has_latestgameversion() { - _has_bits_[0] |= 0x00000002u; -} -inline void AnnounceMessage::clear_has_latestgameversion() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_latestgameversion(); } inline void AnnounceMessage::clear_latestgameversion() { - if (latestgameversion_ != NULL) latestgameversion_->::AnnounceMessage_Version::Clear(); - clear_has_latestgameversion(); + if (latestgameversion_ != nullptr) latestgameversion_->Clear(); + _has_bits_[0] &= ~0x00000002u; +} +inline const ::AnnounceMessage_Version& AnnounceMessage::_internal_latestgameversion() const { + const ::AnnounceMessage_Version* p = latestgameversion_; + return p != nullptr ? *p : *reinterpret_cast( + &::_AnnounceMessage_Version_default_instance_); } inline const ::AnnounceMessage_Version& AnnounceMessage::latestgameversion() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return latestgameversion_ != NULL ? *latestgameversion_ : *default_instance().latestgameversion_; -#else - return latestgameversion_ != NULL ? *latestgameversion_ : *default_instance_->latestgameversion_; -#endif + // @@protoc_insertion_point(field_get:AnnounceMessage.latestGameVersion) + return _internal_latestgameversion(); } -inline ::AnnounceMessage_Version* AnnounceMessage::mutable_latestgameversion() { - set_has_latestgameversion(); - if (latestgameversion_ == NULL) latestgameversion_ = new ::AnnounceMessage_Version; - return latestgameversion_; -} -inline ::AnnounceMessage_Version* AnnounceMessage::release_latestgameversion() { - clear_has_latestgameversion(); - ::AnnounceMessage_Version* temp = latestgameversion_; - latestgameversion_ = NULL; - return temp; -} -inline void AnnounceMessage::set_allocated_latestgameversion(::AnnounceMessage_Version* latestgameversion) { - delete latestgameversion_; +inline void AnnounceMessage::unsafe_arena_set_allocated_latestgameversion( + ::AnnounceMessage_Version* latestgameversion) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(latestgameversion_); + } latestgameversion_ = latestgameversion; if (latestgameversion) { - set_has_latestgameversion(); + _has_bits_[0] |= 0x00000002u; } else { - clear_has_latestgameversion(); + _has_bits_[0] &= ~0x00000002u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:AnnounceMessage.latestGameVersion) +} +inline ::AnnounceMessage_Version* AnnounceMessage::release_latestgameversion() { + auto temp = unsafe_arena_release_latestgameversion(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::AnnounceMessage_Version* AnnounceMessage::unsafe_arena_release_latestgameversion() { + // @@protoc_insertion_point(field_release:AnnounceMessage.latestGameVersion) + _has_bits_[0] &= ~0x00000002u; + ::AnnounceMessage_Version* temp = latestgameversion_; + latestgameversion_ = nullptr; + return temp; +} +inline ::AnnounceMessage_Version* AnnounceMessage::_internal_mutable_latestgameversion() { + _has_bits_[0] |= 0x00000002u; + if (latestgameversion_ == nullptr) { + auto* p = CreateMaybeMessage<::AnnounceMessage_Version>(GetArena()); + latestgameversion_ = p; + } + return latestgameversion_; +} +inline ::AnnounceMessage_Version* AnnounceMessage::mutable_latestgameversion() { + // @@protoc_insertion_point(field_mutable:AnnounceMessage.latestGameVersion) + return _internal_mutable_latestgameversion(); +} +inline void AnnounceMessage::set_allocated_latestgameversion(::AnnounceMessage_Version* latestgameversion) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete latestgameversion_; + } + if (latestgameversion) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(latestgameversion); + if (message_arena != submessage_arena) { + latestgameversion = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, latestgameversion, submessage_arena); + } + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + latestgameversion_ = latestgameversion; + // @@protoc_insertion_point(field_set_allocated:AnnounceMessage.latestGameVersion) } // required uint32 latestBetaRevision = 3; +inline bool AnnounceMessage::_internal_has_latestbetarevision() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool AnnounceMessage::has_latestbetarevision() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void AnnounceMessage::set_has_latestbetarevision() { - _has_bits_[0] |= 0x00000004u; -} -inline void AnnounceMessage::clear_has_latestbetarevision() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_latestbetarevision(); } inline void AnnounceMessage::clear_latestbetarevision() { latestbetarevision_ = 0u; - clear_has_latestbetarevision(); + _has_bits_[0] &= ~0x00000004u; } -inline ::google::protobuf::uint32 AnnounceMessage::latestbetarevision() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AnnounceMessage::_internal_latestbetarevision() const { return latestbetarevision_; } -inline void AnnounceMessage::set_latestbetarevision(::google::protobuf::uint32 value) { - set_has_latestbetarevision(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AnnounceMessage::latestbetarevision() const { + // @@protoc_insertion_point(field_get:AnnounceMessage.latestBetaRevision) + return _internal_latestbetarevision(); +} +inline void AnnounceMessage::_internal_set_latestbetarevision(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000004u; latestbetarevision_ = value; } +inline void AnnounceMessage::set_latestbetarevision(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_latestbetarevision(value); + // @@protoc_insertion_point(field_set:AnnounceMessage.latestBetaRevision) +} // required .AnnounceMessage.ServerType serverType = 4; +inline bool AnnounceMessage::_internal_has_servertype() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool AnnounceMessage::has_servertype() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void AnnounceMessage::set_has_servertype() { - _has_bits_[0] |= 0x00000008u; -} -inline void AnnounceMessage::clear_has_servertype() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_servertype(); } inline void AnnounceMessage::clear_servertype() { servertype_ = 0; - clear_has_servertype(); + _has_bits_[0] &= ~0x00000008u; } -inline ::AnnounceMessage_ServerType AnnounceMessage::servertype() const { +inline ::AnnounceMessage_ServerType AnnounceMessage::_internal_servertype() const { return static_cast< ::AnnounceMessage_ServerType >(servertype_); } -inline void AnnounceMessage::set_servertype(::AnnounceMessage_ServerType value) { +inline ::AnnounceMessage_ServerType AnnounceMessage::servertype() const { + // @@protoc_insertion_point(field_get:AnnounceMessage.serverType) + return _internal_servertype(); +} +inline void AnnounceMessage::_internal_set_servertype(::AnnounceMessage_ServerType value) { assert(::AnnounceMessage_ServerType_IsValid(value)); - set_has_servertype(); + _has_bits_[0] |= 0x00000008u; servertype_ = value; } +inline void AnnounceMessage::set_servertype(::AnnounceMessage_ServerType value) { + _internal_set_servertype(value); + // @@protoc_insertion_point(field_set:AnnounceMessage.serverType) +} // required uint32 numPlayersOnServer = 5; +inline bool AnnounceMessage::_internal_has_numplayersonserver() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} inline bool AnnounceMessage::has_numplayersonserver() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void AnnounceMessage::set_has_numplayersonserver() { - _has_bits_[0] |= 0x00000010u; -} -inline void AnnounceMessage::clear_has_numplayersonserver() { - _has_bits_[0] &= ~0x00000010u; + return _internal_has_numplayersonserver(); } inline void AnnounceMessage::clear_numplayersonserver() { numplayersonserver_ = 0u; - clear_has_numplayersonserver(); + _has_bits_[0] &= ~0x00000010u; } -inline ::google::protobuf::uint32 AnnounceMessage::numplayersonserver() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AnnounceMessage::_internal_numplayersonserver() const { return numplayersonserver_; } -inline void AnnounceMessage::set_numplayersonserver(::google::protobuf::uint32 value) { - set_has_numplayersonserver(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AnnounceMessage::numplayersonserver() const { + // @@protoc_insertion_point(field_get:AnnounceMessage.numPlayersOnServer) + return _internal_numplayersonserver(); +} +inline void AnnounceMessage::_internal_set_numplayersonserver(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000010u; numplayersonserver_ = value; } +inline void AnnounceMessage::set_numplayersonserver(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_numplayersonserver(value); + // @@protoc_insertion_point(field_set:AnnounceMessage.numPlayersOnServer) +} // ------------------------------------------------------------------- // InitMessage // required .AnnounceMessage.Version requestedVersion = 1; +inline bool InitMessage::_internal_has_requestedversion() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + PROTOBUF_ASSUME(!value || requestedversion_ != nullptr); + return value; +} inline bool InitMessage::has_requestedversion() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void InitMessage::set_has_requestedversion() { - _has_bits_[0] |= 0x00000001u; -} -inline void InitMessage::clear_has_requestedversion() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_requestedversion(); } inline void InitMessage::clear_requestedversion() { - if (requestedversion_ != NULL) requestedversion_->::AnnounceMessage_Version::Clear(); - clear_has_requestedversion(); + if (requestedversion_ != nullptr) requestedversion_->Clear(); + _has_bits_[0] &= ~0x00000020u; +} +inline const ::AnnounceMessage_Version& InitMessage::_internal_requestedversion() const { + const ::AnnounceMessage_Version* p = requestedversion_; + return p != nullptr ? *p : *reinterpret_cast( + &::_AnnounceMessage_Version_default_instance_); } inline const ::AnnounceMessage_Version& InitMessage::requestedversion() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return requestedversion_ != NULL ? *requestedversion_ : *default_instance().requestedversion_; -#else - return requestedversion_ != NULL ? *requestedversion_ : *default_instance_->requestedversion_; -#endif + // @@protoc_insertion_point(field_get:InitMessage.requestedVersion) + return _internal_requestedversion(); } -inline ::AnnounceMessage_Version* InitMessage::mutable_requestedversion() { - set_has_requestedversion(); - if (requestedversion_ == NULL) requestedversion_ = new ::AnnounceMessage_Version; - return requestedversion_; -} -inline ::AnnounceMessage_Version* InitMessage::release_requestedversion() { - clear_has_requestedversion(); - ::AnnounceMessage_Version* temp = requestedversion_; - requestedversion_ = NULL; - return temp; -} -inline void InitMessage::set_allocated_requestedversion(::AnnounceMessage_Version* requestedversion) { - delete requestedversion_; +inline void InitMessage::unsafe_arena_set_allocated_requestedversion( + ::AnnounceMessage_Version* requestedversion) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(requestedversion_); + } requestedversion_ = requestedversion; if (requestedversion) { - set_has_requestedversion(); + _has_bits_[0] |= 0x00000020u; } else { - clear_has_requestedversion(); + _has_bits_[0] &= ~0x00000020u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:InitMessage.requestedVersion) +} +inline ::AnnounceMessage_Version* InitMessage::release_requestedversion() { + auto temp = unsafe_arena_release_requestedversion(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::AnnounceMessage_Version* InitMessage::unsafe_arena_release_requestedversion() { + // @@protoc_insertion_point(field_release:InitMessage.requestedVersion) + _has_bits_[0] &= ~0x00000020u; + ::AnnounceMessage_Version* temp = requestedversion_; + requestedversion_ = nullptr; + return temp; +} +inline ::AnnounceMessage_Version* InitMessage::_internal_mutable_requestedversion() { + _has_bits_[0] |= 0x00000020u; + if (requestedversion_ == nullptr) { + auto* p = CreateMaybeMessage<::AnnounceMessage_Version>(GetArena()); + requestedversion_ = p; + } + return requestedversion_; +} +inline ::AnnounceMessage_Version* InitMessage::mutable_requestedversion() { + // @@protoc_insertion_point(field_mutable:InitMessage.requestedVersion) + return _internal_mutable_requestedversion(); +} +inline void InitMessage::set_allocated_requestedversion(::AnnounceMessage_Version* requestedversion) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete requestedversion_; + } + if (requestedversion) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(requestedversion); + if (message_arena != submessage_arena) { + requestedversion = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, requestedversion, submessage_arena); + } + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + requestedversion_ = requestedversion; + // @@protoc_insertion_point(field_set_allocated:InitMessage.requestedVersion) } // required uint32 buildId = 2; +inline bool InitMessage::_internal_has_buildid() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} inline bool InitMessage::has_buildid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void InitMessage::set_has_buildid() { - _has_bits_[0] |= 0x00000002u; -} -inline void InitMessage::clear_has_buildid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_buildid(); } inline void InitMessage::clear_buildid() { buildid_ = 0u; - clear_has_buildid(); + _has_bits_[0] &= ~0x00000040u; } -inline ::google::protobuf::uint32 InitMessage::buildid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 InitMessage::_internal_buildid() const { return buildid_; } -inline void InitMessage::set_buildid(::google::protobuf::uint32 value) { - set_has_buildid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 InitMessage::buildid() const { + // @@protoc_insertion_point(field_get:InitMessage.buildId) + return _internal_buildid(); +} +inline void InitMessage::_internal_set_buildid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000040u; buildid_ = value; } +inline void InitMessage::set_buildid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_buildid(value); + // @@protoc_insertion_point(field_set:InitMessage.buildId) +} // optional bytes myLastSessionId = 3; +inline bool InitMessage::_internal_has_mylastsessionid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool InitMessage::has_mylastsessionid() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void InitMessage::set_has_mylastsessionid() { - _has_bits_[0] |= 0x00000004u; -} -inline void InitMessage::clear_has_mylastsessionid() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_mylastsessionid(); } inline void InitMessage::clear_mylastsessionid() { - if (mylastsessionid_ != &::google::protobuf::internal::kEmptyString) { - mylastsessionid_->clear(); - } - clear_has_mylastsessionid(); + mylastsessionid_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& InitMessage::mylastsessionid() const { - return *mylastsessionid_; +inline const std::string& InitMessage::mylastsessionid() const { + // @@protoc_insertion_point(field_get:InitMessage.myLastSessionId) + return _internal_mylastsessionid(); } -inline void InitMessage::set_mylastsessionid(const ::std::string& value) { - set_has_mylastsessionid(); - if (mylastsessionid_ == &::google::protobuf::internal::kEmptyString) { - mylastsessionid_ = new ::std::string; - } - mylastsessionid_->assign(value); +inline void InitMessage::set_mylastsessionid(const std::string& value) { + _internal_set_mylastsessionid(value); + // @@protoc_insertion_point(field_set:InitMessage.myLastSessionId) +} +inline std::string* InitMessage::mutable_mylastsessionid() { + // @@protoc_insertion_point(field_mutable:InitMessage.myLastSessionId) + return _internal_mutable_mylastsessionid(); +} +inline const std::string& InitMessage::_internal_mylastsessionid() const { + return mylastsessionid_.Get(); +} +inline void InitMessage::_internal_set_mylastsessionid(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + mylastsessionid_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void InitMessage::set_mylastsessionid(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + mylastsessionid_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:InitMessage.myLastSessionId) } inline void InitMessage::set_mylastsessionid(const char* value) { - set_has_mylastsessionid(); - if (mylastsessionid_ == &::google::protobuf::internal::kEmptyString) { - mylastsessionid_ = new ::std::string; - } - mylastsessionid_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + mylastsessionid_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:InitMessage.myLastSessionId) } -inline void InitMessage::set_mylastsessionid(const void* value, size_t size) { - set_has_mylastsessionid(); - if (mylastsessionid_ == &::google::protobuf::internal::kEmptyString) { - mylastsessionid_ = new ::std::string; - } - mylastsessionid_->assign(reinterpret_cast(value), size); +inline void InitMessage::set_mylastsessionid(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + mylastsessionid_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:InitMessage.myLastSessionId) } -inline ::std::string* InitMessage::mutable_mylastsessionid() { - set_has_mylastsessionid(); - if (mylastsessionid_ == &::google::protobuf::internal::kEmptyString) { - mylastsessionid_ = new ::std::string; - } - return mylastsessionid_; +inline std::string* InitMessage::_internal_mutable_mylastsessionid() { + _has_bits_[0] |= 0x00000001u; + return mylastsessionid_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* InitMessage::release_mylastsessionid() { - clear_has_mylastsessionid(); - if (mylastsessionid_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* InitMessage::release_mylastsessionid() { + // @@protoc_insertion_point(field_release:InitMessage.myLastSessionId) + if (!_internal_has_mylastsessionid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return mylastsessionid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void InitMessage::set_allocated_mylastsessionid(std::string* mylastsessionid) { + if (mylastsessionid != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = mylastsessionid_; - mylastsessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + mylastsessionid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mylastsessionid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:InitMessage.myLastSessionId) } -inline void InitMessage::set_allocated_mylastsessionid(::std::string* mylastsessionid) { - if (mylastsessionid_ != &::google::protobuf::internal::kEmptyString) { - delete mylastsessionid_; - } - if (mylastsessionid) { - set_has_mylastsessionid(); - mylastsessionid_ = mylastsessionid; +inline std::string* InitMessage::unsafe_arena_release_mylastsessionid() { + // @@protoc_insertion_point(field_unsafe_arena_release:InitMessage.myLastSessionId) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return mylastsessionid_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void InitMessage::unsafe_arena_set_allocated_mylastsessionid( + std::string* mylastsessionid) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (mylastsessionid != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_mylastsessionid(); - mylastsessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + mylastsessionid_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + mylastsessionid, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:InitMessage.myLastSessionId) } // optional string authServerPassword = 4; +inline bool InitMessage::_internal_has_authserverpassword() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool InitMessage::has_authserverpassword() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void InitMessage::set_has_authserverpassword() { - _has_bits_[0] |= 0x00000008u; -} -inline void InitMessage::clear_has_authserverpassword() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_authserverpassword(); } inline void InitMessage::clear_authserverpassword() { - if (authserverpassword_ != &::google::protobuf::internal::kEmptyString) { - authserverpassword_->clear(); - } - clear_has_authserverpassword(); + authserverpassword_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000002u; } -inline const ::std::string& InitMessage::authserverpassword() const { - return *authserverpassword_; +inline const std::string& InitMessage::authserverpassword() const { + // @@protoc_insertion_point(field_get:InitMessage.authServerPassword) + return _internal_authserverpassword(); } -inline void InitMessage::set_authserverpassword(const ::std::string& value) { - set_has_authserverpassword(); - if (authserverpassword_ == &::google::protobuf::internal::kEmptyString) { - authserverpassword_ = new ::std::string; - } - authserverpassword_->assign(value); +inline void InitMessage::set_authserverpassword(const std::string& value) { + _internal_set_authserverpassword(value); + // @@protoc_insertion_point(field_set:InitMessage.authServerPassword) +} +inline std::string* InitMessage::mutable_authserverpassword() { + // @@protoc_insertion_point(field_mutable:InitMessage.authServerPassword) + return _internal_mutable_authserverpassword(); +} +inline const std::string& InitMessage::_internal_authserverpassword() const { + return authserverpassword_.Get(); +} +inline void InitMessage::_internal_set_authserverpassword(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + authserverpassword_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void InitMessage::set_authserverpassword(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + authserverpassword_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:InitMessage.authServerPassword) } inline void InitMessage::set_authserverpassword(const char* value) { - set_has_authserverpassword(); - if (authserverpassword_ == &::google::protobuf::internal::kEmptyString) { - authserverpassword_ = new ::std::string; - } - authserverpassword_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + authserverpassword_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:InitMessage.authServerPassword) } -inline void InitMessage::set_authserverpassword(const char* value, size_t size) { - set_has_authserverpassword(); - if (authserverpassword_ == &::google::protobuf::internal::kEmptyString) { - authserverpassword_ = new ::std::string; - } - authserverpassword_->assign(reinterpret_cast(value), size); +inline void InitMessage::set_authserverpassword(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + authserverpassword_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:InitMessage.authServerPassword) } -inline ::std::string* InitMessage::mutable_authserverpassword() { - set_has_authserverpassword(); - if (authserverpassword_ == &::google::protobuf::internal::kEmptyString) { - authserverpassword_ = new ::std::string; - } - return authserverpassword_; +inline std::string* InitMessage::_internal_mutable_authserverpassword() { + _has_bits_[0] |= 0x00000002u; + return authserverpassword_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* InitMessage::release_authserverpassword() { - clear_has_authserverpassword(); - if (authserverpassword_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* InitMessage::release_authserverpassword() { + // @@protoc_insertion_point(field_release:InitMessage.authServerPassword) + if (!_internal_has_authserverpassword()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return authserverpassword_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void InitMessage::set_allocated_authserverpassword(std::string* authserverpassword) { + if (authserverpassword != nullptr) { + _has_bits_[0] |= 0x00000002u; } else { - ::std::string* temp = authserverpassword_; - authserverpassword_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000002u; } + authserverpassword_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), authserverpassword, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:InitMessage.authServerPassword) } -inline void InitMessage::set_allocated_authserverpassword(::std::string* authserverpassword) { - if (authserverpassword_ != &::google::protobuf::internal::kEmptyString) { - delete authserverpassword_; - } - if (authserverpassword) { - set_has_authserverpassword(); - authserverpassword_ = authserverpassword; +inline std::string* InitMessage::unsafe_arena_release_authserverpassword() { + // @@protoc_insertion_point(field_unsafe_arena_release:InitMessage.authServerPassword) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000002u; + return authserverpassword_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void InitMessage::unsafe_arena_set_allocated_authserverpassword( + std::string* authserverpassword) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (authserverpassword != nullptr) { + _has_bits_[0] |= 0x00000002u; } else { - clear_has_authserverpassword(); - authserverpassword_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000002u; } + authserverpassword_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + authserverpassword, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:InitMessage.authServerPassword) } // required .InitMessage.LoginType login = 5; +inline bool InitMessage::_internal_has_login() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + return value; +} inline bool InitMessage::has_login() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void InitMessage::set_has_login() { - _has_bits_[0] |= 0x00000010u; -} -inline void InitMessage::clear_has_login() { - _has_bits_[0] &= ~0x00000010u; + return _internal_has_login(); } inline void InitMessage::clear_login() { login_ = 0; - clear_has_login(); + _has_bits_[0] &= ~0x00000080u; } -inline ::InitMessage_LoginType InitMessage::login() const { +inline ::InitMessage_LoginType InitMessage::_internal_login() const { return static_cast< ::InitMessage_LoginType >(login_); } -inline void InitMessage::set_login(::InitMessage_LoginType value) { +inline ::InitMessage_LoginType InitMessage::login() const { + // @@protoc_insertion_point(field_get:InitMessage.login) + return _internal_login(); +} +inline void InitMessage::_internal_set_login(::InitMessage_LoginType value) { assert(::InitMessage_LoginType_IsValid(value)); - set_has_login(); + _has_bits_[0] |= 0x00000080u; login_ = value; } +inline void InitMessage::set_login(::InitMessage_LoginType value) { + _internal_set_login(value); + // @@protoc_insertion_point(field_set:InitMessage.login) +} // optional string nickName = 6; +inline bool InitMessage::_internal_has_nickname() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool InitMessage::has_nickname() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void InitMessage::set_has_nickname() { - _has_bits_[0] |= 0x00000020u; -} -inline void InitMessage::clear_has_nickname() { - _has_bits_[0] &= ~0x00000020u; + return _internal_has_nickname(); } inline void InitMessage::clear_nickname() { - if (nickname_ != &::google::protobuf::internal::kEmptyString) { - nickname_->clear(); - } - clear_has_nickname(); + nickname_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000004u; } -inline const ::std::string& InitMessage::nickname() const { - return *nickname_; +inline const std::string& InitMessage::nickname() const { + // @@protoc_insertion_point(field_get:InitMessage.nickName) + return _internal_nickname(); } -inline void InitMessage::set_nickname(const ::std::string& value) { - set_has_nickname(); - if (nickname_ == &::google::protobuf::internal::kEmptyString) { - nickname_ = new ::std::string; - } - nickname_->assign(value); +inline void InitMessage::set_nickname(const std::string& value) { + _internal_set_nickname(value); + // @@protoc_insertion_point(field_set:InitMessage.nickName) +} +inline std::string* InitMessage::mutable_nickname() { + // @@protoc_insertion_point(field_mutable:InitMessage.nickName) + return _internal_mutable_nickname(); +} +inline const std::string& InitMessage::_internal_nickname() const { + return nickname_.Get(); +} +inline void InitMessage::_internal_set_nickname(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + nickname_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void InitMessage::set_nickname(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + nickname_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:InitMessage.nickName) } inline void InitMessage::set_nickname(const char* value) { - set_has_nickname(); - if (nickname_ == &::google::protobuf::internal::kEmptyString) { - nickname_ = new ::std::string; - } - nickname_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + nickname_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:InitMessage.nickName) } -inline void InitMessage::set_nickname(const char* value, size_t size) { - set_has_nickname(); - if (nickname_ == &::google::protobuf::internal::kEmptyString) { - nickname_ = new ::std::string; - } - nickname_->assign(reinterpret_cast(value), size); +inline void InitMessage::set_nickname(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + nickname_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:InitMessage.nickName) } -inline ::std::string* InitMessage::mutable_nickname() { - set_has_nickname(); - if (nickname_ == &::google::protobuf::internal::kEmptyString) { - nickname_ = new ::std::string; - } - return nickname_; +inline std::string* InitMessage::_internal_mutable_nickname() { + _has_bits_[0] |= 0x00000004u; + return nickname_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* InitMessage::release_nickname() { - clear_has_nickname(); - if (nickname_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* InitMessage::release_nickname() { + // @@protoc_insertion_point(field_release:InitMessage.nickName) + if (!_internal_has_nickname()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return nickname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void InitMessage::set_allocated_nickname(std::string* nickname) { + if (nickname != nullptr) { + _has_bits_[0] |= 0x00000004u; } else { - ::std::string* temp = nickname_; - nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000004u; } + nickname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), nickname, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:InitMessage.nickName) } -inline void InitMessage::set_allocated_nickname(::std::string* nickname) { - if (nickname_ != &::google::protobuf::internal::kEmptyString) { - delete nickname_; - } - if (nickname) { - set_has_nickname(); - nickname_ = nickname; +inline std::string* InitMessage::unsafe_arena_release_nickname() { + // @@protoc_insertion_point(field_unsafe_arena_release:InitMessage.nickName) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000004u; + return nickname_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void InitMessage::unsafe_arena_set_allocated_nickname( + std::string* nickname) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (nickname != nullptr) { + _has_bits_[0] |= 0x00000004u; } else { - clear_has_nickname(); - nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000004u; } + nickname_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + nickname, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:InitMessage.nickName) } // optional bytes clientUserData = 7; +inline bool InitMessage::_internal_has_clientuserdata() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool InitMessage::has_clientuserdata() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void InitMessage::set_has_clientuserdata() { - _has_bits_[0] |= 0x00000040u; -} -inline void InitMessage::clear_has_clientuserdata() { - _has_bits_[0] &= ~0x00000040u; + return _internal_has_clientuserdata(); } inline void InitMessage::clear_clientuserdata() { - if (clientuserdata_ != &::google::protobuf::internal::kEmptyString) { - clientuserdata_->clear(); - } - clear_has_clientuserdata(); + clientuserdata_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000008u; } -inline const ::std::string& InitMessage::clientuserdata() const { - return *clientuserdata_; +inline const std::string& InitMessage::clientuserdata() const { + // @@protoc_insertion_point(field_get:InitMessage.clientUserData) + return _internal_clientuserdata(); } -inline void InitMessage::set_clientuserdata(const ::std::string& value) { - set_has_clientuserdata(); - if (clientuserdata_ == &::google::protobuf::internal::kEmptyString) { - clientuserdata_ = new ::std::string; - } - clientuserdata_->assign(value); +inline void InitMessage::set_clientuserdata(const std::string& value) { + _internal_set_clientuserdata(value); + // @@protoc_insertion_point(field_set:InitMessage.clientUserData) +} +inline std::string* InitMessage::mutable_clientuserdata() { + // @@protoc_insertion_point(field_mutable:InitMessage.clientUserData) + return _internal_mutable_clientuserdata(); +} +inline const std::string& InitMessage::_internal_clientuserdata() const { + return clientuserdata_.Get(); +} +inline void InitMessage::_internal_set_clientuserdata(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + clientuserdata_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void InitMessage::set_clientuserdata(std::string&& value) { + _has_bits_[0] |= 0x00000008u; + clientuserdata_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:InitMessage.clientUserData) } inline void InitMessage::set_clientuserdata(const char* value) { - set_has_clientuserdata(); - if (clientuserdata_ == &::google::protobuf::internal::kEmptyString) { - clientuserdata_ = new ::std::string; - } - clientuserdata_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000008u; + clientuserdata_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:InitMessage.clientUserData) } -inline void InitMessage::set_clientuserdata(const void* value, size_t size) { - set_has_clientuserdata(); - if (clientuserdata_ == &::google::protobuf::internal::kEmptyString) { - clientuserdata_ = new ::std::string; - } - clientuserdata_->assign(reinterpret_cast(value), size); +inline void InitMessage::set_clientuserdata(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000008u; + clientuserdata_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:InitMessage.clientUserData) } -inline ::std::string* InitMessage::mutable_clientuserdata() { - set_has_clientuserdata(); - if (clientuserdata_ == &::google::protobuf::internal::kEmptyString) { - clientuserdata_ = new ::std::string; - } - return clientuserdata_; +inline std::string* InitMessage::_internal_mutable_clientuserdata() { + _has_bits_[0] |= 0x00000008u; + return clientuserdata_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* InitMessage::release_clientuserdata() { - clear_has_clientuserdata(); - if (clientuserdata_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* InitMessage::release_clientuserdata() { + // @@protoc_insertion_point(field_release:InitMessage.clientUserData) + if (!_internal_has_clientuserdata()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + return clientuserdata_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void InitMessage::set_allocated_clientuserdata(std::string* clientuserdata) { + if (clientuserdata != nullptr) { + _has_bits_[0] |= 0x00000008u; } else { - ::std::string* temp = clientuserdata_; - clientuserdata_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000008u; } + clientuserdata_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), clientuserdata, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:InitMessage.clientUserData) } -inline void InitMessage::set_allocated_clientuserdata(::std::string* clientuserdata) { - if (clientuserdata_ != &::google::protobuf::internal::kEmptyString) { - delete clientuserdata_; - } - if (clientuserdata) { - set_has_clientuserdata(); - clientuserdata_ = clientuserdata; +inline std::string* InitMessage::unsafe_arena_release_clientuserdata() { + // @@protoc_insertion_point(field_unsafe_arena_release:InitMessage.clientUserData) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000008u; + return clientuserdata_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void InitMessage::unsafe_arena_set_allocated_clientuserdata( + std::string* clientuserdata) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (clientuserdata != nullptr) { + _has_bits_[0] |= 0x00000008u; } else { - clear_has_clientuserdata(); - clientuserdata_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000008u; } + clientuserdata_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + clientuserdata, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:InitMessage.clientUserData) } // optional bytes avatarHash = 8; +inline bool InitMessage::_internal_has_avatarhash() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} inline bool InitMessage::has_avatarhash() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -inline void InitMessage::set_has_avatarhash() { - _has_bits_[0] |= 0x00000080u; -} -inline void InitMessage::clear_has_avatarhash() { - _has_bits_[0] &= ~0x00000080u; + return _internal_has_avatarhash(); } inline void InitMessage::clear_avatarhash() { - if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { - avatarhash_->clear(); - } - clear_has_avatarhash(); + avatarhash_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000010u; } -inline const ::std::string& InitMessage::avatarhash() const { - return *avatarhash_; +inline const std::string& InitMessage::avatarhash() const { + // @@protoc_insertion_point(field_get:InitMessage.avatarHash) + return _internal_avatarhash(); } -inline void InitMessage::set_avatarhash(const ::std::string& value) { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { - avatarhash_ = new ::std::string; - } - avatarhash_->assign(value); +inline void InitMessage::set_avatarhash(const std::string& value) { + _internal_set_avatarhash(value); + // @@protoc_insertion_point(field_set:InitMessage.avatarHash) +} +inline std::string* InitMessage::mutable_avatarhash() { + // @@protoc_insertion_point(field_mutable:InitMessage.avatarHash) + return _internal_mutable_avatarhash(); +} +inline const std::string& InitMessage::_internal_avatarhash() const { + return avatarhash_.Get(); +} +inline void InitMessage::_internal_set_avatarhash(const std::string& value) { + _has_bits_[0] |= 0x00000010u; + avatarhash_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void InitMessage::set_avatarhash(std::string&& value) { + _has_bits_[0] |= 0x00000010u; + avatarhash_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:InitMessage.avatarHash) } inline void InitMessage::set_avatarhash(const char* value) { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { - avatarhash_ = new ::std::string; - } - avatarhash_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000010u; + avatarhash_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:InitMessage.avatarHash) } -inline void InitMessage::set_avatarhash(const void* value, size_t size) { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { - avatarhash_ = new ::std::string; - } - avatarhash_->assign(reinterpret_cast(value), size); +inline void InitMessage::set_avatarhash(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000010u; + avatarhash_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:InitMessage.avatarHash) } -inline ::std::string* InitMessage::mutable_avatarhash() { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { - avatarhash_ = new ::std::string; - } - return avatarhash_; +inline std::string* InitMessage::_internal_mutable_avatarhash() { + _has_bits_[0] |= 0x00000010u; + return avatarhash_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* InitMessage::release_avatarhash() { - clear_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* InitMessage::release_avatarhash() { + // @@protoc_insertion_point(field_release:InitMessage.avatarHash) + if (!_internal_has_avatarhash()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000010u; + return avatarhash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void InitMessage::set_allocated_avatarhash(std::string* avatarhash) { + if (avatarhash != nullptr) { + _has_bits_[0] |= 0x00000010u; } else { - ::std::string* temp = avatarhash_; - avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000010u; } + avatarhash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), avatarhash, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:InitMessage.avatarHash) } -inline void InitMessage::set_allocated_avatarhash(::std::string* avatarhash) { - if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { - delete avatarhash_; - } - if (avatarhash) { - set_has_avatarhash(); - avatarhash_ = avatarhash; +inline std::string* InitMessage::unsafe_arena_release_avatarhash() { + // @@protoc_insertion_point(field_unsafe_arena_release:InitMessage.avatarHash) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000010u; + return avatarhash_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void InitMessage::unsafe_arena_set_allocated_avatarhash( + std::string* avatarhash) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (avatarhash != nullptr) { + _has_bits_[0] |= 0x00000010u; } else { - clear_has_avatarhash(); - avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000010u; } + avatarhash_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + avatarhash, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:InitMessage.avatarHash) } // ------------------------------------------------------------------- @@ -12869,73 +20655,96 @@ inline void InitMessage::set_allocated_avatarhash(::std::string* avatarhash) { // AuthServerChallengeMessage // required bytes serverChallenge = 1; +inline bool AuthServerChallengeMessage::_internal_has_serverchallenge() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool AuthServerChallengeMessage::has_serverchallenge() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AuthServerChallengeMessage::set_has_serverchallenge() { - _has_bits_[0] |= 0x00000001u; -} -inline void AuthServerChallengeMessage::clear_has_serverchallenge() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_serverchallenge(); } inline void AuthServerChallengeMessage::clear_serverchallenge() { - if (serverchallenge_ != &::google::protobuf::internal::kEmptyString) { - serverchallenge_->clear(); - } - clear_has_serverchallenge(); + serverchallenge_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& AuthServerChallengeMessage::serverchallenge() const { - return *serverchallenge_; +inline const std::string& AuthServerChallengeMessage::serverchallenge() const { + // @@protoc_insertion_point(field_get:AuthServerChallengeMessage.serverChallenge) + return _internal_serverchallenge(); } -inline void AuthServerChallengeMessage::set_serverchallenge(const ::std::string& value) { - set_has_serverchallenge(); - if (serverchallenge_ == &::google::protobuf::internal::kEmptyString) { - serverchallenge_ = new ::std::string; - } - serverchallenge_->assign(value); +inline void AuthServerChallengeMessage::set_serverchallenge(const std::string& value) { + _internal_set_serverchallenge(value); + // @@protoc_insertion_point(field_set:AuthServerChallengeMessage.serverChallenge) +} +inline std::string* AuthServerChallengeMessage::mutable_serverchallenge() { + // @@protoc_insertion_point(field_mutable:AuthServerChallengeMessage.serverChallenge) + return _internal_mutable_serverchallenge(); +} +inline const std::string& AuthServerChallengeMessage::_internal_serverchallenge() const { + return serverchallenge_.Get(); +} +inline void AuthServerChallengeMessage::_internal_set_serverchallenge(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + serverchallenge_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void AuthServerChallengeMessage::set_serverchallenge(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + serverchallenge_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:AuthServerChallengeMessage.serverChallenge) } inline void AuthServerChallengeMessage::set_serverchallenge(const char* value) { - set_has_serverchallenge(); - if (serverchallenge_ == &::google::protobuf::internal::kEmptyString) { - serverchallenge_ = new ::std::string; - } - serverchallenge_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + serverchallenge_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:AuthServerChallengeMessage.serverChallenge) } -inline void AuthServerChallengeMessage::set_serverchallenge(const void* value, size_t size) { - set_has_serverchallenge(); - if (serverchallenge_ == &::google::protobuf::internal::kEmptyString) { - serverchallenge_ = new ::std::string; - } - serverchallenge_->assign(reinterpret_cast(value), size); +inline void AuthServerChallengeMessage::set_serverchallenge(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + serverchallenge_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:AuthServerChallengeMessage.serverChallenge) } -inline ::std::string* AuthServerChallengeMessage::mutable_serverchallenge() { - set_has_serverchallenge(); - if (serverchallenge_ == &::google::protobuf::internal::kEmptyString) { - serverchallenge_ = new ::std::string; - } - return serverchallenge_; +inline std::string* AuthServerChallengeMessage::_internal_mutable_serverchallenge() { + _has_bits_[0] |= 0x00000001u; + return serverchallenge_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* AuthServerChallengeMessage::release_serverchallenge() { - clear_has_serverchallenge(); - if (serverchallenge_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* AuthServerChallengeMessage::release_serverchallenge() { + // @@protoc_insertion_point(field_release:AuthServerChallengeMessage.serverChallenge) + if (!_internal_has_serverchallenge()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return serverchallenge_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AuthServerChallengeMessage::set_allocated_serverchallenge(std::string* serverchallenge) { + if (serverchallenge != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = serverchallenge_; - serverchallenge_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + serverchallenge_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), serverchallenge, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:AuthServerChallengeMessage.serverChallenge) } -inline void AuthServerChallengeMessage::set_allocated_serverchallenge(::std::string* serverchallenge) { - if (serverchallenge_ != &::google::protobuf::internal::kEmptyString) { - delete serverchallenge_; - } - if (serverchallenge) { - set_has_serverchallenge(); - serverchallenge_ = serverchallenge; +inline std::string* AuthServerChallengeMessage::unsafe_arena_release_serverchallenge() { + // @@protoc_insertion_point(field_unsafe_arena_release:AuthServerChallengeMessage.serverChallenge) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return serverchallenge_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void AuthServerChallengeMessage::unsafe_arena_set_allocated_serverchallenge( + std::string* serverchallenge) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (serverchallenge != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_serverchallenge(); - serverchallenge_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + serverchallenge_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + serverchallenge, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:AuthServerChallengeMessage.serverChallenge) } // ------------------------------------------------------------------- @@ -12943,73 +20752,96 @@ inline void AuthServerChallengeMessage::set_allocated_serverchallenge(::std::str // AuthClientResponseMessage // required bytes clientResponse = 1; +inline bool AuthClientResponseMessage::_internal_has_clientresponse() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool AuthClientResponseMessage::has_clientresponse() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AuthClientResponseMessage::set_has_clientresponse() { - _has_bits_[0] |= 0x00000001u; -} -inline void AuthClientResponseMessage::clear_has_clientresponse() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_clientresponse(); } inline void AuthClientResponseMessage::clear_clientresponse() { - if (clientresponse_ != &::google::protobuf::internal::kEmptyString) { - clientresponse_->clear(); - } - clear_has_clientresponse(); + clientresponse_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& AuthClientResponseMessage::clientresponse() const { - return *clientresponse_; +inline const std::string& AuthClientResponseMessage::clientresponse() const { + // @@protoc_insertion_point(field_get:AuthClientResponseMessage.clientResponse) + return _internal_clientresponse(); } -inline void AuthClientResponseMessage::set_clientresponse(const ::std::string& value) { - set_has_clientresponse(); - if (clientresponse_ == &::google::protobuf::internal::kEmptyString) { - clientresponse_ = new ::std::string; - } - clientresponse_->assign(value); +inline void AuthClientResponseMessage::set_clientresponse(const std::string& value) { + _internal_set_clientresponse(value); + // @@protoc_insertion_point(field_set:AuthClientResponseMessage.clientResponse) +} +inline std::string* AuthClientResponseMessage::mutable_clientresponse() { + // @@protoc_insertion_point(field_mutable:AuthClientResponseMessage.clientResponse) + return _internal_mutable_clientresponse(); +} +inline const std::string& AuthClientResponseMessage::_internal_clientresponse() const { + return clientresponse_.Get(); +} +inline void AuthClientResponseMessage::_internal_set_clientresponse(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + clientresponse_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void AuthClientResponseMessage::set_clientresponse(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + clientresponse_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:AuthClientResponseMessage.clientResponse) } inline void AuthClientResponseMessage::set_clientresponse(const char* value) { - set_has_clientresponse(); - if (clientresponse_ == &::google::protobuf::internal::kEmptyString) { - clientresponse_ = new ::std::string; - } - clientresponse_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + clientresponse_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:AuthClientResponseMessage.clientResponse) } -inline void AuthClientResponseMessage::set_clientresponse(const void* value, size_t size) { - set_has_clientresponse(); - if (clientresponse_ == &::google::protobuf::internal::kEmptyString) { - clientresponse_ = new ::std::string; - } - clientresponse_->assign(reinterpret_cast(value), size); +inline void AuthClientResponseMessage::set_clientresponse(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + clientresponse_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:AuthClientResponseMessage.clientResponse) } -inline ::std::string* AuthClientResponseMessage::mutable_clientresponse() { - set_has_clientresponse(); - if (clientresponse_ == &::google::protobuf::internal::kEmptyString) { - clientresponse_ = new ::std::string; - } - return clientresponse_; +inline std::string* AuthClientResponseMessage::_internal_mutable_clientresponse() { + _has_bits_[0] |= 0x00000001u; + return clientresponse_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* AuthClientResponseMessage::release_clientresponse() { - clear_has_clientresponse(); - if (clientresponse_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* AuthClientResponseMessage::release_clientresponse() { + // @@protoc_insertion_point(field_release:AuthClientResponseMessage.clientResponse) + if (!_internal_has_clientresponse()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return clientresponse_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AuthClientResponseMessage::set_allocated_clientresponse(std::string* clientresponse) { + if (clientresponse != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = clientresponse_; - clientresponse_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + clientresponse_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), clientresponse, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:AuthClientResponseMessage.clientResponse) } -inline void AuthClientResponseMessage::set_allocated_clientresponse(::std::string* clientresponse) { - if (clientresponse_ != &::google::protobuf::internal::kEmptyString) { - delete clientresponse_; - } - if (clientresponse) { - set_has_clientresponse(); - clientresponse_ = clientresponse; +inline std::string* AuthClientResponseMessage::unsafe_arena_release_clientresponse() { + // @@protoc_insertion_point(field_unsafe_arena_release:AuthClientResponseMessage.clientResponse) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return clientresponse_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void AuthClientResponseMessage::unsafe_arena_set_allocated_clientresponse( + std::string* clientresponse) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (clientresponse != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_clientresponse(); - clientresponse_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + clientresponse_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + clientresponse, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:AuthClientResponseMessage.clientResponse) } // ------------------------------------------------------------------- @@ -13017,73 +20849,96 @@ inline void AuthClientResponseMessage::set_allocated_clientresponse(::std::strin // AuthServerVerificationMessage // required bytes serverVerification = 1; +inline bool AuthServerVerificationMessage::_internal_has_serververification() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool AuthServerVerificationMessage::has_serververification() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AuthServerVerificationMessage::set_has_serververification() { - _has_bits_[0] |= 0x00000001u; -} -inline void AuthServerVerificationMessage::clear_has_serververification() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_serververification(); } inline void AuthServerVerificationMessage::clear_serververification() { - if (serververification_ != &::google::protobuf::internal::kEmptyString) { - serververification_->clear(); - } - clear_has_serververification(); + serververification_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& AuthServerVerificationMessage::serververification() const { - return *serververification_; +inline const std::string& AuthServerVerificationMessage::serververification() const { + // @@protoc_insertion_point(field_get:AuthServerVerificationMessage.serverVerification) + return _internal_serververification(); } -inline void AuthServerVerificationMessage::set_serververification(const ::std::string& value) { - set_has_serververification(); - if (serververification_ == &::google::protobuf::internal::kEmptyString) { - serververification_ = new ::std::string; - } - serververification_->assign(value); +inline void AuthServerVerificationMessage::set_serververification(const std::string& value) { + _internal_set_serververification(value); + // @@protoc_insertion_point(field_set:AuthServerVerificationMessage.serverVerification) +} +inline std::string* AuthServerVerificationMessage::mutable_serververification() { + // @@protoc_insertion_point(field_mutable:AuthServerVerificationMessage.serverVerification) + return _internal_mutable_serververification(); +} +inline const std::string& AuthServerVerificationMessage::_internal_serververification() const { + return serververification_.Get(); +} +inline void AuthServerVerificationMessage::_internal_set_serververification(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + serververification_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void AuthServerVerificationMessage::set_serververification(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + serververification_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:AuthServerVerificationMessage.serverVerification) } inline void AuthServerVerificationMessage::set_serververification(const char* value) { - set_has_serververification(); - if (serververification_ == &::google::protobuf::internal::kEmptyString) { - serververification_ = new ::std::string; - } - serververification_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + serververification_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:AuthServerVerificationMessage.serverVerification) } -inline void AuthServerVerificationMessage::set_serververification(const void* value, size_t size) { - set_has_serververification(); - if (serververification_ == &::google::protobuf::internal::kEmptyString) { - serververification_ = new ::std::string; - } - serververification_->assign(reinterpret_cast(value), size); +inline void AuthServerVerificationMessage::set_serververification(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + serververification_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:AuthServerVerificationMessage.serverVerification) } -inline ::std::string* AuthServerVerificationMessage::mutable_serververification() { - set_has_serververification(); - if (serververification_ == &::google::protobuf::internal::kEmptyString) { - serververification_ = new ::std::string; - } - return serververification_; +inline std::string* AuthServerVerificationMessage::_internal_mutable_serververification() { + _has_bits_[0] |= 0x00000001u; + return serververification_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* AuthServerVerificationMessage::release_serververification() { - clear_has_serververification(); - if (serververification_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* AuthServerVerificationMessage::release_serververification() { + // @@protoc_insertion_point(field_release:AuthServerVerificationMessage.serverVerification) + if (!_internal_has_serververification()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return serververification_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AuthServerVerificationMessage::set_allocated_serververification(std::string* serververification) { + if (serververification != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = serververification_; - serververification_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + serververification_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), serververification, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:AuthServerVerificationMessage.serverVerification) } -inline void AuthServerVerificationMessage::set_allocated_serververification(::std::string* serververification) { - if (serververification_ != &::google::protobuf::internal::kEmptyString) { - delete serververification_; - } - if (serververification) { - set_has_serververification(); - serververification_ = serververification; +inline std::string* AuthServerVerificationMessage::unsafe_arena_release_serververification() { + // @@protoc_insertion_point(field_unsafe_arena_release:AuthServerVerificationMessage.serverVerification) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return serververification_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void AuthServerVerificationMessage::unsafe_arena_set_allocated_serververification( + std::string* serververification) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (serververification != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_serververification(); - serververification_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + serververification_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + serververification, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:AuthServerVerificationMessage.serverVerification) } // ------------------------------------------------------------------- @@ -13091,283 +20946,370 @@ inline void AuthServerVerificationMessage::set_allocated_serververification(::st // InitAckMessage // required bytes yourSessionId = 1; +inline bool InitAckMessage::_internal_has_yoursessionid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool InitAckMessage::has_yoursessionid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void InitAckMessage::set_has_yoursessionid() { - _has_bits_[0] |= 0x00000001u; -} -inline void InitAckMessage::clear_has_yoursessionid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_yoursessionid(); } inline void InitAckMessage::clear_yoursessionid() { - if (yoursessionid_ != &::google::protobuf::internal::kEmptyString) { - yoursessionid_->clear(); - } - clear_has_yoursessionid(); + yoursessionid_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& InitAckMessage::yoursessionid() const { - return *yoursessionid_; +inline const std::string& InitAckMessage::yoursessionid() const { + // @@protoc_insertion_point(field_get:InitAckMessage.yourSessionId) + return _internal_yoursessionid(); } -inline void InitAckMessage::set_yoursessionid(const ::std::string& value) { - set_has_yoursessionid(); - if (yoursessionid_ == &::google::protobuf::internal::kEmptyString) { - yoursessionid_ = new ::std::string; - } - yoursessionid_->assign(value); +inline void InitAckMessage::set_yoursessionid(const std::string& value) { + _internal_set_yoursessionid(value); + // @@protoc_insertion_point(field_set:InitAckMessage.yourSessionId) +} +inline std::string* InitAckMessage::mutable_yoursessionid() { + // @@protoc_insertion_point(field_mutable:InitAckMessage.yourSessionId) + return _internal_mutable_yoursessionid(); +} +inline const std::string& InitAckMessage::_internal_yoursessionid() const { + return yoursessionid_.Get(); +} +inline void InitAckMessage::_internal_set_yoursessionid(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + yoursessionid_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void InitAckMessage::set_yoursessionid(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + yoursessionid_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:InitAckMessage.yourSessionId) } inline void InitAckMessage::set_yoursessionid(const char* value) { - set_has_yoursessionid(); - if (yoursessionid_ == &::google::protobuf::internal::kEmptyString) { - yoursessionid_ = new ::std::string; - } - yoursessionid_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + yoursessionid_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:InitAckMessage.yourSessionId) } -inline void InitAckMessage::set_yoursessionid(const void* value, size_t size) { - set_has_yoursessionid(); - if (yoursessionid_ == &::google::protobuf::internal::kEmptyString) { - yoursessionid_ = new ::std::string; - } - yoursessionid_->assign(reinterpret_cast(value), size); +inline void InitAckMessage::set_yoursessionid(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + yoursessionid_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:InitAckMessage.yourSessionId) } -inline ::std::string* InitAckMessage::mutable_yoursessionid() { - set_has_yoursessionid(); - if (yoursessionid_ == &::google::protobuf::internal::kEmptyString) { - yoursessionid_ = new ::std::string; - } - return yoursessionid_; +inline std::string* InitAckMessage::_internal_mutable_yoursessionid() { + _has_bits_[0] |= 0x00000001u; + return yoursessionid_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* InitAckMessage::release_yoursessionid() { - clear_has_yoursessionid(); - if (yoursessionid_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* InitAckMessage::release_yoursessionid() { + // @@protoc_insertion_point(field_release:InitAckMessage.yourSessionId) + if (!_internal_has_yoursessionid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return yoursessionid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void InitAckMessage::set_allocated_yoursessionid(std::string* yoursessionid) { + if (yoursessionid != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = yoursessionid_; - yoursessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + yoursessionid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), yoursessionid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:InitAckMessage.yourSessionId) } -inline void InitAckMessage::set_allocated_yoursessionid(::std::string* yoursessionid) { - if (yoursessionid_ != &::google::protobuf::internal::kEmptyString) { - delete yoursessionid_; - } - if (yoursessionid) { - set_has_yoursessionid(); - yoursessionid_ = yoursessionid; +inline std::string* InitAckMessage::unsafe_arena_release_yoursessionid() { + // @@protoc_insertion_point(field_unsafe_arena_release:InitAckMessage.yourSessionId) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return yoursessionid_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void InitAckMessage::unsafe_arena_set_allocated_yoursessionid( + std::string* yoursessionid) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (yoursessionid != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_yoursessionid(); - yoursessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + yoursessionid_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + yoursessionid, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:InitAckMessage.yourSessionId) } // required uint32 yourPlayerId = 2; +inline bool InitAckMessage::_internal_has_yourplayerid() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool InitAckMessage::has_yourplayerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void InitAckMessage::set_has_yourplayerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void InitAckMessage::clear_has_yourplayerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_yourplayerid(); } inline void InitAckMessage::clear_yourplayerid() { yourplayerid_ = 0u; - clear_has_yourplayerid(); + _has_bits_[0] &= ~0x00000004u; } -inline ::google::protobuf::uint32 InitAckMessage::yourplayerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 InitAckMessage::_internal_yourplayerid() const { return yourplayerid_; } -inline void InitAckMessage::set_yourplayerid(::google::protobuf::uint32 value) { - set_has_yourplayerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 InitAckMessage::yourplayerid() const { + // @@protoc_insertion_point(field_get:InitAckMessage.yourPlayerId) + return _internal_yourplayerid(); +} +inline void InitAckMessage::_internal_set_yourplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000004u; yourplayerid_ = value; } +inline void InitAckMessage::set_yourplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_yourplayerid(value); + // @@protoc_insertion_point(field_set:InitAckMessage.yourPlayerId) +} // optional bytes yourAvatarHash = 3; +inline bool InitAckMessage::_internal_has_youravatarhash() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool InitAckMessage::has_youravatarhash() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void InitAckMessage::set_has_youravatarhash() { - _has_bits_[0] |= 0x00000004u; -} -inline void InitAckMessage::clear_has_youravatarhash() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_youravatarhash(); } inline void InitAckMessage::clear_youravatarhash() { - if (youravatarhash_ != &::google::protobuf::internal::kEmptyString) { - youravatarhash_->clear(); - } - clear_has_youravatarhash(); + youravatarhash_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000002u; } -inline const ::std::string& InitAckMessage::youravatarhash() const { - return *youravatarhash_; +inline const std::string& InitAckMessage::youravatarhash() const { + // @@protoc_insertion_point(field_get:InitAckMessage.yourAvatarHash) + return _internal_youravatarhash(); } -inline void InitAckMessage::set_youravatarhash(const ::std::string& value) { - set_has_youravatarhash(); - if (youravatarhash_ == &::google::protobuf::internal::kEmptyString) { - youravatarhash_ = new ::std::string; - } - youravatarhash_->assign(value); +inline void InitAckMessage::set_youravatarhash(const std::string& value) { + _internal_set_youravatarhash(value); + // @@protoc_insertion_point(field_set:InitAckMessage.yourAvatarHash) +} +inline std::string* InitAckMessage::mutable_youravatarhash() { + // @@protoc_insertion_point(field_mutable:InitAckMessage.yourAvatarHash) + return _internal_mutable_youravatarhash(); +} +inline const std::string& InitAckMessage::_internal_youravatarhash() const { + return youravatarhash_.Get(); +} +inline void InitAckMessage::_internal_set_youravatarhash(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + youravatarhash_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void InitAckMessage::set_youravatarhash(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + youravatarhash_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:InitAckMessage.yourAvatarHash) } inline void InitAckMessage::set_youravatarhash(const char* value) { - set_has_youravatarhash(); - if (youravatarhash_ == &::google::protobuf::internal::kEmptyString) { - youravatarhash_ = new ::std::string; - } - youravatarhash_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + youravatarhash_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:InitAckMessage.yourAvatarHash) } -inline void InitAckMessage::set_youravatarhash(const void* value, size_t size) { - set_has_youravatarhash(); - if (youravatarhash_ == &::google::protobuf::internal::kEmptyString) { - youravatarhash_ = new ::std::string; - } - youravatarhash_->assign(reinterpret_cast(value), size); +inline void InitAckMessage::set_youravatarhash(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + youravatarhash_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:InitAckMessage.yourAvatarHash) } -inline ::std::string* InitAckMessage::mutable_youravatarhash() { - set_has_youravatarhash(); - if (youravatarhash_ == &::google::protobuf::internal::kEmptyString) { - youravatarhash_ = new ::std::string; - } - return youravatarhash_; +inline std::string* InitAckMessage::_internal_mutable_youravatarhash() { + _has_bits_[0] |= 0x00000002u; + return youravatarhash_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* InitAckMessage::release_youravatarhash() { - clear_has_youravatarhash(); - if (youravatarhash_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* InitAckMessage::release_youravatarhash() { + // @@protoc_insertion_point(field_release:InitAckMessage.yourAvatarHash) + if (!_internal_has_youravatarhash()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return youravatarhash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void InitAckMessage::set_allocated_youravatarhash(std::string* youravatarhash) { + if (youravatarhash != nullptr) { + _has_bits_[0] |= 0x00000002u; } else { - ::std::string* temp = youravatarhash_; - youravatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000002u; } + youravatarhash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), youravatarhash, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:InitAckMessage.yourAvatarHash) } -inline void InitAckMessage::set_allocated_youravatarhash(::std::string* youravatarhash) { - if (youravatarhash_ != &::google::protobuf::internal::kEmptyString) { - delete youravatarhash_; - } - if (youravatarhash) { - set_has_youravatarhash(); - youravatarhash_ = youravatarhash; +inline std::string* InitAckMessage::unsafe_arena_release_youravatarhash() { + // @@protoc_insertion_point(field_unsafe_arena_release:InitAckMessage.yourAvatarHash) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000002u; + return youravatarhash_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void InitAckMessage::unsafe_arena_set_allocated_youravatarhash( + std::string* youravatarhash) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (youravatarhash != nullptr) { + _has_bits_[0] |= 0x00000002u; } else { - clear_has_youravatarhash(); - youravatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000002u; } + youravatarhash_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + youravatarhash, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:InitAckMessage.yourAvatarHash) } // optional uint32 rejoinGameId = 4; +inline bool InitAckMessage::_internal_has_rejoingameid() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool InitAckMessage::has_rejoingameid() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void InitAckMessage::set_has_rejoingameid() { - _has_bits_[0] |= 0x00000008u; -} -inline void InitAckMessage::clear_has_rejoingameid() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_rejoingameid(); } inline void InitAckMessage::clear_rejoingameid() { rejoingameid_ = 0u; - clear_has_rejoingameid(); + _has_bits_[0] &= ~0x00000008u; } -inline ::google::protobuf::uint32 InitAckMessage::rejoingameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 InitAckMessage::_internal_rejoingameid() const { return rejoingameid_; } -inline void InitAckMessage::set_rejoingameid(::google::protobuf::uint32 value) { - set_has_rejoingameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 InitAckMessage::rejoingameid() const { + // @@protoc_insertion_point(field_get:InitAckMessage.rejoinGameId) + return _internal_rejoingameid(); +} +inline void InitAckMessage::_internal_set_rejoingameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000008u; rejoingameid_ = value; } +inline void InitAckMessage::set_rejoingameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_rejoingameid(value); + // @@protoc_insertion_point(field_set:InitAckMessage.rejoinGameId) +} // ------------------------------------------------------------------- // AvatarRequestMessage // required uint32 requestId = 1; +inline bool AvatarRequestMessage::_internal_has_requestid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool AvatarRequestMessage::has_requestid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AvatarRequestMessage::set_has_requestid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AvatarRequestMessage::clear_has_requestid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_requestid(); } inline void AvatarRequestMessage::clear_requestid() { requestid_ = 0u; - clear_has_requestid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 AvatarRequestMessage::requestid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AvatarRequestMessage::_internal_requestid() const { return requestid_; } -inline void AvatarRequestMessage::set_requestid(::google::protobuf::uint32 value) { - set_has_requestid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AvatarRequestMessage::requestid() const { + // @@protoc_insertion_point(field_get:AvatarRequestMessage.requestId) + return _internal_requestid(); +} +inline void AvatarRequestMessage::_internal_set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; requestid_ = value; } +inline void AvatarRequestMessage::set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_requestid(value); + // @@protoc_insertion_point(field_set:AvatarRequestMessage.requestId) +} // required bytes avatarHash = 2; +inline bool AvatarRequestMessage::_internal_has_avatarhash() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool AvatarRequestMessage::has_avatarhash() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AvatarRequestMessage::set_has_avatarhash() { - _has_bits_[0] |= 0x00000002u; -} -inline void AvatarRequestMessage::clear_has_avatarhash() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_avatarhash(); } inline void AvatarRequestMessage::clear_avatarhash() { - if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { - avatarhash_->clear(); - } - clear_has_avatarhash(); + avatarhash_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& AvatarRequestMessage::avatarhash() const { - return *avatarhash_; +inline const std::string& AvatarRequestMessage::avatarhash() const { + // @@protoc_insertion_point(field_get:AvatarRequestMessage.avatarHash) + return _internal_avatarhash(); } -inline void AvatarRequestMessage::set_avatarhash(const ::std::string& value) { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { - avatarhash_ = new ::std::string; - } - avatarhash_->assign(value); +inline void AvatarRequestMessage::set_avatarhash(const std::string& value) { + _internal_set_avatarhash(value); + // @@protoc_insertion_point(field_set:AvatarRequestMessage.avatarHash) +} +inline std::string* AvatarRequestMessage::mutable_avatarhash() { + // @@protoc_insertion_point(field_mutable:AvatarRequestMessage.avatarHash) + return _internal_mutable_avatarhash(); +} +inline const std::string& AvatarRequestMessage::_internal_avatarhash() const { + return avatarhash_.Get(); +} +inline void AvatarRequestMessage::_internal_set_avatarhash(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + avatarhash_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void AvatarRequestMessage::set_avatarhash(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + avatarhash_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:AvatarRequestMessage.avatarHash) } inline void AvatarRequestMessage::set_avatarhash(const char* value) { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { - avatarhash_ = new ::std::string; - } - avatarhash_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + avatarhash_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:AvatarRequestMessage.avatarHash) } -inline void AvatarRequestMessage::set_avatarhash(const void* value, size_t size) { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { - avatarhash_ = new ::std::string; - } - avatarhash_->assign(reinterpret_cast(value), size); +inline void AvatarRequestMessage::set_avatarhash(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + avatarhash_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:AvatarRequestMessage.avatarHash) } -inline ::std::string* AvatarRequestMessage::mutable_avatarhash() { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { - avatarhash_ = new ::std::string; - } - return avatarhash_; +inline std::string* AvatarRequestMessage::_internal_mutable_avatarhash() { + _has_bits_[0] |= 0x00000001u; + return avatarhash_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* AvatarRequestMessage::release_avatarhash() { - clear_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* AvatarRequestMessage::release_avatarhash() { + // @@protoc_insertion_point(field_release:AvatarRequestMessage.avatarHash) + if (!_internal_has_avatarhash()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return avatarhash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AvatarRequestMessage::set_allocated_avatarhash(std::string* avatarhash) { + if (avatarhash != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = avatarhash_; - avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + avatarhash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), avatarhash, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:AvatarRequestMessage.avatarHash) } -inline void AvatarRequestMessage::set_allocated_avatarhash(::std::string* avatarhash) { - if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { - delete avatarhash_; - } - if (avatarhash) { - set_has_avatarhash(); - avatarhash_ = avatarhash; +inline std::string* AvatarRequestMessage::unsafe_arena_release_avatarhash() { + // @@protoc_insertion_point(field_unsafe_arena_release:AvatarRequestMessage.avatarHash) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return avatarhash_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void AvatarRequestMessage::unsafe_arena_set_allocated_avatarhash( + std::string* avatarhash) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (avatarhash != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_avatarhash(); - avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + avatarhash_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + avatarhash, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:AvatarRequestMessage.avatarHash) } // ------------------------------------------------------------------- @@ -13375,166 +21317,213 @@ inline void AvatarRequestMessage::set_allocated_avatarhash(::std::string* avatar // AvatarHeaderMessage // required uint32 requestId = 1; +inline bool AvatarHeaderMessage::_internal_has_requestid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool AvatarHeaderMessage::has_requestid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AvatarHeaderMessage::set_has_requestid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AvatarHeaderMessage::clear_has_requestid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_requestid(); } inline void AvatarHeaderMessage::clear_requestid() { requestid_ = 0u; - clear_has_requestid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 AvatarHeaderMessage::requestid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AvatarHeaderMessage::_internal_requestid() const { return requestid_; } -inline void AvatarHeaderMessage::set_requestid(::google::protobuf::uint32 value) { - set_has_requestid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AvatarHeaderMessage::requestid() const { + // @@protoc_insertion_point(field_get:AvatarHeaderMessage.requestId) + return _internal_requestid(); +} +inline void AvatarHeaderMessage::_internal_set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; requestid_ = value; } +inline void AvatarHeaderMessage::set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_requestid(value); + // @@protoc_insertion_point(field_set:AvatarHeaderMessage.requestId) +} // required .NetAvatarType avatarType = 2; +inline bool AvatarHeaderMessage::_internal_has_avatartype() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool AvatarHeaderMessage::has_avatartype() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AvatarHeaderMessage::set_has_avatartype() { - _has_bits_[0] |= 0x00000002u; -} -inline void AvatarHeaderMessage::clear_has_avatartype() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_avatartype(); } inline void AvatarHeaderMessage::clear_avatartype() { avatartype_ = 1; - clear_has_avatartype(); + _has_bits_[0] &= ~0x00000004u; } -inline ::NetAvatarType AvatarHeaderMessage::avatartype() const { +inline ::NetAvatarType AvatarHeaderMessage::_internal_avatartype() const { return static_cast< ::NetAvatarType >(avatartype_); } -inline void AvatarHeaderMessage::set_avatartype(::NetAvatarType value) { +inline ::NetAvatarType AvatarHeaderMessage::avatartype() const { + // @@protoc_insertion_point(field_get:AvatarHeaderMessage.avatarType) + return _internal_avatartype(); +} +inline void AvatarHeaderMessage::_internal_set_avatartype(::NetAvatarType value) { assert(::NetAvatarType_IsValid(value)); - set_has_avatartype(); + _has_bits_[0] |= 0x00000004u; avatartype_ = value; } +inline void AvatarHeaderMessage::set_avatartype(::NetAvatarType value) { + _internal_set_avatartype(value); + // @@protoc_insertion_point(field_set:AvatarHeaderMessage.avatarType) +} // required uint32 avatarSize = 3; +inline bool AvatarHeaderMessage::_internal_has_avatarsize() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool AvatarHeaderMessage::has_avatarsize() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void AvatarHeaderMessage::set_has_avatarsize() { - _has_bits_[0] |= 0x00000004u; -} -inline void AvatarHeaderMessage::clear_has_avatarsize() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_avatarsize(); } inline void AvatarHeaderMessage::clear_avatarsize() { avatarsize_ = 0u; - clear_has_avatarsize(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 AvatarHeaderMessage::avatarsize() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AvatarHeaderMessage::_internal_avatarsize() const { return avatarsize_; } -inline void AvatarHeaderMessage::set_avatarsize(::google::protobuf::uint32 value) { - set_has_avatarsize(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AvatarHeaderMessage::avatarsize() const { + // @@protoc_insertion_point(field_get:AvatarHeaderMessage.avatarSize) + return _internal_avatarsize(); +} +inline void AvatarHeaderMessage::_internal_set_avatarsize(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; avatarsize_ = value; } +inline void AvatarHeaderMessage::set_avatarsize(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_avatarsize(value); + // @@protoc_insertion_point(field_set:AvatarHeaderMessage.avatarSize) +} // ------------------------------------------------------------------- // AvatarDataMessage // required uint32 requestId = 1; +inline bool AvatarDataMessage::_internal_has_requestid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool AvatarDataMessage::has_requestid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AvatarDataMessage::set_has_requestid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AvatarDataMessage::clear_has_requestid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_requestid(); } inline void AvatarDataMessage::clear_requestid() { requestid_ = 0u; - clear_has_requestid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 AvatarDataMessage::requestid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AvatarDataMessage::_internal_requestid() const { return requestid_; } -inline void AvatarDataMessage::set_requestid(::google::protobuf::uint32 value) { - set_has_requestid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AvatarDataMessage::requestid() const { + // @@protoc_insertion_point(field_get:AvatarDataMessage.requestId) + return _internal_requestid(); +} +inline void AvatarDataMessage::_internal_set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; requestid_ = value; } +inline void AvatarDataMessage::set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_requestid(value); + // @@protoc_insertion_point(field_set:AvatarDataMessage.requestId) +} // required bytes avatarBlock = 2; +inline bool AvatarDataMessage::_internal_has_avatarblock() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool AvatarDataMessage::has_avatarblock() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AvatarDataMessage::set_has_avatarblock() { - _has_bits_[0] |= 0x00000002u; -} -inline void AvatarDataMessage::clear_has_avatarblock() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_avatarblock(); } inline void AvatarDataMessage::clear_avatarblock() { - if (avatarblock_ != &::google::protobuf::internal::kEmptyString) { - avatarblock_->clear(); - } - clear_has_avatarblock(); + avatarblock_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& AvatarDataMessage::avatarblock() const { - return *avatarblock_; +inline const std::string& AvatarDataMessage::avatarblock() const { + // @@protoc_insertion_point(field_get:AvatarDataMessage.avatarBlock) + return _internal_avatarblock(); } -inline void AvatarDataMessage::set_avatarblock(const ::std::string& value) { - set_has_avatarblock(); - if (avatarblock_ == &::google::protobuf::internal::kEmptyString) { - avatarblock_ = new ::std::string; - } - avatarblock_->assign(value); +inline void AvatarDataMessage::set_avatarblock(const std::string& value) { + _internal_set_avatarblock(value); + // @@protoc_insertion_point(field_set:AvatarDataMessage.avatarBlock) +} +inline std::string* AvatarDataMessage::mutable_avatarblock() { + // @@protoc_insertion_point(field_mutable:AvatarDataMessage.avatarBlock) + return _internal_mutable_avatarblock(); +} +inline const std::string& AvatarDataMessage::_internal_avatarblock() const { + return avatarblock_.Get(); +} +inline void AvatarDataMessage::_internal_set_avatarblock(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + avatarblock_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void AvatarDataMessage::set_avatarblock(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + avatarblock_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:AvatarDataMessage.avatarBlock) } inline void AvatarDataMessage::set_avatarblock(const char* value) { - set_has_avatarblock(); - if (avatarblock_ == &::google::protobuf::internal::kEmptyString) { - avatarblock_ = new ::std::string; - } - avatarblock_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + avatarblock_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:AvatarDataMessage.avatarBlock) } -inline void AvatarDataMessage::set_avatarblock(const void* value, size_t size) { - set_has_avatarblock(); - if (avatarblock_ == &::google::protobuf::internal::kEmptyString) { - avatarblock_ = new ::std::string; - } - avatarblock_->assign(reinterpret_cast(value), size); +inline void AvatarDataMessage::set_avatarblock(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + avatarblock_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:AvatarDataMessage.avatarBlock) } -inline ::std::string* AvatarDataMessage::mutable_avatarblock() { - set_has_avatarblock(); - if (avatarblock_ == &::google::protobuf::internal::kEmptyString) { - avatarblock_ = new ::std::string; - } - return avatarblock_; +inline std::string* AvatarDataMessage::_internal_mutable_avatarblock() { + _has_bits_[0] |= 0x00000001u; + return avatarblock_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* AvatarDataMessage::release_avatarblock() { - clear_has_avatarblock(); - if (avatarblock_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* AvatarDataMessage::release_avatarblock() { + // @@protoc_insertion_point(field_release:AvatarDataMessage.avatarBlock) + if (!_internal_has_avatarblock()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return avatarblock_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AvatarDataMessage::set_allocated_avatarblock(std::string* avatarblock) { + if (avatarblock != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = avatarblock_; - avatarblock_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + avatarblock_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), avatarblock, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:AvatarDataMessage.avatarBlock) } -inline void AvatarDataMessage::set_allocated_avatarblock(::std::string* avatarblock) { - if (avatarblock_ != &::google::protobuf::internal::kEmptyString) { - delete avatarblock_; - } - if (avatarblock) { - set_has_avatarblock(); - avatarblock_ = avatarblock; +inline std::string* AvatarDataMessage::unsafe_arena_release_avatarblock() { + // @@protoc_insertion_point(field_unsafe_arena_release:AvatarDataMessage.avatarBlock) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return avatarblock_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void AvatarDataMessage::unsafe_arena_set_allocated_avatarblock( + std::string* avatarblock) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (avatarblock != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_avatarblock(); - avatarblock_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + avatarblock_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + avatarblock, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:AvatarDataMessage.avatarBlock) } // ------------------------------------------------------------------- @@ -13542,700 +21531,951 @@ inline void AvatarDataMessage::set_allocated_avatarblock(::std::string* avatarbl // AvatarEndMessage // required uint32 requestId = 1; +inline bool AvatarEndMessage::_internal_has_requestid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool AvatarEndMessage::has_requestid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AvatarEndMessage::set_has_requestid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AvatarEndMessage::clear_has_requestid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_requestid(); } inline void AvatarEndMessage::clear_requestid() { requestid_ = 0u; - clear_has_requestid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 AvatarEndMessage::requestid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AvatarEndMessage::_internal_requestid() const { return requestid_; } -inline void AvatarEndMessage::set_requestid(::google::protobuf::uint32 value) { - set_has_requestid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AvatarEndMessage::requestid() const { + // @@protoc_insertion_point(field_get:AvatarEndMessage.requestId) + return _internal_requestid(); +} +inline void AvatarEndMessage::_internal_set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; requestid_ = value; } +inline void AvatarEndMessage::set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_requestid(value); + // @@protoc_insertion_point(field_set:AvatarEndMessage.requestId) +} // ------------------------------------------------------------------- // UnknownAvatarMessage // required uint32 requestId = 1; +inline bool UnknownAvatarMessage::_internal_has_requestid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool UnknownAvatarMessage::has_requestid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void UnknownAvatarMessage::set_has_requestid() { - _has_bits_[0] |= 0x00000001u; -} -inline void UnknownAvatarMessage::clear_has_requestid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_requestid(); } inline void UnknownAvatarMessage::clear_requestid() { requestid_ = 0u; - clear_has_requestid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 UnknownAvatarMessage::requestid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 UnknownAvatarMessage::_internal_requestid() const { return requestid_; } -inline void UnknownAvatarMessage::set_requestid(::google::protobuf::uint32 value) { - set_has_requestid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 UnknownAvatarMessage::requestid() const { + // @@protoc_insertion_point(field_get:UnknownAvatarMessage.requestId) + return _internal_requestid(); +} +inline void UnknownAvatarMessage::_internal_set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; requestid_ = value; } +inline void UnknownAvatarMessage::set_requestid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_requestid(value); + // @@protoc_insertion_point(field_set:UnknownAvatarMessage.requestId) +} // ------------------------------------------------------------------- // PlayerListMessage // required uint32 playerId = 1; +inline bool PlayerListMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool PlayerListMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void PlayerListMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000001u; -} -inline void PlayerListMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_playerid(); } inline void PlayerListMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 PlayerListMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerListMessage::_internal_playerid() const { return playerid_; } -inline void PlayerListMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerListMessage::playerid() const { + // @@protoc_insertion_point(field_get:PlayerListMessage.playerId) + return _internal_playerid(); +} +inline void PlayerListMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; playerid_ = value; } +inline void PlayerListMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:PlayerListMessage.playerId) +} // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; +inline bool PlayerListMessage::_internal_has_playerlistnotification() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool PlayerListMessage::has_playerlistnotification() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void PlayerListMessage::set_has_playerlistnotification() { - _has_bits_[0] |= 0x00000002u; -} -inline void PlayerListMessage::clear_has_playerlistnotification() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playerlistnotification(); } inline void PlayerListMessage::clear_playerlistnotification() { playerlistnotification_ = 0; - clear_has_playerlistnotification(); + _has_bits_[0] &= ~0x00000002u; } -inline ::PlayerListMessage_PlayerListNotification PlayerListMessage::playerlistnotification() const { +inline ::PlayerListMessage_PlayerListNotification PlayerListMessage::_internal_playerlistnotification() const { return static_cast< ::PlayerListMessage_PlayerListNotification >(playerlistnotification_); } -inline void PlayerListMessage::set_playerlistnotification(::PlayerListMessage_PlayerListNotification value) { +inline ::PlayerListMessage_PlayerListNotification PlayerListMessage::playerlistnotification() const { + // @@protoc_insertion_point(field_get:PlayerListMessage.playerListNotification) + return _internal_playerlistnotification(); +} +inline void PlayerListMessage::_internal_set_playerlistnotification(::PlayerListMessage_PlayerListNotification value) { assert(::PlayerListMessage_PlayerListNotification_IsValid(value)); - set_has_playerlistnotification(); + _has_bits_[0] |= 0x00000002u; playerlistnotification_ = value; } +inline void PlayerListMessage::set_playerlistnotification(::PlayerListMessage_PlayerListNotification value) { + _internal_set_playerlistnotification(value); + // @@protoc_insertion_point(field_set:PlayerListMessage.playerListNotification) +} // ------------------------------------------------------------------- // GameListNewMessage // required uint32 gameId = 1; +inline bool GameListNewMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool GameListNewMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void GameListNewMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameListNewMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void GameListNewMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 GameListNewMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListNewMessage::_internal_gameid() const { return gameid_; } -inline void GameListNewMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListNewMessage::gameid() const { + // @@protoc_insertion_point(field_get:GameListNewMessage.gameId) + return _internal_gameid(); +} +inline void GameListNewMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; gameid_ = value; } +inline void GameListNewMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:GameListNewMessage.gameId) +} // required .NetGameMode gameMode = 2; +inline bool GameListNewMessage::_internal_has_gamemode() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} inline bool GameListNewMessage::has_gamemode() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void GameListNewMessage::set_has_gamemode() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameListNewMessage::clear_has_gamemode() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_gamemode(); } inline void GameListNewMessage::clear_gamemode() { gamemode_ = 1; - clear_has_gamemode(); + _has_bits_[0] &= ~0x00000010u; } -inline ::NetGameMode GameListNewMessage::gamemode() const { +inline ::NetGameMode GameListNewMessage::_internal_gamemode() const { return static_cast< ::NetGameMode >(gamemode_); } -inline void GameListNewMessage::set_gamemode(::NetGameMode value) { +inline ::NetGameMode GameListNewMessage::gamemode() const { + // @@protoc_insertion_point(field_get:GameListNewMessage.gameMode) + return _internal_gamemode(); +} +inline void GameListNewMessage::_internal_set_gamemode(::NetGameMode value) { assert(::NetGameMode_IsValid(value)); - set_has_gamemode(); + _has_bits_[0] |= 0x00000010u; gamemode_ = value; } +inline void GameListNewMessage::set_gamemode(::NetGameMode value) { + _internal_set_gamemode(value); + // @@protoc_insertion_point(field_set:GameListNewMessage.gameMode) +} // required bool isPrivate = 3; +inline bool GameListNewMessage::_internal_has_isprivate() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool GameListNewMessage::has_isprivate() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void GameListNewMessage::set_has_isprivate() { - _has_bits_[0] |= 0x00000004u; -} -inline void GameListNewMessage::clear_has_isprivate() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_isprivate(); } inline void GameListNewMessage::clear_isprivate() { isprivate_ = false; - clear_has_isprivate(); + _has_bits_[0] &= ~0x00000004u; } -inline bool GameListNewMessage::isprivate() const { +inline bool GameListNewMessage::_internal_isprivate() const { return isprivate_; } -inline void GameListNewMessage::set_isprivate(bool value) { - set_has_isprivate(); +inline bool GameListNewMessage::isprivate() const { + // @@protoc_insertion_point(field_get:GameListNewMessage.isPrivate) + return _internal_isprivate(); +} +inline void GameListNewMessage::_internal_set_isprivate(bool value) { + _has_bits_[0] |= 0x00000004u; isprivate_ = value; } +inline void GameListNewMessage::set_isprivate(bool value) { + _internal_set_isprivate(value); + // @@protoc_insertion_point(field_set:GameListNewMessage.isPrivate) +} // repeated uint32 playerIds = 4 [packed = true]; -inline int GameListNewMessage::playerids_size() const { +inline int GameListNewMessage::_internal_playerids_size() const { return playerids_.size(); } +inline int GameListNewMessage::playerids_size() const { + return _internal_playerids_size(); +} inline void GameListNewMessage::clear_playerids() { playerids_.Clear(); } -inline ::google::protobuf::uint32 GameListNewMessage::playerids(int index) const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListNewMessage::_internal_playerids(int index) const { return playerids_.Get(index); } -inline void GameListNewMessage::set_playerids(int index, ::google::protobuf::uint32 value) { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListNewMessage::playerids(int index) const { + // @@protoc_insertion_point(field_get:GameListNewMessage.playerIds) + return _internal_playerids(index); +} +inline void GameListNewMessage::set_playerids(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value) { playerids_.Set(index, value); } -inline void GameListNewMessage::add_playerids(::google::protobuf::uint32 value) { +inline void GameListNewMessage::_internal_add_playerids(::PROTOBUF_NAMESPACE_ID::uint32 value) { playerids_.Add(value); } -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -GameListNewMessage::playerids() const { +inline void GameListNewMessage::add_playerids(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_add_playerids(value); + // @@protoc_insertion_point(field_add:GameListNewMessage.playerIds) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& +GameListNewMessage::_internal_playerids() const { return playerids_; } -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -GameListNewMessage::mutable_playerids() { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& +GameListNewMessage::playerids() const { + // @@protoc_insertion_point(field_list:GameListNewMessage.playerIds) + return _internal_playerids(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* +GameListNewMessage::_internal_mutable_playerids() { return &playerids_; } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* +GameListNewMessage::mutable_playerids() { + // @@protoc_insertion_point(field_mutable_list:GameListNewMessage.playerIds) + return _internal_mutable_playerids(); +} // required uint32 adminPlayerId = 5; +inline bool GameListNewMessage::_internal_has_adminplayerid() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool GameListNewMessage::has_adminplayerid() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void GameListNewMessage::set_has_adminplayerid() { - _has_bits_[0] |= 0x00000010u; -} -inline void GameListNewMessage::clear_has_adminplayerid() { - _has_bits_[0] &= ~0x00000010u; + return _internal_has_adminplayerid(); } inline void GameListNewMessage::clear_adminplayerid() { adminplayerid_ = 0u; - clear_has_adminplayerid(); + _has_bits_[0] &= ~0x00000008u; } -inline ::google::protobuf::uint32 GameListNewMessage::adminplayerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListNewMessage::_internal_adminplayerid() const { return adminplayerid_; } -inline void GameListNewMessage::set_adminplayerid(::google::protobuf::uint32 value) { - set_has_adminplayerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListNewMessage::adminplayerid() const { + // @@protoc_insertion_point(field_get:GameListNewMessage.adminPlayerId) + return _internal_adminplayerid(); +} +inline void GameListNewMessage::_internal_set_adminplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000008u; adminplayerid_ = value; } +inline void GameListNewMessage::set_adminplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_adminplayerid(value); + // @@protoc_insertion_point(field_set:GameListNewMessage.adminPlayerId) +} // required .NetGameInfo gameInfo = 6; +inline bool GameListNewMessage::_internal_has_gameinfo() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || gameinfo_ != nullptr); + return value; +} inline bool GameListNewMessage::has_gameinfo() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void GameListNewMessage::set_has_gameinfo() { - _has_bits_[0] |= 0x00000020u; -} -inline void GameListNewMessage::clear_has_gameinfo() { - _has_bits_[0] &= ~0x00000020u; + return _internal_has_gameinfo(); } inline void GameListNewMessage::clear_gameinfo() { - if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); - clear_has_gameinfo(); + if (gameinfo_ != nullptr) gameinfo_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +inline const ::NetGameInfo& GameListNewMessage::_internal_gameinfo() const { + const ::NetGameInfo* p = gameinfo_; + return p != nullptr ? *p : *reinterpret_cast( + &::_NetGameInfo_default_instance_); } inline const ::NetGameInfo& GameListNewMessage::gameinfo() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gameinfo_ != NULL ? *gameinfo_ : *default_instance().gameinfo_; -#else - return gameinfo_ != NULL ? *gameinfo_ : *default_instance_->gameinfo_; -#endif + // @@protoc_insertion_point(field_get:GameListNewMessage.gameInfo) + return _internal_gameinfo(); } -inline ::NetGameInfo* GameListNewMessage::mutable_gameinfo() { - set_has_gameinfo(); - if (gameinfo_ == NULL) gameinfo_ = new ::NetGameInfo; - return gameinfo_; -} -inline ::NetGameInfo* GameListNewMessage::release_gameinfo() { - clear_has_gameinfo(); - ::NetGameInfo* temp = gameinfo_; - gameinfo_ = NULL; - return temp; -} -inline void GameListNewMessage::set_allocated_gameinfo(::NetGameInfo* gameinfo) { - delete gameinfo_; +inline void GameListNewMessage::unsafe_arena_set_allocated_gameinfo( + ::NetGameInfo* gameinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(gameinfo_); + } gameinfo_ = gameinfo; if (gameinfo) { - set_has_gameinfo(); + _has_bits_[0] |= 0x00000001u; } else { - clear_has_gameinfo(); + _has_bits_[0] &= ~0x00000001u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:GameListNewMessage.gameInfo) +} +inline ::NetGameInfo* GameListNewMessage::release_gameinfo() { + auto temp = unsafe_arena_release_gameinfo(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::NetGameInfo* GameListNewMessage::unsafe_arena_release_gameinfo() { + // @@protoc_insertion_point(field_release:GameListNewMessage.gameInfo) + _has_bits_[0] &= ~0x00000001u; + ::NetGameInfo* temp = gameinfo_; + gameinfo_ = nullptr; + return temp; +} +inline ::NetGameInfo* GameListNewMessage::_internal_mutable_gameinfo() { + _has_bits_[0] |= 0x00000001u; + if (gameinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::NetGameInfo>(GetArena()); + gameinfo_ = p; + } + return gameinfo_; +} +inline ::NetGameInfo* GameListNewMessage::mutable_gameinfo() { + // @@protoc_insertion_point(field_mutable:GameListNewMessage.gameInfo) + return _internal_mutable_gameinfo(); +} +inline void GameListNewMessage::set_allocated_gameinfo(::NetGameInfo* gameinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete gameinfo_; + } + if (gameinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(gameinfo); + if (message_arena != submessage_arena) { + gameinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, gameinfo, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + gameinfo_ = gameinfo; + // @@protoc_insertion_point(field_set_allocated:GameListNewMessage.gameInfo) } // repeated uint32 spectatorIds = 7 [packed = true]; -inline int GameListNewMessage::spectatorids_size() const { +inline int GameListNewMessage::_internal_spectatorids_size() const { return spectatorids_.size(); } +inline int GameListNewMessage::spectatorids_size() const { + return _internal_spectatorids_size(); +} inline void GameListNewMessage::clear_spectatorids() { spectatorids_.Clear(); } -inline ::google::protobuf::uint32 GameListNewMessage::spectatorids(int index) const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListNewMessage::_internal_spectatorids(int index) const { return spectatorids_.Get(index); } -inline void GameListNewMessage::set_spectatorids(int index, ::google::protobuf::uint32 value) { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListNewMessage::spectatorids(int index) const { + // @@protoc_insertion_point(field_get:GameListNewMessage.spectatorIds) + return _internal_spectatorids(index); +} +inline void GameListNewMessage::set_spectatorids(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value) { spectatorids_.Set(index, value); } -inline void GameListNewMessage::add_spectatorids(::google::protobuf::uint32 value) { +inline void GameListNewMessage::_internal_add_spectatorids(::PROTOBUF_NAMESPACE_ID::uint32 value) { spectatorids_.Add(value); } -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -GameListNewMessage::spectatorids() const { +inline void GameListNewMessage::add_spectatorids(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_add_spectatorids(value); + // @@protoc_insertion_point(field_add:GameListNewMessage.spectatorIds) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& +GameListNewMessage::_internal_spectatorids() const { return spectatorids_; } -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -GameListNewMessage::mutable_spectatorids() { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& +GameListNewMessage::spectatorids() const { + // @@protoc_insertion_point(field_list:GameListNewMessage.spectatorIds) + return _internal_spectatorids(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* +GameListNewMessage::_internal_mutable_spectatorids() { return &spectatorids_; } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* +GameListNewMessage::mutable_spectatorids() { + // @@protoc_insertion_point(field_mutable_list:GameListNewMessage.spectatorIds) + return _internal_mutable_spectatorids(); +} // ------------------------------------------------------------------- // GameListUpdateMessage // required uint32 gameId = 1; +inline bool GameListUpdateMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool GameListUpdateMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void GameListUpdateMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameListUpdateMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void GameListUpdateMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 GameListUpdateMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListUpdateMessage::_internal_gameid() const { return gameid_; } -inline void GameListUpdateMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListUpdateMessage::gameid() const { + // @@protoc_insertion_point(field_get:GameListUpdateMessage.gameId) + return _internal_gameid(); +} +inline void GameListUpdateMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void GameListUpdateMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:GameListUpdateMessage.gameId) +} // required .NetGameMode gameMode = 2; +inline bool GameListUpdateMessage::_internal_has_gamemode() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool GameListUpdateMessage::has_gamemode() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void GameListUpdateMessage::set_has_gamemode() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameListUpdateMessage::clear_has_gamemode() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_gamemode(); } inline void GameListUpdateMessage::clear_gamemode() { gamemode_ = 1; - clear_has_gamemode(); + _has_bits_[0] &= ~0x00000002u; } -inline ::NetGameMode GameListUpdateMessage::gamemode() const { +inline ::NetGameMode GameListUpdateMessage::_internal_gamemode() const { return static_cast< ::NetGameMode >(gamemode_); } -inline void GameListUpdateMessage::set_gamemode(::NetGameMode value) { +inline ::NetGameMode GameListUpdateMessage::gamemode() const { + // @@protoc_insertion_point(field_get:GameListUpdateMessage.gameMode) + return _internal_gamemode(); +} +inline void GameListUpdateMessage::_internal_set_gamemode(::NetGameMode value) { assert(::NetGameMode_IsValid(value)); - set_has_gamemode(); + _has_bits_[0] |= 0x00000002u; gamemode_ = value; } +inline void GameListUpdateMessage::set_gamemode(::NetGameMode value) { + _internal_set_gamemode(value); + // @@protoc_insertion_point(field_set:GameListUpdateMessage.gameMode) +} // ------------------------------------------------------------------- // GameListPlayerJoinedMessage // required uint32 gameId = 1; +inline bool GameListPlayerJoinedMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool GameListPlayerJoinedMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void GameListPlayerJoinedMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameListPlayerJoinedMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void GameListPlayerJoinedMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 GameListPlayerJoinedMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListPlayerJoinedMessage::_internal_gameid() const { return gameid_; } -inline void GameListPlayerJoinedMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListPlayerJoinedMessage::gameid() const { + // @@protoc_insertion_point(field_get:GameListPlayerJoinedMessage.gameId) + return _internal_gameid(); +} +inline void GameListPlayerJoinedMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void GameListPlayerJoinedMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:GameListPlayerJoinedMessage.gameId) +} // required uint32 playerId = 2; +inline bool GameListPlayerJoinedMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool GameListPlayerJoinedMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void GameListPlayerJoinedMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameListPlayerJoinedMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playerid(); } inline void GameListPlayerJoinedMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 GameListPlayerJoinedMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListPlayerJoinedMessage::_internal_playerid() const { return playerid_; } -inline void GameListPlayerJoinedMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListPlayerJoinedMessage::playerid() const { + // @@protoc_insertion_point(field_get:GameListPlayerJoinedMessage.playerId) + return _internal_playerid(); +} +inline void GameListPlayerJoinedMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; playerid_ = value; } +inline void GameListPlayerJoinedMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:GameListPlayerJoinedMessage.playerId) +} // ------------------------------------------------------------------- // GameListPlayerLeftMessage // required uint32 gameId = 1; +inline bool GameListPlayerLeftMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool GameListPlayerLeftMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void GameListPlayerLeftMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameListPlayerLeftMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void GameListPlayerLeftMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 GameListPlayerLeftMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListPlayerLeftMessage::_internal_gameid() const { return gameid_; } -inline void GameListPlayerLeftMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListPlayerLeftMessage::gameid() const { + // @@protoc_insertion_point(field_get:GameListPlayerLeftMessage.gameId) + return _internal_gameid(); +} +inline void GameListPlayerLeftMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void GameListPlayerLeftMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:GameListPlayerLeftMessage.gameId) +} // required uint32 playerId = 2; +inline bool GameListPlayerLeftMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool GameListPlayerLeftMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void GameListPlayerLeftMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameListPlayerLeftMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playerid(); } inline void GameListPlayerLeftMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 GameListPlayerLeftMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListPlayerLeftMessage::_internal_playerid() const { return playerid_; } -inline void GameListPlayerLeftMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListPlayerLeftMessage::playerid() const { + // @@protoc_insertion_point(field_get:GameListPlayerLeftMessage.playerId) + return _internal_playerid(); +} +inline void GameListPlayerLeftMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; playerid_ = value; } +inline void GameListPlayerLeftMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:GameListPlayerLeftMessage.playerId) +} // ------------------------------------------------------------------- // GameListSpectatorJoinedMessage // required uint32 gameId = 1; +inline bool GameListSpectatorJoinedMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool GameListSpectatorJoinedMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void GameListSpectatorJoinedMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameListSpectatorJoinedMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void GameListSpectatorJoinedMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 GameListSpectatorJoinedMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListSpectatorJoinedMessage::_internal_gameid() const { return gameid_; } -inline void GameListSpectatorJoinedMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListSpectatorJoinedMessage::gameid() const { + // @@protoc_insertion_point(field_get:GameListSpectatorJoinedMessage.gameId) + return _internal_gameid(); +} +inline void GameListSpectatorJoinedMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void GameListSpectatorJoinedMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:GameListSpectatorJoinedMessage.gameId) +} // required uint32 playerId = 2; +inline bool GameListSpectatorJoinedMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool GameListSpectatorJoinedMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void GameListSpectatorJoinedMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameListSpectatorJoinedMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playerid(); } inline void GameListSpectatorJoinedMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 GameListSpectatorJoinedMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListSpectatorJoinedMessage::_internal_playerid() const { return playerid_; } -inline void GameListSpectatorJoinedMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListSpectatorJoinedMessage::playerid() const { + // @@protoc_insertion_point(field_get:GameListSpectatorJoinedMessage.playerId) + return _internal_playerid(); +} +inline void GameListSpectatorJoinedMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; playerid_ = value; } +inline void GameListSpectatorJoinedMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:GameListSpectatorJoinedMessage.playerId) +} // ------------------------------------------------------------------- // GameListSpectatorLeftMessage // required uint32 gameId = 1; +inline bool GameListSpectatorLeftMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool GameListSpectatorLeftMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void GameListSpectatorLeftMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameListSpectatorLeftMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void GameListSpectatorLeftMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 GameListSpectatorLeftMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListSpectatorLeftMessage::_internal_gameid() const { return gameid_; } -inline void GameListSpectatorLeftMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListSpectatorLeftMessage::gameid() const { + // @@protoc_insertion_point(field_get:GameListSpectatorLeftMessage.gameId) + return _internal_gameid(); +} +inline void GameListSpectatorLeftMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void GameListSpectatorLeftMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:GameListSpectatorLeftMessage.gameId) +} // required uint32 playerId = 2; +inline bool GameListSpectatorLeftMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool GameListSpectatorLeftMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void GameListSpectatorLeftMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameListSpectatorLeftMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playerid(); } inline void GameListSpectatorLeftMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 GameListSpectatorLeftMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListSpectatorLeftMessage::_internal_playerid() const { return playerid_; } -inline void GameListSpectatorLeftMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListSpectatorLeftMessage::playerid() const { + // @@protoc_insertion_point(field_get:GameListSpectatorLeftMessage.playerId) + return _internal_playerid(); +} +inline void GameListSpectatorLeftMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; playerid_ = value; } +inline void GameListSpectatorLeftMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:GameListSpectatorLeftMessage.playerId) +} // ------------------------------------------------------------------- // GameListAdminChangedMessage // required uint32 gameId = 1; +inline bool GameListAdminChangedMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool GameListAdminChangedMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void GameListAdminChangedMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameListAdminChangedMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void GameListAdminChangedMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 GameListAdminChangedMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListAdminChangedMessage::_internal_gameid() const { return gameid_; } -inline void GameListAdminChangedMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListAdminChangedMessage::gameid() const { + // @@protoc_insertion_point(field_get:GameListAdminChangedMessage.gameId) + return _internal_gameid(); +} +inline void GameListAdminChangedMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void GameListAdminChangedMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:GameListAdminChangedMessage.gameId) +} // required uint32 newAdminPlayerId = 2; +inline bool GameListAdminChangedMessage::_internal_has_newadminplayerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool GameListAdminChangedMessage::has_newadminplayerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void GameListAdminChangedMessage::set_has_newadminplayerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameListAdminChangedMessage::clear_has_newadminplayerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_newadminplayerid(); } inline void GameListAdminChangedMessage::clear_newadminplayerid() { newadminplayerid_ = 0u; - clear_has_newadminplayerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 GameListAdminChangedMessage::newadminplayerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListAdminChangedMessage::_internal_newadminplayerid() const { return newadminplayerid_; } -inline void GameListAdminChangedMessage::set_newadminplayerid(::google::protobuf::uint32 value) { - set_has_newadminplayerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameListAdminChangedMessage::newadminplayerid() const { + // @@protoc_insertion_point(field_get:GameListAdminChangedMessage.newAdminPlayerId) + return _internal_newadminplayerid(); +} +inline void GameListAdminChangedMessage::_internal_set_newadminplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; newadminplayerid_ = value; } +inline void GameListAdminChangedMessage::set_newadminplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_newadminplayerid(value); + // @@protoc_insertion_point(field_set:GameListAdminChangedMessage.newAdminPlayerId) +} // ------------------------------------------------------------------- // PlayerInfoRequestMessage // repeated uint32 playerId = 1 [packed = true]; -inline int PlayerInfoRequestMessage::playerid_size() const { +inline int PlayerInfoRequestMessage::_internal_playerid_size() const { return playerid_.size(); } +inline int PlayerInfoRequestMessage::playerid_size() const { + return _internal_playerid_size(); +} inline void PlayerInfoRequestMessage::clear_playerid() { playerid_.Clear(); } -inline ::google::protobuf::uint32 PlayerInfoRequestMessage::playerid(int index) const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerInfoRequestMessage::_internal_playerid(int index) const { return playerid_.Get(index); } -inline void PlayerInfoRequestMessage::set_playerid(int index, ::google::protobuf::uint32 value) { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerInfoRequestMessage::playerid(int index) const { + // @@protoc_insertion_point(field_get:PlayerInfoRequestMessage.playerId) + return _internal_playerid(index); +} +inline void PlayerInfoRequestMessage::set_playerid(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value) { playerid_.Set(index, value); } -inline void PlayerInfoRequestMessage::add_playerid(::google::protobuf::uint32 value) { +inline void PlayerInfoRequestMessage::_internal_add_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { playerid_.Add(value); } -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -PlayerInfoRequestMessage::playerid() const { +inline void PlayerInfoRequestMessage::add_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_add_playerid(value); + // @@protoc_insertion_point(field_add:PlayerInfoRequestMessage.playerId) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& +PlayerInfoRequestMessage::_internal_playerid() const { return playerid_; } -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -PlayerInfoRequestMessage::mutable_playerid() { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& +PlayerInfoRequestMessage::playerid() const { + // @@protoc_insertion_point(field_list:PlayerInfoRequestMessage.playerId) + return _internal_playerid(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* +PlayerInfoRequestMessage::_internal_mutable_playerid() { return &playerid_; } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* +PlayerInfoRequestMessage::mutable_playerid() { + // @@protoc_insertion_point(field_mutable_list:PlayerInfoRequestMessage.playerId) + return _internal_mutable_playerid(); +} // ------------------------------------------------------------------- // PlayerInfoReplyMessage_PlayerInfoData_AvatarData // required .NetAvatarType avatarType = 1; +inline bool PlayerInfoReplyMessage_PlayerInfoData_AvatarData::_internal_has_avatartype() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool PlayerInfoReplyMessage_PlayerInfoData_AvatarData::has_avatartype() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_has_avatartype() { - _has_bits_[0] |= 0x00000001u; -} -inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::clear_has_avatartype() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_avatartype(); } inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::clear_avatartype() { avatartype_ = 1; - clear_has_avatartype(); + _has_bits_[0] &= ~0x00000002u; } -inline ::NetAvatarType PlayerInfoReplyMessage_PlayerInfoData_AvatarData::avatartype() const { +inline ::NetAvatarType PlayerInfoReplyMessage_PlayerInfoData_AvatarData::_internal_avatartype() const { return static_cast< ::NetAvatarType >(avatartype_); } -inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatartype(::NetAvatarType value) { +inline ::NetAvatarType PlayerInfoReplyMessage_PlayerInfoData_AvatarData::avatartype() const { + // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarType) + return _internal_avatartype(); +} +inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::_internal_set_avatartype(::NetAvatarType value) { assert(::NetAvatarType_IsValid(value)); - set_has_avatartype(); + _has_bits_[0] |= 0x00000002u; avatartype_ = value; } +inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatartype(::NetAvatarType value) { + _internal_set_avatartype(value); + // @@protoc_insertion_point(field_set:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarType) +} // required bytes avatarHash = 2; +inline bool PlayerInfoReplyMessage_PlayerInfoData_AvatarData::_internal_has_avatarhash() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool PlayerInfoReplyMessage_PlayerInfoData_AvatarData::has_avatarhash() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_has_avatarhash() { - _has_bits_[0] |= 0x00000002u; -} -inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::clear_has_avatarhash() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_avatarhash(); } inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::clear_avatarhash() { - if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { - avatarhash_->clear(); - } - clear_has_avatarhash(); + avatarhash_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& PlayerInfoReplyMessage_PlayerInfoData_AvatarData::avatarhash() const { - return *avatarhash_; +inline const std::string& PlayerInfoReplyMessage_PlayerInfoData_AvatarData::avatarhash() const { + // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) + return _internal_avatarhash(); } -inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatarhash(const ::std::string& value) { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { - avatarhash_ = new ::std::string; - } - avatarhash_->assign(value); +inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatarhash(const std::string& value) { + _internal_set_avatarhash(value); + // @@protoc_insertion_point(field_set:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) +} +inline std::string* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::mutable_avatarhash() { + // @@protoc_insertion_point(field_mutable:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) + return _internal_mutable_avatarhash(); +} +inline const std::string& PlayerInfoReplyMessage_PlayerInfoData_AvatarData::_internal_avatarhash() const { + return avatarhash_.Get(); +} +inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::_internal_set_avatarhash(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + avatarhash_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatarhash(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + avatarhash_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) } inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatarhash(const char* value) { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { - avatarhash_ = new ::std::string; - } - avatarhash_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + avatarhash_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) } -inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatarhash(const void* value, size_t size) { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { - avatarhash_ = new ::std::string; - } - avatarhash_->assign(reinterpret_cast(value), size); +inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatarhash(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + avatarhash_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) } -inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::mutable_avatarhash() { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { - avatarhash_ = new ::std::string; - } - return avatarhash_; +inline std::string* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::_internal_mutable_avatarhash() { + _has_bits_[0] |= 0x00000001u; + return avatarhash_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::release_avatarhash() { - clear_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::release_avatarhash() { + // @@protoc_insertion_point(field_release:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) + if (!_internal_has_avatarhash()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return avatarhash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_allocated_avatarhash(std::string* avatarhash) { + if (avatarhash != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = avatarhash_; - avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + avatarhash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), avatarhash, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) } -inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_allocated_avatarhash(::std::string* avatarhash) { - if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { - delete avatarhash_; - } - if (avatarhash) { - set_has_avatarhash(); - avatarhash_ = avatarhash; +inline std::string* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::unsafe_arena_release_avatarhash() { + // @@protoc_insertion_point(field_unsafe_arena_release:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return avatarhash_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::unsafe_arena_set_allocated_avatarhash( + std::string* avatarhash) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (avatarhash != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_avatarhash(); - avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + avatarhash_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + avatarhash, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) } // ------------------------------------------------------------------- @@ -14243,230 +22483,327 @@ inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_allocated_avat // PlayerInfoReplyMessage_PlayerInfoData // required string playerName = 1; +inline bool PlayerInfoReplyMessage_PlayerInfoData::_internal_has_playername() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool PlayerInfoReplyMessage_PlayerInfoData::has_playername() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void PlayerInfoReplyMessage_PlayerInfoData::set_has_playername() { - _has_bits_[0] |= 0x00000001u; -} -inline void PlayerInfoReplyMessage_PlayerInfoData::clear_has_playername() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_playername(); } inline void PlayerInfoReplyMessage_PlayerInfoData::clear_playername() { - if (playername_ != &::google::protobuf::internal::kEmptyString) { - playername_->clear(); - } - clear_has_playername(); + playername_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& PlayerInfoReplyMessage_PlayerInfoData::playername() const { - return *playername_; +inline const std::string& PlayerInfoReplyMessage_PlayerInfoData::playername() const { + // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.playerName) + return _internal_playername(); } -inline void PlayerInfoReplyMessage_PlayerInfoData::set_playername(const ::std::string& value) { - set_has_playername(); - if (playername_ == &::google::protobuf::internal::kEmptyString) { - playername_ = new ::std::string; - } - playername_->assign(value); +inline void PlayerInfoReplyMessage_PlayerInfoData::set_playername(const std::string& value) { + _internal_set_playername(value); + // @@protoc_insertion_point(field_set:PlayerInfoReplyMessage.PlayerInfoData.playerName) +} +inline std::string* PlayerInfoReplyMessage_PlayerInfoData::mutable_playername() { + // @@protoc_insertion_point(field_mutable:PlayerInfoReplyMessage.PlayerInfoData.playerName) + return _internal_mutable_playername(); +} +inline const std::string& PlayerInfoReplyMessage_PlayerInfoData::_internal_playername() const { + return playername_.Get(); +} +inline void PlayerInfoReplyMessage_PlayerInfoData::_internal_set_playername(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + playername_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void PlayerInfoReplyMessage_PlayerInfoData::set_playername(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + playername_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:PlayerInfoReplyMessage.PlayerInfoData.playerName) } inline void PlayerInfoReplyMessage_PlayerInfoData::set_playername(const char* value) { - set_has_playername(); - if (playername_ == &::google::protobuf::internal::kEmptyString) { - playername_ = new ::std::string; - } - playername_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + playername_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:PlayerInfoReplyMessage.PlayerInfoData.playerName) } -inline void PlayerInfoReplyMessage_PlayerInfoData::set_playername(const char* value, size_t size) { - set_has_playername(); - if (playername_ == &::google::protobuf::internal::kEmptyString) { - playername_ = new ::std::string; - } - playername_->assign(reinterpret_cast(value), size); +inline void PlayerInfoReplyMessage_PlayerInfoData::set_playername(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + playername_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:PlayerInfoReplyMessage.PlayerInfoData.playerName) } -inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData::mutable_playername() { - set_has_playername(); - if (playername_ == &::google::protobuf::internal::kEmptyString) { - playername_ = new ::std::string; - } - return playername_; +inline std::string* PlayerInfoReplyMessage_PlayerInfoData::_internal_mutable_playername() { + _has_bits_[0] |= 0x00000001u; + return playername_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData::release_playername() { - clear_has_playername(); - if (playername_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* PlayerInfoReplyMessage_PlayerInfoData::release_playername() { + // @@protoc_insertion_point(field_release:PlayerInfoReplyMessage.PlayerInfoData.playerName) + if (!_internal_has_playername()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return playername_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void PlayerInfoReplyMessage_PlayerInfoData::set_allocated_playername(std::string* playername) { + if (playername != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = playername_; - playername_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + playername_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), playername, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:PlayerInfoReplyMessage.PlayerInfoData.playerName) } -inline void PlayerInfoReplyMessage_PlayerInfoData::set_allocated_playername(::std::string* playername) { - if (playername_ != &::google::protobuf::internal::kEmptyString) { - delete playername_; - } - if (playername) { - set_has_playername(); - playername_ = playername; +inline std::string* PlayerInfoReplyMessage_PlayerInfoData::unsafe_arena_release_playername() { + // @@protoc_insertion_point(field_unsafe_arena_release:PlayerInfoReplyMessage.PlayerInfoData.playerName) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return playername_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void PlayerInfoReplyMessage_PlayerInfoData::unsafe_arena_set_allocated_playername( + std::string* playername) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (playername != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_playername(); - playername_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + playername_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + playername, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PlayerInfoReplyMessage.PlayerInfoData.playerName) } // required bool isHuman = 2; +inline bool PlayerInfoReplyMessage_PlayerInfoData::_internal_has_ishuman() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool PlayerInfoReplyMessage_PlayerInfoData::has_ishuman() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void PlayerInfoReplyMessage_PlayerInfoData::set_has_ishuman() { - _has_bits_[0] |= 0x00000002u; -} -inline void PlayerInfoReplyMessage_PlayerInfoData::clear_has_ishuman() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_ishuman(); } inline void PlayerInfoReplyMessage_PlayerInfoData::clear_ishuman() { ishuman_ = false; - clear_has_ishuman(); + _has_bits_[0] &= ~0x00000008u; } -inline bool PlayerInfoReplyMessage_PlayerInfoData::ishuman() const { +inline bool PlayerInfoReplyMessage_PlayerInfoData::_internal_ishuman() const { return ishuman_; } -inline void PlayerInfoReplyMessage_PlayerInfoData::set_ishuman(bool value) { - set_has_ishuman(); +inline bool PlayerInfoReplyMessage_PlayerInfoData::ishuman() const { + // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.isHuman) + return _internal_ishuman(); +} +inline void PlayerInfoReplyMessage_PlayerInfoData::_internal_set_ishuman(bool value) { + _has_bits_[0] |= 0x00000008u; ishuman_ = value; } +inline void PlayerInfoReplyMessage_PlayerInfoData::set_ishuman(bool value) { + _internal_set_ishuman(value); + // @@protoc_insertion_point(field_set:PlayerInfoReplyMessage.PlayerInfoData.isHuman) +} // required .NetPlayerInfoRights playerRights = 3; +inline bool PlayerInfoReplyMessage_PlayerInfoData::_internal_has_playerrights() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} inline bool PlayerInfoReplyMessage_PlayerInfoData::has_playerrights() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void PlayerInfoReplyMessage_PlayerInfoData::set_has_playerrights() { - _has_bits_[0] |= 0x00000004u; -} -inline void PlayerInfoReplyMessage_PlayerInfoData::clear_has_playerrights() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_playerrights(); } inline void PlayerInfoReplyMessage_PlayerInfoData::clear_playerrights() { playerrights_ = 1; - clear_has_playerrights(); + _has_bits_[0] &= ~0x00000010u; } -inline ::NetPlayerInfoRights PlayerInfoReplyMessage_PlayerInfoData::playerrights() const { +inline ::NetPlayerInfoRights PlayerInfoReplyMessage_PlayerInfoData::_internal_playerrights() const { return static_cast< ::NetPlayerInfoRights >(playerrights_); } -inline void PlayerInfoReplyMessage_PlayerInfoData::set_playerrights(::NetPlayerInfoRights value) { +inline ::NetPlayerInfoRights PlayerInfoReplyMessage_PlayerInfoData::playerrights() const { + // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.playerRights) + return _internal_playerrights(); +} +inline void PlayerInfoReplyMessage_PlayerInfoData::_internal_set_playerrights(::NetPlayerInfoRights value) { assert(::NetPlayerInfoRights_IsValid(value)); - set_has_playerrights(); + _has_bits_[0] |= 0x00000010u; playerrights_ = value; } +inline void PlayerInfoReplyMessage_PlayerInfoData::set_playerrights(::NetPlayerInfoRights value) { + _internal_set_playerrights(value); + // @@protoc_insertion_point(field_set:PlayerInfoReplyMessage.PlayerInfoData.playerRights) +} // optional string countryCode = 4; +inline bool PlayerInfoReplyMessage_PlayerInfoData::_internal_has_countrycode() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool PlayerInfoReplyMessage_PlayerInfoData::has_countrycode() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void PlayerInfoReplyMessage_PlayerInfoData::set_has_countrycode() { - _has_bits_[0] |= 0x00000008u; -} -inline void PlayerInfoReplyMessage_PlayerInfoData::clear_has_countrycode() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_countrycode(); } inline void PlayerInfoReplyMessage_PlayerInfoData::clear_countrycode() { - if (countrycode_ != &::google::protobuf::internal::kEmptyString) { - countrycode_->clear(); - } - clear_has_countrycode(); + countrycode_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000002u; } -inline const ::std::string& PlayerInfoReplyMessage_PlayerInfoData::countrycode() const { - return *countrycode_; +inline const std::string& PlayerInfoReplyMessage_PlayerInfoData::countrycode() const { + // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.countryCode) + return _internal_countrycode(); } -inline void PlayerInfoReplyMessage_PlayerInfoData::set_countrycode(const ::std::string& value) { - set_has_countrycode(); - if (countrycode_ == &::google::protobuf::internal::kEmptyString) { - countrycode_ = new ::std::string; - } - countrycode_->assign(value); +inline void PlayerInfoReplyMessage_PlayerInfoData::set_countrycode(const std::string& value) { + _internal_set_countrycode(value); + // @@protoc_insertion_point(field_set:PlayerInfoReplyMessage.PlayerInfoData.countryCode) +} +inline std::string* PlayerInfoReplyMessage_PlayerInfoData::mutable_countrycode() { + // @@protoc_insertion_point(field_mutable:PlayerInfoReplyMessage.PlayerInfoData.countryCode) + return _internal_mutable_countrycode(); +} +inline const std::string& PlayerInfoReplyMessage_PlayerInfoData::_internal_countrycode() const { + return countrycode_.Get(); +} +inline void PlayerInfoReplyMessage_PlayerInfoData::_internal_set_countrycode(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + countrycode_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void PlayerInfoReplyMessage_PlayerInfoData::set_countrycode(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + countrycode_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:PlayerInfoReplyMessage.PlayerInfoData.countryCode) } inline void PlayerInfoReplyMessage_PlayerInfoData::set_countrycode(const char* value) { - set_has_countrycode(); - if (countrycode_ == &::google::protobuf::internal::kEmptyString) { - countrycode_ = new ::std::string; - } - countrycode_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + countrycode_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:PlayerInfoReplyMessage.PlayerInfoData.countryCode) } -inline void PlayerInfoReplyMessage_PlayerInfoData::set_countrycode(const char* value, size_t size) { - set_has_countrycode(); - if (countrycode_ == &::google::protobuf::internal::kEmptyString) { - countrycode_ = new ::std::string; - } - countrycode_->assign(reinterpret_cast(value), size); +inline void PlayerInfoReplyMessage_PlayerInfoData::set_countrycode(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + countrycode_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:PlayerInfoReplyMessage.PlayerInfoData.countryCode) } -inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData::mutable_countrycode() { - set_has_countrycode(); - if (countrycode_ == &::google::protobuf::internal::kEmptyString) { - countrycode_ = new ::std::string; - } - return countrycode_; +inline std::string* PlayerInfoReplyMessage_PlayerInfoData::_internal_mutable_countrycode() { + _has_bits_[0] |= 0x00000002u; + return countrycode_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData::release_countrycode() { - clear_has_countrycode(); - if (countrycode_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* PlayerInfoReplyMessage_PlayerInfoData::release_countrycode() { + // @@protoc_insertion_point(field_release:PlayerInfoReplyMessage.PlayerInfoData.countryCode) + if (!_internal_has_countrycode()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return countrycode_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void PlayerInfoReplyMessage_PlayerInfoData::set_allocated_countrycode(std::string* countrycode) { + if (countrycode != nullptr) { + _has_bits_[0] |= 0x00000002u; } else { - ::std::string* temp = countrycode_; - countrycode_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000002u; } + countrycode_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), countrycode, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:PlayerInfoReplyMessage.PlayerInfoData.countryCode) } -inline void PlayerInfoReplyMessage_PlayerInfoData::set_allocated_countrycode(::std::string* countrycode) { - if (countrycode_ != &::google::protobuf::internal::kEmptyString) { - delete countrycode_; - } - if (countrycode) { - set_has_countrycode(); - countrycode_ = countrycode; +inline std::string* PlayerInfoReplyMessage_PlayerInfoData::unsafe_arena_release_countrycode() { + // @@protoc_insertion_point(field_unsafe_arena_release:PlayerInfoReplyMessage.PlayerInfoData.countryCode) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000002u; + return countrycode_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void PlayerInfoReplyMessage_PlayerInfoData::unsafe_arena_set_allocated_countrycode( + std::string* countrycode) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (countrycode != nullptr) { + _has_bits_[0] |= 0x00000002u; } else { - clear_has_countrycode(); - countrycode_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000002u; } + countrycode_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + countrycode, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PlayerInfoReplyMessage.PlayerInfoData.countryCode) } // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; +inline bool PlayerInfoReplyMessage_PlayerInfoData::_internal_has_avatardata() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || avatardata_ != nullptr); + return value; +} inline bool PlayerInfoReplyMessage_PlayerInfoData::has_avatardata() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void PlayerInfoReplyMessage_PlayerInfoData::set_has_avatardata() { - _has_bits_[0] |= 0x00000010u; -} -inline void PlayerInfoReplyMessage_PlayerInfoData::clear_has_avatardata() { - _has_bits_[0] &= ~0x00000010u; + return _internal_has_avatardata(); } inline void PlayerInfoReplyMessage_PlayerInfoData::clear_avatardata() { - if (avatardata_ != NULL) avatardata_->::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::Clear(); - clear_has_avatardata(); + if (avatardata_ != nullptr) avatardata_->Clear(); + _has_bits_[0] &= ~0x00000004u; +} +inline const ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData& PlayerInfoReplyMessage_PlayerInfoData::_internal_avatardata() const { + const ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* p = avatardata_; + return p != nullptr ? *p : *reinterpret_cast( + &::_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_default_instance_); } inline const ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData& PlayerInfoReplyMessage_PlayerInfoData::avatardata() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return avatardata_ != NULL ? *avatardata_ : *default_instance().avatardata_; -#else - return avatardata_ != NULL ? *avatardata_ : *default_instance_->avatardata_; -#endif + // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.avatarData) + return _internal_avatardata(); } -inline ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* PlayerInfoReplyMessage_PlayerInfoData::mutable_avatardata() { - set_has_avatardata(); - if (avatardata_ == NULL) avatardata_ = new ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData; - return avatardata_; -} -inline ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* PlayerInfoReplyMessage_PlayerInfoData::release_avatardata() { - clear_has_avatardata(); - ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* temp = avatardata_; - avatardata_ = NULL; - return temp; -} -inline void PlayerInfoReplyMessage_PlayerInfoData::set_allocated_avatardata(::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* avatardata) { - delete avatardata_; +inline void PlayerInfoReplyMessage_PlayerInfoData::unsafe_arena_set_allocated_avatardata( + ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* avatardata) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(avatardata_); + } avatardata_ = avatardata; if (avatardata) { - set_has_avatardata(); + _has_bits_[0] |= 0x00000004u; } else { - clear_has_avatardata(); + _has_bits_[0] &= ~0x00000004u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PlayerInfoReplyMessage.PlayerInfoData.avatarData) +} +inline ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* PlayerInfoReplyMessage_PlayerInfoData::release_avatardata() { + auto temp = unsafe_arena_release_avatardata(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* PlayerInfoReplyMessage_PlayerInfoData::unsafe_arena_release_avatardata() { + // @@protoc_insertion_point(field_release:PlayerInfoReplyMessage.PlayerInfoData.avatarData) + _has_bits_[0] &= ~0x00000004u; + ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* temp = avatardata_; + avatardata_ = nullptr; + return temp; +} +inline ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* PlayerInfoReplyMessage_PlayerInfoData::_internal_mutable_avatardata() { + _has_bits_[0] |= 0x00000004u; + if (avatardata_ == nullptr) { + auto* p = CreateMaybeMessage<::PlayerInfoReplyMessage_PlayerInfoData_AvatarData>(GetArena()); + avatardata_ = p; + } + return avatardata_; +} +inline ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* PlayerInfoReplyMessage_PlayerInfoData::mutable_avatardata() { + // @@protoc_insertion_point(field_mutable:PlayerInfoReplyMessage.PlayerInfoData.avatarData) + return _internal_mutable_avatardata(); +} +inline void PlayerInfoReplyMessage_PlayerInfoData::set_allocated_avatardata(::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* avatardata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete avatardata_; + } + if (avatardata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(avatardata); + if (message_arena != submessage_arena) { + avatardata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, avatardata, submessage_arena); + } + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + avatardata_ = avatardata; + // @@protoc_insertion_point(field_set_allocated:PlayerInfoReplyMessage.PlayerInfoData.avatarData) } // ------------------------------------------------------------------- @@ -14474,67 +22811,112 @@ inline void PlayerInfoReplyMessage_PlayerInfoData::set_allocated_avatardata(::Pl // PlayerInfoReplyMessage // required uint32 playerId = 1; +inline bool PlayerInfoReplyMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool PlayerInfoReplyMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void PlayerInfoReplyMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000001u; -} -inline void PlayerInfoReplyMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_playerid(); } inline void PlayerInfoReplyMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 PlayerInfoReplyMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerInfoReplyMessage::_internal_playerid() const { return playerid_; } -inline void PlayerInfoReplyMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerInfoReplyMessage::playerid() const { + // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.playerId) + return _internal_playerid(); +} +inline void PlayerInfoReplyMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; playerid_ = value; } +inline void PlayerInfoReplyMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:PlayerInfoReplyMessage.playerId) +} // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; +inline bool PlayerInfoReplyMessage::_internal_has_playerinfodata() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || playerinfodata_ != nullptr); + return value; +} inline bool PlayerInfoReplyMessage::has_playerinfodata() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void PlayerInfoReplyMessage::set_has_playerinfodata() { - _has_bits_[0] |= 0x00000002u; -} -inline void PlayerInfoReplyMessage::clear_has_playerinfodata() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playerinfodata(); } inline void PlayerInfoReplyMessage::clear_playerinfodata() { - if (playerinfodata_ != NULL) playerinfodata_->::PlayerInfoReplyMessage_PlayerInfoData::Clear(); - clear_has_playerinfodata(); + if (playerinfodata_ != nullptr) playerinfodata_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +inline const ::PlayerInfoReplyMessage_PlayerInfoData& PlayerInfoReplyMessage::_internal_playerinfodata() const { + const ::PlayerInfoReplyMessage_PlayerInfoData* p = playerinfodata_; + return p != nullptr ? *p : *reinterpret_cast( + &::_PlayerInfoReplyMessage_PlayerInfoData_default_instance_); } inline const ::PlayerInfoReplyMessage_PlayerInfoData& PlayerInfoReplyMessage::playerinfodata() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return playerinfodata_ != NULL ? *playerinfodata_ : *default_instance().playerinfodata_; -#else - return playerinfodata_ != NULL ? *playerinfodata_ : *default_instance_->playerinfodata_; -#endif + // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.playerInfoData) + return _internal_playerinfodata(); } -inline ::PlayerInfoReplyMessage_PlayerInfoData* PlayerInfoReplyMessage::mutable_playerinfodata() { - set_has_playerinfodata(); - if (playerinfodata_ == NULL) playerinfodata_ = new ::PlayerInfoReplyMessage_PlayerInfoData; - return playerinfodata_; -} -inline ::PlayerInfoReplyMessage_PlayerInfoData* PlayerInfoReplyMessage::release_playerinfodata() { - clear_has_playerinfodata(); - ::PlayerInfoReplyMessage_PlayerInfoData* temp = playerinfodata_; - playerinfodata_ = NULL; - return temp; -} -inline void PlayerInfoReplyMessage::set_allocated_playerinfodata(::PlayerInfoReplyMessage_PlayerInfoData* playerinfodata) { - delete playerinfodata_; +inline void PlayerInfoReplyMessage::unsafe_arena_set_allocated_playerinfodata( + ::PlayerInfoReplyMessage_PlayerInfoData* playerinfodata) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(playerinfodata_); + } playerinfodata_ = playerinfodata; if (playerinfodata) { - set_has_playerinfodata(); + _has_bits_[0] |= 0x00000001u; } else { - clear_has_playerinfodata(); + _has_bits_[0] &= ~0x00000001u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PlayerInfoReplyMessage.playerInfoData) +} +inline ::PlayerInfoReplyMessage_PlayerInfoData* PlayerInfoReplyMessage::release_playerinfodata() { + auto temp = unsafe_arena_release_playerinfodata(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::PlayerInfoReplyMessage_PlayerInfoData* PlayerInfoReplyMessage::unsafe_arena_release_playerinfodata() { + // @@protoc_insertion_point(field_release:PlayerInfoReplyMessage.playerInfoData) + _has_bits_[0] &= ~0x00000001u; + ::PlayerInfoReplyMessage_PlayerInfoData* temp = playerinfodata_; + playerinfodata_ = nullptr; + return temp; +} +inline ::PlayerInfoReplyMessage_PlayerInfoData* PlayerInfoReplyMessage::_internal_mutable_playerinfodata() { + _has_bits_[0] |= 0x00000001u; + if (playerinfodata_ == nullptr) { + auto* p = CreateMaybeMessage<::PlayerInfoReplyMessage_PlayerInfoData>(GetArena()); + playerinfodata_ = p; + } + return playerinfodata_; +} +inline ::PlayerInfoReplyMessage_PlayerInfoData* PlayerInfoReplyMessage::mutable_playerinfodata() { + // @@protoc_insertion_point(field_mutable:PlayerInfoReplyMessage.playerInfoData) + return _internal_mutable_playerinfodata(); +} +inline void PlayerInfoReplyMessage::set_allocated_playerinfodata(::PlayerInfoReplyMessage_PlayerInfoData* playerinfodata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete playerinfodata_; + } + if (playerinfodata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(playerinfodata); + if (message_arena != submessage_arena) { + playerinfodata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, playerinfodata, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + playerinfodata_ = playerinfodata; + // @@protoc_insertion_point(field_set_allocated:PlayerInfoReplyMessage.playerInfoData) } // ------------------------------------------------------------------- @@ -14542,1496 +22924,1959 @@ inline void PlayerInfoReplyMessage::set_allocated_playerinfodata(::PlayerInfoRep // SubscriptionRequestMessage // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; +inline bool SubscriptionRequestMessage::_internal_has_subscriptionaction() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool SubscriptionRequestMessage::has_subscriptionaction() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void SubscriptionRequestMessage::set_has_subscriptionaction() { - _has_bits_[0] |= 0x00000001u; -} -inline void SubscriptionRequestMessage::clear_has_subscriptionaction() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_subscriptionaction(); } inline void SubscriptionRequestMessage::clear_subscriptionaction() { subscriptionaction_ = 1; - clear_has_subscriptionaction(); + _has_bits_[0] &= ~0x00000001u; } -inline ::SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::subscriptionaction() const { +inline ::SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::_internal_subscriptionaction() const { return static_cast< ::SubscriptionRequestMessage_SubscriptionAction >(subscriptionaction_); } -inline void SubscriptionRequestMessage::set_subscriptionaction(::SubscriptionRequestMessage_SubscriptionAction value) { +inline ::SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::subscriptionaction() const { + // @@protoc_insertion_point(field_get:SubscriptionRequestMessage.subscriptionAction) + return _internal_subscriptionaction(); +} +inline void SubscriptionRequestMessage::_internal_set_subscriptionaction(::SubscriptionRequestMessage_SubscriptionAction value) { assert(::SubscriptionRequestMessage_SubscriptionAction_IsValid(value)); - set_has_subscriptionaction(); + _has_bits_[0] |= 0x00000001u; subscriptionaction_ = value; } +inline void SubscriptionRequestMessage::set_subscriptionaction(::SubscriptionRequestMessage_SubscriptionAction value) { + _internal_set_subscriptionaction(value); + // @@protoc_insertion_point(field_set:SubscriptionRequestMessage.subscriptionAction) +} // ------------------------------------------------------------------- // JoinExistingGameMessage // required uint32 gameId = 1; +inline bool JoinExistingGameMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool JoinExistingGameMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void JoinExistingGameMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void JoinExistingGameMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void JoinExistingGameMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 JoinExistingGameMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 JoinExistingGameMessage::_internal_gameid() const { return gameid_; } -inline void JoinExistingGameMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 JoinExistingGameMessage::gameid() const { + // @@protoc_insertion_point(field_get:JoinExistingGameMessage.gameId) + return _internal_gameid(); +} +inline void JoinExistingGameMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; gameid_ = value; } +inline void JoinExistingGameMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:JoinExistingGameMessage.gameId) +} // optional string password = 2; +inline bool JoinExistingGameMessage::_internal_has_password() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool JoinExistingGameMessage::has_password() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void JoinExistingGameMessage::set_has_password() { - _has_bits_[0] |= 0x00000002u; -} -inline void JoinExistingGameMessage::clear_has_password() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_password(); } inline void JoinExistingGameMessage::clear_password() { - if (password_ != &::google::protobuf::internal::kEmptyString) { - password_->clear(); - } - clear_has_password(); + password_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& JoinExistingGameMessage::password() const { - return *password_; +inline const std::string& JoinExistingGameMessage::password() const { + // @@protoc_insertion_point(field_get:JoinExistingGameMessage.password) + return _internal_password(); } -inline void JoinExistingGameMessage::set_password(const ::std::string& value) { - set_has_password(); - if (password_ == &::google::protobuf::internal::kEmptyString) { - password_ = new ::std::string; - } - password_->assign(value); +inline void JoinExistingGameMessage::set_password(const std::string& value) { + _internal_set_password(value); + // @@protoc_insertion_point(field_set:JoinExistingGameMessage.password) +} +inline std::string* JoinExistingGameMessage::mutable_password() { + // @@protoc_insertion_point(field_mutable:JoinExistingGameMessage.password) + return _internal_mutable_password(); +} +inline const std::string& JoinExistingGameMessage::_internal_password() const { + return password_.Get(); +} +inline void JoinExistingGameMessage::_internal_set_password(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + password_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void JoinExistingGameMessage::set_password(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + password_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:JoinExistingGameMessage.password) } inline void JoinExistingGameMessage::set_password(const char* value) { - set_has_password(); - if (password_ == &::google::protobuf::internal::kEmptyString) { - password_ = new ::std::string; - } - password_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + password_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:JoinExistingGameMessage.password) } -inline void JoinExistingGameMessage::set_password(const char* value, size_t size) { - set_has_password(); - if (password_ == &::google::protobuf::internal::kEmptyString) { - password_ = new ::std::string; - } - password_->assign(reinterpret_cast(value), size); +inline void JoinExistingGameMessage::set_password(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + password_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:JoinExistingGameMessage.password) } -inline ::std::string* JoinExistingGameMessage::mutable_password() { - set_has_password(); - if (password_ == &::google::protobuf::internal::kEmptyString) { - password_ = new ::std::string; - } - return password_; +inline std::string* JoinExistingGameMessage::_internal_mutable_password() { + _has_bits_[0] |= 0x00000001u; + return password_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* JoinExistingGameMessage::release_password() { - clear_has_password(); - if (password_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* JoinExistingGameMessage::release_password() { + // @@protoc_insertion_point(field_release:JoinExistingGameMessage.password) + if (!_internal_has_password()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return password_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void JoinExistingGameMessage::set_allocated_password(std::string* password) { + if (password != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = password_; - password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + password_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), password, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:JoinExistingGameMessage.password) } -inline void JoinExistingGameMessage::set_allocated_password(::std::string* password) { - if (password_ != &::google::protobuf::internal::kEmptyString) { - delete password_; - } - if (password) { - set_has_password(); - password_ = password; +inline std::string* JoinExistingGameMessage::unsafe_arena_release_password() { + // @@protoc_insertion_point(field_unsafe_arena_release:JoinExistingGameMessage.password) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return password_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void JoinExistingGameMessage::unsafe_arena_set_allocated_password( + std::string* password) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (password != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_password(); - password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + password_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + password, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:JoinExistingGameMessage.password) } // optional bool autoLeave = 3 [default = false]; +inline bool JoinExistingGameMessage::_internal_has_autoleave() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool JoinExistingGameMessage::has_autoleave() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void JoinExistingGameMessage::set_has_autoleave() { - _has_bits_[0] |= 0x00000004u; -} -inline void JoinExistingGameMessage::clear_has_autoleave() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_autoleave(); } inline void JoinExistingGameMessage::clear_autoleave() { autoleave_ = false; - clear_has_autoleave(); + _has_bits_[0] &= ~0x00000004u; } -inline bool JoinExistingGameMessage::autoleave() const { +inline bool JoinExistingGameMessage::_internal_autoleave() const { return autoleave_; } -inline void JoinExistingGameMessage::set_autoleave(bool value) { - set_has_autoleave(); +inline bool JoinExistingGameMessage::autoleave() const { + // @@protoc_insertion_point(field_get:JoinExistingGameMessage.autoLeave) + return _internal_autoleave(); +} +inline void JoinExistingGameMessage::_internal_set_autoleave(bool value) { + _has_bits_[0] |= 0x00000004u; autoleave_ = value; } +inline void JoinExistingGameMessage::set_autoleave(bool value) { + _internal_set_autoleave(value); + // @@protoc_insertion_point(field_set:JoinExistingGameMessage.autoLeave) +} // optional bool spectateOnly = 4 [default = false]; +inline bool JoinExistingGameMessage::_internal_has_spectateonly() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool JoinExistingGameMessage::has_spectateonly() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void JoinExistingGameMessage::set_has_spectateonly() { - _has_bits_[0] |= 0x00000008u; -} -inline void JoinExistingGameMessage::clear_has_spectateonly() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_spectateonly(); } inline void JoinExistingGameMessage::clear_spectateonly() { spectateonly_ = false; - clear_has_spectateonly(); + _has_bits_[0] &= ~0x00000008u; } -inline bool JoinExistingGameMessage::spectateonly() const { +inline bool JoinExistingGameMessage::_internal_spectateonly() const { return spectateonly_; } -inline void JoinExistingGameMessage::set_spectateonly(bool value) { - set_has_spectateonly(); +inline bool JoinExistingGameMessage::spectateonly() const { + // @@protoc_insertion_point(field_get:JoinExistingGameMessage.spectateOnly) + return _internal_spectateonly(); +} +inline void JoinExistingGameMessage::_internal_set_spectateonly(bool value) { + _has_bits_[0] |= 0x00000008u; spectateonly_ = value; } +inline void JoinExistingGameMessage::set_spectateonly(bool value) { + _internal_set_spectateonly(value); + // @@protoc_insertion_point(field_set:JoinExistingGameMessage.spectateOnly) +} // ------------------------------------------------------------------- // JoinNewGameMessage // required .NetGameInfo gameInfo = 1; +inline bool JoinNewGameMessage::_internal_has_gameinfo() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || gameinfo_ != nullptr); + return value; +} inline bool JoinNewGameMessage::has_gameinfo() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void JoinNewGameMessage::set_has_gameinfo() { - _has_bits_[0] |= 0x00000001u; -} -inline void JoinNewGameMessage::clear_has_gameinfo() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameinfo(); } inline void JoinNewGameMessage::clear_gameinfo() { - if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); - clear_has_gameinfo(); + if (gameinfo_ != nullptr) gameinfo_->Clear(); + _has_bits_[0] &= ~0x00000002u; +} +inline const ::NetGameInfo& JoinNewGameMessage::_internal_gameinfo() const { + const ::NetGameInfo* p = gameinfo_; + return p != nullptr ? *p : *reinterpret_cast( + &::_NetGameInfo_default_instance_); } inline const ::NetGameInfo& JoinNewGameMessage::gameinfo() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gameinfo_ != NULL ? *gameinfo_ : *default_instance().gameinfo_; -#else - return gameinfo_ != NULL ? *gameinfo_ : *default_instance_->gameinfo_; -#endif + // @@protoc_insertion_point(field_get:JoinNewGameMessage.gameInfo) + return _internal_gameinfo(); } -inline ::NetGameInfo* JoinNewGameMessage::mutable_gameinfo() { - set_has_gameinfo(); - if (gameinfo_ == NULL) gameinfo_ = new ::NetGameInfo; - return gameinfo_; -} -inline ::NetGameInfo* JoinNewGameMessage::release_gameinfo() { - clear_has_gameinfo(); - ::NetGameInfo* temp = gameinfo_; - gameinfo_ = NULL; - return temp; -} -inline void JoinNewGameMessage::set_allocated_gameinfo(::NetGameInfo* gameinfo) { - delete gameinfo_; +inline void JoinNewGameMessage::unsafe_arena_set_allocated_gameinfo( + ::NetGameInfo* gameinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(gameinfo_); + } gameinfo_ = gameinfo; if (gameinfo) { - set_has_gameinfo(); + _has_bits_[0] |= 0x00000002u; } else { - clear_has_gameinfo(); + _has_bits_[0] &= ~0x00000002u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:JoinNewGameMessage.gameInfo) +} +inline ::NetGameInfo* JoinNewGameMessage::release_gameinfo() { + auto temp = unsafe_arena_release_gameinfo(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::NetGameInfo* JoinNewGameMessage::unsafe_arena_release_gameinfo() { + // @@protoc_insertion_point(field_release:JoinNewGameMessage.gameInfo) + _has_bits_[0] &= ~0x00000002u; + ::NetGameInfo* temp = gameinfo_; + gameinfo_ = nullptr; + return temp; +} +inline ::NetGameInfo* JoinNewGameMessage::_internal_mutable_gameinfo() { + _has_bits_[0] |= 0x00000002u; + if (gameinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::NetGameInfo>(GetArena()); + gameinfo_ = p; + } + return gameinfo_; +} +inline ::NetGameInfo* JoinNewGameMessage::mutable_gameinfo() { + // @@protoc_insertion_point(field_mutable:JoinNewGameMessage.gameInfo) + return _internal_mutable_gameinfo(); +} +inline void JoinNewGameMessage::set_allocated_gameinfo(::NetGameInfo* gameinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete gameinfo_; + } + if (gameinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(gameinfo); + if (message_arena != submessage_arena) { + gameinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, gameinfo, submessage_arena); + } + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + gameinfo_ = gameinfo; + // @@protoc_insertion_point(field_set_allocated:JoinNewGameMessage.gameInfo) } // optional string password = 2; +inline bool JoinNewGameMessage::_internal_has_password() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool JoinNewGameMessage::has_password() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void JoinNewGameMessage::set_has_password() { - _has_bits_[0] |= 0x00000002u; -} -inline void JoinNewGameMessage::clear_has_password() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_password(); } inline void JoinNewGameMessage::clear_password() { - if (password_ != &::google::protobuf::internal::kEmptyString) { - password_->clear(); - } - clear_has_password(); + password_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& JoinNewGameMessage::password() const { - return *password_; +inline const std::string& JoinNewGameMessage::password() const { + // @@protoc_insertion_point(field_get:JoinNewGameMessage.password) + return _internal_password(); } -inline void JoinNewGameMessage::set_password(const ::std::string& value) { - set_has_password(); - if (password_ == &::google::protobuf::internal::kEmptyString) { - password_ = new ::std::string; - } - password_->assign(value); +inline void JoinNewGameMessage::set_password(const std::string& value) { + _internal_set_password(value); + // @@protoc_insertion_point(field_set:JoinNewGameMessage.password) +} +inline std::string* JoinNewGameMessage::mutable_password() { + // @@protoc_insertion_point(field_mutable:JoinNewGameMessage.password) + return _internal_mutable_password(); +} +inline const std::string& JoinNewGameMessage::_internal_password() const { + return password_.Get(); +} +inline void JoinNewGameMessage::_internal_set_password(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + password_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void JoinNewGameMessage::set_password(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + password_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:JoinNewGameMessage.password) } inline void JoinNewGameMessage::set_password(const char* value) { - set_has_password(); - if (password_ == &::google::protobuf::internal::kEmptyString) { - password_ = new ::std::string; - } - password_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + password_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:JoinNewGameMessage.password) } -inline void JoinNewGameMessage::set_password(const char* value, size_t size) { - set_has_password(); - if (password_ == &::google::protobuf::internal::kEmptyString) { - password_ = new ::std::string; - } - password_->assign(reinterpret_cast(value), size); +inline void JoinNewGameMessage::set_password(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + password_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:JoinNewGameMessage.password) } -inline ::std::string* JoinNewGameMessage::mutable_password() { - set_has_password(); - if (password_ == &::google::protobuf::internal::kEmptyString) { - password_ = new ::std::string; - } - return password_; +inline std::string* JoinNewGameMessage::_internal_mutable_password() { + _has_bits_[0] |= 0x00000001u; + return password_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* JoinNewGameMessage::release_password() { - clear_has_password(); - if (password_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* JoinNewGameMessage::release_password() { + // @@protoc_insertion_point(field_release:JoinNewGameMessage.password) + if (!_internal_has_password()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return password_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void JoinNewGameMessage::set_allocated_password(std::string* password) { + if (password != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = password_; - password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + password_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), password, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:JoinNewGameMessage.password) } -inline void JoinNewGameMessage::set_allocated_password(::std::string* password) { - if (password_ != &::google::protobuf::internal::kEmptyString) { - delete password_; - } - if (password) { - set_has_password(); - password_ = password; +inline std::string* JoinNewGameMessage::unsafe_arena_release_password() { + // @@protoc_insertion_point(field_unsafe_arena_release:JoinNewGameMessage.password) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return password_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void JoinNewGameMessage::unsafe_arena_set_allocated_password( + std::string* password) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (password != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_password(); - password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + password_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + password, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:JoinNewGameMessage.password) } // optional bool autoLeave = 3; +inline bool JoinNewGameMessage::_internal_has_autoleave() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool JoinNewGameMessage::has_autoleave() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void JoinNewGameMessage::set_has_autoleave() { - _has_bits_[0] |= 0x00000004u; -} -inline void JoinNewGameMessage::clear_has_autoleave() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_autoleave(); } inline void JoinNewGameMessage::clear_autoleave() { autoleave_ = false; - clear_has_autoleave(); + _has_bits_[0] &= ~0x00000004u; } -inline bool JoinNewGameMessage::autoleave() const { +inline bool JoinNewGameMessage::_internal_autoleave() const { return autoleave_; } -inline void JoinNewGameMessage::set_autoleave(bool value) { - set_has_autoleave(); +inline bool JoinNewGameMessage::autoleave() const { + // @@protoc_insertion_point(field_get:JoinNewGameMessage.autoLeave) + return _internal_autoleave(); +} +inline void JoinNewGameMessage::_internal_set_autoleave(bool value) { + _has_bits_[0] |= 0x00000004u; autoleave_ = value; } +inline void JoinNewGameMessage::set_autoleave(bool value) { + _internal_set_autoleave(value); + // @@protoc_insertion_point(field_set:JoinNewGameMessage.autoLeave) +} // ------------------------------------------------------------------- // RejoinExistingGameMessage // required uint32 gameId = 1; +inline bool RejoinExistingGameMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool RejoinExistingGameMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void RejoinExistingGameMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void RejoinExistingGameMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void RejoinExistingGameMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 RejoinExistingGameMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 RejoinExistingGameMessage::_internal_gameid() const { return gameid_; } -inline void RejoinExistingGameMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 RejoinExistingGameMessage::gameid() const { + // @@protoc_insertion_point(field_get:RejoinExistingGameMessage.gameId) + return _internal_gameid(); +} +inline void RejoinExistingGameMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void RejoinExistingGameMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:RejoinExistingGameMessage.gameId) +} // optional bool autoLeave = 2; +inline bool RejoinExistingGameMessage::_internal_has_autoleave() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool RejoinExistingGameMessage::has_autoleave() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void RejoinExistingGameMessage::set_has_autoleave() { - _has_bits_[0] |= 0x00000002u; -} -inline void RejoinExistingGameMessage::clear_has_autoleave() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_autoleave(); } inline void RejoinExistingGameMessage::clear_autoleave() { autoleave_ = false; - clear_has_autoleave(); + _has_bits_[0] &= ~0x00000002u; } -inline bool RejoinExistingGameMessage::autoleave() const { +inline bool RejoinExistingGameMessage::_internal_autoleave() const { return autoleave_; } -inline void RejoinExistingGameMessage::set_autoleave(bool value) { - set_has_autoleave(); +inline bool RejoinExistingGameMessage::autoleave() const { + // @@protoc_insertion_point(field_get:RejoinExistingGameMessage.autoLeave) + return _internal_autoleave(); +} +inline void RejoinExistingGameMessage::_internal_set_autoleave(bool value) { + _has_bits_[0] |= 0x00000002u; autoleave_ = value; } +inline void RejoinExistingGameMessage::set_autoleave(bool value) { + _internal_set_autoleave(value); + // @@protoc_insertion_point(field_set:RejoinExistingGameMessage.autoLeave) +} // ------------------------------------------------------------------- // JoinGameAckMessage // required uint32 gameId = 1; +inline bool JoinGameAckMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool JoinGameAckMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void JoinGameAckMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void JoinGameAckMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void JoinGameAckMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 JoinGameAckMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 JoinGameAckMessage::_internal_gameid() const { return gameid_; } -inline void JoinGameAckMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 JoinGameAckMessage::gameid() const { + // @@protoc_insertion_point(field_get:JoinGameAckMessage.gameId) + return _internal_gameid(); +} +inline void JoinGameAckMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; gameid_ = value; } +inline void JoinGameAckMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:JoinGameAckMessage.gameId) +} // required bool areYouGameAdmin = 2; +inline bool JoinGameAckMessage::_internal_has_areyougameadmin() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool JoinGameAckMessage::has_areyougameadmin() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void JoinGameAckMessage::set_has_areyougameadmin() { - _has_bits_[0] |= 0x00000002u; -} -inline void JoinGameAckMessage::clear_has_areyougameadmin() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_areyougameadmin(); } inline void JoinGameAckMessage::clear_areyougameadmin() { areyougameadmin_ = false; - clear_has_areyougameadmin(); + _has_bits_[0] &= ~0x00000004u; } -inline bool JoinGameAckMessage::areyougameadmin() const { +inline bool JoinGameAckMessage::_internal_areyougameadmin() const { return areyougameadmin_; } -inline void JoinGameAckMessage::set_areyougameadmin(bool value) { - set_has_areyougameadmin(); +inline bool JoinGameAckMessage::areyougameadmin() const { + // @@protoc_insertion_point(field_get:JoinGameAckMessage.areYouGameAdmin) + return _internal_areyougameadmin(); +} +inline void JoinGameAckMessage::_internal_set_areyougameadmin(bool value) { + _has_bits_[0] |= 0x00000004u; areyougameadmin_ = value; } +inline void JoinGameAckMessage::set_areyougameadmin(bool value) { + _internal_set_areyougameadmin(value); + // @@protoc_insertion_point(field_set:JoinGameAckMessage.areYouGameAdmin) +} // required .NetGameInfo gameInfo = 3; +inline bool JoinGameAckMessage::_internal_has_gameinfo() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || gameinfo_ != nullptr); + return value; +} inline bool JoinGameAckMessage::has_gameinfo() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void JoinGameAckMessage::set_has_gameinfo() { - _has_bits_[0] |= 0x00000004u; -} -inline void JoinGameAckMessage::clear_has_gameinfo() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_gameinfo(); } inline void JoinGameAckMessage::clear_gameinfo() { - if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); - clear_has_gameinfo(); + if (gameinfo_ != nullptr) gameinfo_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +inline const ::NetGameInfo& JoinGameAckMessage::_internal_gameinfo() const { + const ::NetGameInfo* p = gameinfo_; + return p != nullptr ? *p : *reinterpret_cast( + &::_NetGameInfo_default_instance_); } inline const ::NetGameInfo& JoinGameAckMessage::gameinfo() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gameinfo_ != NULL ? *gameinfo_ : *default_instance().gameinfo_; -#else - return gameinfo_ != NULL ? *gameinfo_ : *default_instance_->gameinfo_; -#endif + // @@protoc_insertion_point(field_get:JoinGameAckMessage.gameInfo) + return _internal_gameinfo(); } -inline ::NetGameInfo* JoinGameAckMessage::mutable_gameinfo() { - set_has_gameinfo(); - if (gameinfo_ == NULL) gameinfo_ = new ::NetGameInfo; - return gameinfo_; -} -inline ::NetGameInfo* JoinGameAckMessage::release_gameinfo() { - clear_has_gameinfo(); - ::NetGameInfo* temp = gameinfo_; - gameinfo_ = NULL; - return temp; -} -inline void JoinGameAckMessage::set_allocated_gameinfo(::NetGameInfo* gameinfo) { - delete gameinfo_; +inline void JoinGameAckMessage::unsafe_arena_set_allocated_gameinfo( + ::NetGameInfo* gameinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(gameinfo_); + } gameinfo_ = gameinfo; if (gameinfo) { - set_has_gameinfo(); + _has_bits_[0] |= 0x00000001u; } else { - clear_has_gameinfo(); + _has_bits_[0] &= ~0x00000001u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:JoinGameAckMessage.gameInfo) +} +inline ::NetGameInfo* JoinGameAckMessage::release_gameinfo() { + auto temp = unsafe_arena_release_gameinfo(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::NetGameInfo* JoinGameAckMessage::unsafe_arena_release_gameinfo() { + // @@protoc_insertion_point(field_release:JoinGameAckMessage.gameInfo) + _has_bits_[0] &= ~0x00000001u; + ::NetGameInfo* temp = gameinfo_; + gameinfo_ = nullptr; + return temp; +} +inline ::NetGameInfo* JoinGameAckMessage::_internal_mutable_gameinfo() { + _has_bits_[0] |= 0x00000001u; + if (gameinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::NetGameInfo>(GetArena()); + gameinfo_ = p; + } + return gameinfo_; +} +inline ::NetGameInfo* JoinGameAckMessage::mutable_gameinfo() { + // @@protoc_insertion_point(field_mutable:JoinGameAckMessage.gameInfo) + return _internal_mutable_gameinfo(); +} +inline void JoinGameAckMessage::set_allocated_gameinfo(::NetGameInfo* gameinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete gameinfo_; + } + if (gameinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(gameinfo); + if (message_arena != submessage_arena) { + gameinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, gameinfo, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + gameinfo_ = gameinfo; + // @@protoc_insertion_point(field_set_allocated:JoinGameAckMessage.gameInfo) } // optional bool spectateOnly = 4; +inline bool JoinGameAckMessage::_internal_has_spectateonly() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool JoinGameAckMessage::has_spectateonly() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void JoinGameAckMessage::set_has_spectateonly() { - _has_bits_[0] |= 0x00000008u; -} -inline void JoinGameAckMessage::clear_has_spectateonly() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_spectateonly(); } inline void JoinGameAckMessage::clear_spectateonly() { spectateonly_ = false; - clear_has_spectateonly(); + _has_bits_[0] &= ~0x00000008u; } -inline bool JoinGameAckMessage::spectateonly() const { +inline bool JoinGameAckMessage::_internal_spectateonly() const { return spectateonly_; } -inline void JoinGameAckMessage::set_spectateonly(bool value) { - set_has_spectateonly(); +inline bool JoinGameAckMessage::spectateonly() const { + // @@protoc_insertion_point(field_get:JoinGameAckMessage.spectateOnly) + return _internal_spectateonly(); +} +inline void JoinGameAckMessage::_internal_set_spectateonly(bool value) { + _has_bits_[0] |= 0x00000008u; spectateonly_ = value; } +inline void JoinGameAckMessage::set_spectateonly(bool value) { + _internal_set_spectateonly(value); + // @@protoc_insertion_point(field_set:JoinGameAckMessage.spectateOnly) +} // ------------------------------------------------------------------- // JoinGameFailedMessage // required uint32 gameId = 1; +inline bool JoinGameFailedMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool JoinGameFailedMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void JoinGameFailedMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void JoinGameFailedMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void JoinGameFailedMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 JoinGameFailedMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 JoinGameFailedMessage::_internal_gameid() const { return gameid_; } -inline void JoinGameFailedMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 JoinGameFailedMessage::gameid() const { + // @@protoc_insertion_point(field_get:JoinGameFailedMessage.gameId) + return _internal_gameid(); +} +inline void JoinGameFailedMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void JoinGameFailedMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:JoinGameFailedMessage.gameId) +} // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; +inline bool JoinGameFailedMessage::_internal_has_joingamefailurereason() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool JoinGameFailedMessage::has_joingamefailurereason() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void JoinGameFailedMessage::set_has_joingamefailurereason() { - _has_bits_[0] |= 0x00000002u; -} -inline void JoinGameFailedMessage::clear_has_joingamefailurereason() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_joingamefailurereason(); } inline void JoinGameFailedMessage::clear_joingamefailurereason() { joingamefailurereason_ = 1; - clear_has_joingamefailurereason(); + _has_bits_[0] &= ~0x00000002u; } -inline ::JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::joingamefailurereason() const { +inline ::JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::_internal_joingamefailurereason() const { return static_cast< ::JoinGameFailedMessage_JoinGameFailureReason >(joingamefailurereason_); } -inline void JoinGameFailedMessage::set_joingamefailurereason(::JoinGameFailedMessage_JoinGameFailureReason value) { +inline ::JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::joingamefailurereason() const { + // @@protoc_insertion_point(field_get:JoinGameFailedMessage.joinGameFailureReason) + return _internal_joingamefailurereason(); +} +inline void JoinGameFailedMessage::_internal_set_joingamefailurereason(::JoinGameFailedMessage_JoinGameFailureReason value) { assert(::JoinGameFailedMessage_JoinGameFailureReason_IsValid(value)); - set_has_joingamefailurereason(); + _has_bits_[0] |= 0x00000002u; joingamefailurereason_ = value; } +inline void JoinGameFailedMessage::set_joingamefailurereason(::JoinGameFailedMessage_JoinGameFailureReason value) { + _internal_set_joingamefailurereason(value); + // @@protoc_insertion_point(field_set:JoinGameFailedMessage.joinGameFailureReason) +} // ------------------------------------------------------------------- // GamePlayerJoinedMessage // required uint32 gameId = 1; +inline bool GamePlayerJoinedMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool GamePlayerJoinedMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void GamePlayerJoinedMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GamePlayerJoinedMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void GamePlayerJoinedMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 GamePlayerJoinedMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GamePlayerJoinedMessage::_internal_gameid() const { return gameid_; } -inline void GamePlayerJoinedMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GamePlayerJoinedMessage::gameid() const { + // @@protoc_insertion_point(field_get:GamePlayerJoinedMessage.gameId) + return _internal_gameid(); +} +inline void GamePlayerJoinedMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void GamePlayerJoinedMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:GamePlayerJoinedMessage.gameId) +} // required uint32 playerId = 2; +inline bool GamePlayerJoinedMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool GamePlayerJoinedMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void GamePlayerJoinedMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GamePlayerJoinedMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playerid(); } inline void GamePlayerJoinedMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 GamePlayerJoinedMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GamePlayerJoinedMessage::_internal_playerid() const { return playerid_; } -inline void GamePlayerJoinedMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GamePlayerJoinedMessage::playerid() const { + // @@protoc_insertion_point(field_get:GamePlayerJoinedMessage.playerId) + return _internal_playerid(); +} +inline void GamePlayerJoinedMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; playerid_ = value; } +inline void GamePlayerJoinedMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:GamePlayerJoinedMessage.playerId) +} // required bool isGameAdmin = 3; +inline bool GamePlayerJoinedMessage::_internal_has_isgameadmin() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool GamePlayerJoinedMessage::has_isgameadmin() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void GamePlayerJoinedMessage::set_has_isgameadmin() { - _has_bits_[0] |= 0x00000004u; -} -inline void GamePlayerJoinedMessage::clear_has_isgameadmin() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_isgameadmin(); } inline void GamePlayerJoinedMessage::clear_isgameadmin() { isgameadmin_ = false; - clear_has_isgameadmin(); + _has_bits_[0] &= ~0x00000004u; } -inline bool GamePlayerJoinedMessage::isgameadmin() const { +inline bool GamePlayerJoinedMessage::_internal_isgameadmin() const { return isgameadmin_; } -inline void GamePlayerJoinedMessage::set_isgameadmin(bool value) { - set_has_isgameadmin(); +inline bool GamePlayerJoinedMessage::isgameadmin() const { + // @@protoc_insertion_point(field_get:GamePlayerJoinedMessage.isGameAdmin) + return _internal_isgameadmin(); +} +inline void GamePlayerJoinedMessage::_internal_set_isgameadmin(bool value) { + _has_bits_[0] |= 0x00000004u; isgameadmin_ = value; } +inline void GamePlayerJoinedMessage::set_isgameadmin(bool value) { + _internal_set_isgameadmin(value); + // @@protoc_insertion_point(field_set:GamePlayerJoinedMessage.isGameAdmin) +} // ------------------------------------------------------------------- // GamePlayerLeftMessage // required uint32 gameId = 1; +inline bool GamePlayerLeftMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool GamePlayerLeftMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void GamePlayerLeftMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GamePlayerLeftMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void GamePlayerLeftMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 GamePlayerLeftMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GamePlayerLeftMessage::_internal_gameid() const { return gameid_; } -inline void GamePlayerLeftMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GamePlayerLeftMessage::gameid() const { + // @@protoc_insertion_point(field_get:GamePlayerLeftMessage.gameId) + return _internal_gameid(); +} +inline void GamePlayerLeftMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void GamePlayerLeftMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:GamePlayerLeftMessage.gameId) +} // required uint32 playerId = 2; +inline bool GamePlayerLeftMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool GamePlayerLeftMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void GamePlayerLeftMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GamePlayerLeftMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playerid(); } inline void GamePlayerLeftMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 GamePlayerLeftMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GamePlayerLeftMessage::_internal_playerid() const { return playerid_; } -inline void GamePlayerLeftMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GamePlayerLeftMessage::playerid() const { + // @@protoc_insertion_point(field_get:GamePlayerLeftMessage.playerId) + return _internal_playerid(); +} +inline void GamePlayerLeftMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; playerid_ = value; } +inline void GamePlayerLeftMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:GamePlayerLeftMessage.playerId) +} // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; +inline bool GamePlayerLeftMessage::_internal_has_gameplayerleftreason() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool GamePlayerLeftMessage::has_gameplayerleftreason() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void GamePlayerLeftMessage::set_has_gameplayerleftreason() { - _has_bits_[0] |= 0x00000004u; -} -inline void GamePlayerLeftMessage::clear_has_gameplayerleftreason() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_gameplayerleftreason(); } inline void GamePlayerLeftMessage::clear_gameplayerleftreason() { gameplayerleftreason_ = 0; - clear_has_gameplayerleftreason(); + _has_bits_[0] &= ~0x00000004u; } -inline ::GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::gameplayerleftreason() const { +inline ::GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::_internal_gameplayerleftreason() const { return static_cast< ::GamePlayerLeftMessage_GamePlayerLeftReason >(gameplayerleftreason_); } -inline void GamePlayerLeftMessage::set_gameplayerleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value) { +inline ::GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::gameplayerleftreason() const { + // @@protoc_insertion_point(field_get:GamePlayerLeftMessage.gamePlayerLeftReason) + return _internal_gameplayerleftreason(); +} +inline void GamePlayerLeftMessage::_internal_set_gameplayerleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value) { assert(::GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(value)); - set_has_gameplayerleftreason(); + _has_bits_[0] |= 0x00000004u; gameplayerleftreason_ = value; } +inline void GamePlayerLeftMessage::set_gameplayerleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value) { + _internal_set_gameplayerleftreason(value); + // @@protoc_insertion_point(field_set:GamePlayerLeftMessage.gamePlayerLeftReason) +} // ------------------------------------------------------------------- // GameSpectatorJoinedMessage // required uint32 gameId = 1; +inline bool GameSpectatorJoinedMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool GameSpectatorJoinedMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void GameSpectatorJoinedMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameSpectatorJoinedMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void GameSpectatorJoinedMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 GameSpectatorJoinedMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameSpectatorJoinedMessage::_internal_gameid() const { return gameid_; } -inline void GameSpectatorJoinedMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameSpectatorJoinedMessage::gameid() const { + // @@protoc_insertion_point(field_get:GameSpectatorJoinedMessage.gameId) + return _internal_gameid(); +} +inline void GameSpectatorJoinedMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void GameSpectatorJoinedMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:GameSpectatorJoinedMessage.gameId) +} // required uint32 playerId = 2; +inline bool GameSpectatorJoinedMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool GameSpectatorJoinedMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void GameSpectatorJoinedMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameSpectatorJoinedMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playerid(); } inline void GameSpectatorJoinedMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 GameSpectatorJoinedMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameSpectatorJoinedMessage::_internal_playerid() const { return playerid_; } -inline void GameSpectatorJoinedMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameSpectatorJoinedMessage::playerid() const { + // @@protoc_insertion_point(field_get:GameSpectatorJoinedMessage.playerId) + return _internal_playerid(); +} +inline void GameSpectatorJoinedMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; playerid_ = value; } +inline void GameSpectatorJoinedMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:GameSpectatorJoinedMessage.playerId) +} // ------------------------------------------------------------------- // GameSpectatorLeftMessage // required uint32 gameId = 1; +inline bool GameSpectatorLeftMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool GameSpectatorLeftMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void GameSpectatorLeftMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameSpectatorLeftMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void GameSpectatorLeftMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 GameSpectatorLeftMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameSpectatorLeftMessage::_internal_gameid() const { return gameid_; } -inline void GameSpectatorLeftMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameSpectatorLeftMessage::gameid() const { + // @@protoc_insertion_point(field_get:GameSpectatorLeftMessage.gameId) + return _internal_gameid(); +} +inline void GameSpectatorLeftMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void GameSpectatorLeftMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:GameSpectatorLeftMessage.gameId) +} // required uint32 playerId = 2; +inline bool GameSpectatorLeftMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool GameSpectatorLeftMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void GameSpectatorLeftMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameSpectatorLeftMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playerid(); } inline void GameSpectatorLeftMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 GameSpectatorLeftMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameSpectatorLeftMessage::_internal_playerid() const { return playerid_; } -inline void GameSpectatorLeftMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameSpectatorLeftMessage::playerid() const { + // @@protoc_insertion_point(field_get:GameSpectatorLeftMessage.playerId) + return _internal_playerid(); +} +inline void GameSpectatorLeftMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; playerid_ = value; } +inline void GameSpectatorLeftMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:GameSpectatorLeftMessage.playerId) +} // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; +inline bool GameSpectatorLeftMessage::_internal_has_gamespectatorleftreason() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool GameSpectatorLeftMessage::has_gamespectatorleftreason() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void GameSpectatorLeftMessage::set_has_gamespectatorleftreason() { - _has_bits_[0] |= 0x00000004u; -} -inline void GameSpectatorLeftMessage::clear_has_gamespectatorleftreason() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_gamespectatorleftreason(); } inline void GameSpectatorLeftMessage::clear_gamespectatorleftreason() { gamespectatorleftreason_ = 0; - clear_has_gamespectatorleftreason(); + _has_bits_[0] &= ~0x00000004u; } -inline ::GamePlayerLeftMessage_GamePlayerLeftReason GameSpectatorLeftMessage::gamespectatorleftreason() const { +inline ::GamePlayerLeftMessage_GamePlayerLeftReason GameSpectatorLeftMessage::_internal_gamespectatorleftreason() const { return static_cast< ::GamePlayerLeftMessage_GamePlayerLeftReason >(gamespectatorleftreason_); } -inline void GameSpectatorLeftMessage::set_gamespectatorleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value) { +inline ::GamePlayerLeftMessage_GamePlayerLeftReason GameSpectatorLeftMessage::gamespectatorleftreason() const { + // @@protoc_insertion_point(field_get:GameSpectatorLeftMessage.gameSpectatorLeftReason) + return _internal_gamespectatorleftreason(); +} +inline void GameSpectatorLeftMessage::_internal_set_gamespectatorleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value) { assert(::GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(value)); - set_has_gamespectatorleftreason(); + _has_bits_[0] |= 0x00000004u; gamespectatorleftreason_ = value; } +inline void GameSpectatorLeftMessage::set_gamespectatorleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value) { + _internal_set_gamespectatorleftreason(value); + // @@protoc_insertion_point(field_set:GameSpectatorLeftMessage.gameSpectatorLeftReason) +} // ------------------------------------------------------------------- // GameAdminChangedMessage // required uint32 gameId = 1; +inline bool GameAdminChangedMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool GameAdminChangedMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void GameAdminChangedMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameAdminChangedMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void GameAdminChangedMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 GameAdminChangedMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameAdminChangedMessage::_internal_gameid() const { return gameid_; } -inline void GameAdminChangedMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameAdminChangedMessage::gameid() const { + // @@protoc_insertion_point(field_get:GameAdminChangedMessage.gameId) + return _internal_gameid(); +} +inline void GameAdminChangedMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void GameAdminChangedMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:GameAdminChangedMessage.gameId) +} // required uint32 newAdminPlayerId = 2; +inline bool GameAdminChangedMessage::_internal_has_newadminplayerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool GameAdminChangedMessage::has_newadminplayerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void GameAdminChangedMessage::set_has_newadminplayerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameAdminChangedMessage::clear_has_newadminplayerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_newadminplayerid(); } inline void GameAdminChangedMessage::clear_newadminplayerid() { newadminplayerid_ = 0u; - clear_has_newadminplayerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 GameAdminChangedMessage::newadminplayerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameAdminChangedMessage::_internal_newadminplayerid() const { return newadminplayerid_; } -inline void GameAdminChangedMessage::set_newadminplayerid(::google::protobuf::uint32 value) { - set_has_newadminplayerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameAdminChangedMessage::newadminplayerid() const { + // @@protoc_insertion_point(field_get:GameAdminChangedMessage.newAdminPlayerId) + return _internal_newadminplayerid(); +} +inline void GameAdminChangedMessage::_internal_set_newadminplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; newadminplayerid_ = value; } +inline void GameAdminChangedMessage::set_newadminplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_newadminplayerid(value); + // @@protoc_insertion_point(field_set:GameAdminChangedMessage.newAdminPlayerId) +} // ------------------------------------------------------------------- // RemovedFromGameMessage // required uint32 gameId = 1; +inline bool RemovedFromGameMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool RemovedFromGameMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void RemovedFromGameMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void RemovedFromGameMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void RemovedFromGameMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 RemovedFromGameMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 RemovedFromGameMessage::_internal_gameid() const { return gameid_; } -inline void RemovedFromGameMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 RemovedFromGameMessage::gameid() const { + // @@protoc_insertion_point(field_get:RemovedFromGameMessage.gameId) + return _internal_gameid(); +} +inline void RemovedFromGameMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void RemovedFromGameMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:RemovedFromGameMessage.gameId) +} // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; +inline bool RemovedFromGameMessage::_internal_has_removedfromgamereason() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool RemovedFromGameMessage::has_removedfromgamereason() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void RemovedFromGameMessage::set_has_removedfromgamereason() { - _has_bits_[0] |= 0x00000002u; -} -inline void RemovedFromGameMessage::clear_has_removedfromgamereason() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_removedfromgamereason(); } inline void RemovedFromGameMessage::clear_removedfromgamereason() { removedfromgamereason_ = 0; - clear_has_removedfromgamereason(); + _has_bits_[0] &= ~0x00000002u; } -inline ::RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::removedfromgamereason() const { +inline ::RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::_internal_removedfromgamereason() const { return static_cast< ::RemovedFromGameMessage_RemovedFromGameReason >(removedfromgamereason_); } -inline void RemovedFromGameMessage::set_removedfromgamereason(::RemovedFromGameMessage_RemovedFromGameReason value) { +inline ::RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::removedfromgamereason() const { + // @@protoc_insertion_point(field_get:RemovedFromGameMessage.removedFromGameReason) + return _internal_removedfromgamereason(); +} +inline void RemovedFromGameMessage::_internal_set_removedfromgamereason(::RemovedFromGameMessage_RemovedFromGameReason value) { assert(::RemovedFromGameMessage_RemovedFromGameReason_IsValid(value)); - set_has_removedfromgamereason(); + _has_bits_[0] |= 0x00000002u; removedfromgamereason_ = value; } +inline void RemovedFromGameMessage::set_removedfromgamereason(::RemovedFromGameMessage_RemovedFromGameReason value) { + _internal_set_removedfromgamereason(value); + // @@protoc_insertion_point(field_set:RemovedFromGameMessage.removedFromGameReason) +} // ------------------------------------------------------------------- // KickPlayerRequestMessage // required uint32 gameId = 1; +inline bool KickPlayerRequestMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool KickPlayerRequestMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void KickPlayerRequestMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void KickPlayerRequestMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void KickPlayerRequestMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 KickPlayerRequestMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 KickPlayerRequestMessage::_internal_gameid() const { return gameid_; } -inline void KickPlayerRequestMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 KickPlayerRequestMessage::gameid() const { + // @@protoc_insertion_point(field_get:KickPlayerRequestMessage.gameId) + return _internal_gameid(); +} +inline void KickPlayerRequestMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void KickPlayerRequestMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:KickPlayerRequestMessage.gameId) +} // required uint32 playerId = 2; +inline bool KickPlayerRequestMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool KickPlayerRequestMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void KickPlayerRequestMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void KickPlayerRequestMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playerid(); } inline void KickPlayerRequestMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 KickPlayerRequestMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 KickPlayerRequestMessage::_internal_playerid() const { return playerid_; } -inline void KickPlayerRequestMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 KickPlayerRequestMessage::playerid() const { + // @@protoc_insertion_point(field_get:KickPlayerRequestMessage.playerId) + return _internal_playerid(); +} +inline void KickPlayerRequestMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; playerid_ = value; } +inline void KickPlayerRequestMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:KickPlayerRequestMessage.playerId) +} // ------------------------------------------------------------------- // LeaveGameRequestMessage // required uint32 gameId = 1; +inline bool LeaveGameRequestMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool LeaveGameRequestMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void LeaveGameRequestMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void LeaveGameRequestMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void LeaveGameRequestMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 LeaveGameRequestMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 LeaveGameRequestMessage::_internal_gameid() const { return gameid_; } -inline void LeaveGameRequestMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 LeaveGameRequestMessage::gameid() const { + // @@protoc_insertion_point(field_get:LeaveGameRequestMessage.gameId) + return _internal_gameid(); +} +inline void LeaveGameRequestMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void LeaveGameRequestMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:LeaveGameRequestMessage.gameId) +} // ------------------------------------------------------------------- // InvitePlayerToGameMessage // required uint32 gameId = 1; +inline bool InvitePlayerToGameMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool InvitePlayerToGameMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void InvitePlayerToGameMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void InvitePlayerToGameMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void InvitePlayerToGameMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 InvitePlayerToGameMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 InvitePlayerToGameMessage::_internal_gameid() const { return gameid_; } -inline void InvitePlayerToGameMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 InvitePlayerToGameMessage::gameid() const { + // @@protoc_insertion_point(field_get:InvitePlayerToGameMessage.gameId) + return _internal_gameid(); +} +inline void InvitePlayerToGameMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void InvitePlayerToGameMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:InvitePlayerToGameMessage.gameId) +} // required uint32 playerId = 2; +inline bool InvitePlayerToGameMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool InvitePlayerToGameMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void InvitePlayerToGameMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void InvitePlayerToGameMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playerid(); } inline void InvitePlayerToGameMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 InvitePlayerToGameMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 InvitePlayerToGameMessage::_internal_playerid() const { return playerid_; } -inline void InvitePlayerToGameMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 InvitePlayerToGameMessage::playerid() const { + // @@protoc_insertion_point(field_get:InvitePlayerToGameMessage.playerId) + return _internal_playerid(); +} +inline void InvitePlayerToGameMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; playerid_ = value; } +inline void InvitePlayerToGameMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:InvitePlayerToGameMessage.playerId) +} // ------------------------------------------------------------------- // InviteNotifyMessage // required uint32 gameId = 1; +inline bool InviteNotifyMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool InviteNotifyMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void InviteNotifyMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void InviteNotifyMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void InviteNotifyMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 InviteNotifyMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 InviteNotifyMessage::_internal_gameid() const { return gameid_; } -inline void InviteNotifyMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 InviteNotifyMessage::gameid() const { + // @@protoc_insertion_point(field_get:InviteNotifyMessage.gameId) + return _internal_gameid(); +} +inline void InviteNotifyMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void InviteNotifyMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:InviteNotifyMessage.gameId) +} // required uint32 playerIdWho = 2; +inline bool InviteNotifyMessage::_internal_has_playeridwho() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool InviteNotifyMessage::has_playeridwho() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void InviteNotifyMessage::set_has_playeridwho() { - _has_bits_[0] |= 0x00000002u; -} -inline void InviteNotifyMessage::clear_has_playeridwho() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playeridwho(); } inline void InviteNotifyMessage::clear_playeridwho() { playeridwho_ = 0u; - clear_has_playeridwho(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 InviteNotifyMessage::playeridwho() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 InviteNotifyMessage::_internal_playeridwho() const { return playeridwho_; } -inline void InviteNotifyMessage::set_playeridwho(::google::protobuf::uint32 value) { - set_has_playeridwho(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 InviteNotifyMessage::playeridwho() const { + // @@protoc_insertion_point(field_get:InviteNotifyMessage.playerIdWho) + return _internal_playeridwho(); +} +inline void InviteNotifyMessage::_internal_set_playeridwho(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; playeridwho_ = value; } +inline void InviteNotifyMessage::set_playeridwho(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playeridwho(value); + // @@protoc_insertion_point(field_set:InviteNotifyMessage.playerIdWho) +} // required uint32 playerIdByWhom = 3; +inline bool InviteNotifyMessage::_internal_has_playeridbywhom() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool InviteNotifyMessage::has_playeridbywhom() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void InviteNotifyMessage::set_has_playeridbywhom() { - _has_bits_[0] |= 0x00000004u; -} -inline void InviteNotifyMessage::clear_has_playeridbywhom() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_playeridbywhom(); } inline void InviteNotifyMessage::clear_playeridbywhom() { playeridbywhom_ = 0u; - clear_has_playeridbywhom(); + _has_bits_[0] &= ~0x00000004u; } -inline ::google::protobuf::uint32 InviteNotifyMessage::playeridbywhom() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 InviteNotifyMessage::_internal_playeridbywhom() const { return playeridbywhom_; } -inline void InviteNotifyMessage::set_playeridbywhom(::google::protobuf::uint32 value) { - set_has_playeridbywhom(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 InviteNotifyMessage::playeridbywhom() const { + // @@protoc_insertion_point(field_get:InviteNotifyMessage.playerIdByWhom) + return _internal_playeridbywhom(); +} +inline void InviteNotifyMessage::_internal_set_playeridbywhom(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000004u; playeridbywhom_ = value; } +inline void InviteNotifyMessage::set_playeridbywhom(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playeridbywhom(value); + // @@protoc_insertion_point(field_set:InviteNotifyMessage.playerIdByWhom) +} // ------------------------------------------------------------------- // RejectGameInvitationMessage // required uint32 gameId = 1; +inline bool RejectGameInvitationMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool RejectGameInvitationMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void RejectGameInvitationMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void RejectGameInvitationMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void RejectGameInvitationMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 RejectGameInvitationMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 RejectGameInvitationMessage::_internal_gameid() const { return gameid_; } -inline void RejectGameInvitationMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 RejectGameInvitationMessage::gameid() const { + // @@protoc_insertion_point(field_get:RejectGameInvitationMessage.gameId) + return _internal_gameid(); +} +inline void RejectGameInvitationMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void RejectGameInvitationMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:RejectGameInvitationMessage.gameId) +} // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; +inline bool RejectGameInvitationMessage::_internal_has_myrejectreason() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool RejectGameInvitationMessage::has_myrejectreason() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void RejectGameInvitationMessage::set_has_myrejectreason() { - _has_bits_[0] |= 0x00000002u; -} -inline void RejectGameInvitationMessage::clear_has_myrejectreason() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_myrejectreason(); } inline void RejectGameInvitationMessage::clear_myrejectreason() { myrejectreason_ = 0; - clear_has_myrejectreason(); + _has_bits_[0] &= ~0x00000002u; } -inline ::RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::myrejectreason() const { +inline ::RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::_internal_myrejectreason() const { return static_cast< ::RejectGameInvitationMessage_RejectGameInvReason >(myrejectreason_); } -inline void RejectGameInvitationMessage::set_myrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value) { +inline ::RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::myrejectreason() const { + // @@protoc_insertion_point(field_get:RejectGameInvitationMessage.myRejectReason) + return _internal_myrejectreason(); +} +inline void RejectGameInvitationMessage::_internal_set_myrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value) { assert(::RejectGameInvitationMessage_RejectGameInvReason_IsValid(value)); - set_has_myrejectreason(); + _has_bits_[0] |= 0x00000002u; myrejectreason_ = value; } +inline void RejectGameInvitationMessage::set_myrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value) { + _internal_set_myrejectreason(value); + // @@protoc_insertion_point(field_set:RejectGameInvitationMessage.myRejectReason) +} // ------------------------------------------------------------------- // RejectInvNotifyMessage // required uint32 gameId = 1; +inline bool RejectInvNotifyMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool RejectInvNotifyMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void RejectInvNotifyMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void RejectInvNotifyMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void RejectInvNotifyMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 RejectInvNotifyMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 RejectInvNotifyMessage::_internal_gameid() const { return gameid_; } -inline void RejectInvNotifyMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 RejectInvNotifyMessage::gameid() const { + // @@protoc_insertion_point(field_get:RejectInvNotifyMessage.gameId) + return _internal_gameid(); +} +inline void RejectInvNotifyMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void RejectInvNotifyMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:RejectInvNotifyMessage.gameId) +} // required uint32 playerId = 2; +inline bool RejectInvNotifyMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool RejectInvNotifyMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void RejectInvNotifyMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void RejectInvNotifyMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playerid(); } inline void RejectInvNotifyMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 RejectInvNotifyMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 RejectInvNotifyMessage::_internal_playerid() const { return playerid_; } -inline void RejectInvNotifyMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 RejectInvNotifyMessage::playerid() const { + // @@protoc_insertion_point(field_get:RejectInvNotifyMessage.playerId) + return _internal_playerid(); +} +inline void RejectInvNotifyMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; playerid_ = value; } +inline void RejectInvNotifyMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:RejectInvNotifyMessage.playerId) +} // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; +inline bool RejectInvNotifyMessage::_internal_has_playerrejectreason() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool RejectInvNotifyMessage::has_playerrejectreason() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void RejectInvNotifyMessage::set_has_playerrejectreason() { - _has_bits_[0] |= 0x00000004u; -} -inline void RejectInvNotifyMessage::clear_has_playerrejectreason() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_playerrejectreason(); } inline void RejectInvNotifyMessage::clear_playerrejectreason() { playerrejectreason_ = 0; - clear_has_playerrejectreason(); + _has_bits_[0] &= ~0x00000004u; } -inline ::RejectGameInvitationMessage_RejectGameInvReason RejectInvNotifyMessage::playerrejectreason() const { +inline ::RejectGameInvitationMessage_RejectGameInvReason RejectInvNotifyMessage::_internal_playerrejectreason() const { return static_cast< ::RejectGameInvitationMessage_RejectGameInvReason >(playerrejectreason_); } -inline void RejectInvNotifyMessage::set_playerrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value) { +inline ::RejectGameInvitationMessage_RejectGameInvReason RejectInvNotifyMessage::playerrejectreason() const { + // @@protoc_insertion_point(field_get:RejectInvNotifyMessage.playerRejectReason) + return _internal_playerrejectreason(); +} +inline void RejectInvNotifyMessage::_internal_set_playerrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value) { assert(::RejectGameInvitationMessage_RejectGameInvReason_IsValid(value)); - set_has_playerrejectreason(); + _has_bits_[0] |= 0x00000004u; playerrejectreason_ = value; } +inline void RejectInvNotifyMessage::set_playerrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value) { + _internal_set_playerrejectreason(value); + // @@protoc_insertion_point(field_set:RejectInvNotifyMessage.playerRejectReason) +} // ------------------------------------------------------------------- // StartEventMessage // required uint32 gameId = 1; +inline bool StartEventMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool StartEventMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void StartEventMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void StartEventMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void StartEventMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 StartEventMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 StartEventMessage::_internal_gameid() const { return gameid_; } -inline void StartEventMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 StartEventMessage::gameid() const { + // @@protoc_insertion_point(field_get:StartEventMessage.gameId) + return _internal_gameid(); +} +inline void StartEventMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void StartEventMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:StartEventMessage.gameId) +} // required .StartEventMessage.StartEventType startEventType = 2; +inline bool StartEventMessage::_internal_has_starteventtype() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool StartEventMessage::has_starteventtype() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void StartEventMessage::set_has_starteventtype() { - _has_bits_[0] |= 0x00000002u; -} -inline void StartEventMessage::clear_has_starteventtype() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_starteventtype(); } inline void StartEventMessage::clear_starteventtype() { starteventtype_ = 0; - clear_has_starteventtype(); + _has_bits_[0] &= ~0x00000002u; } -inline ::StartEventMessage_StartEventType StartEventMessage::starteventtype() const { +inline ::StartEventMessage_StartEventType StartEventMessage::_internal_starteventtype() const { return static_cast< ::StartEventMessage_StartEventType >(starteventtype_); } -inline void StartEventMessage::set_starteventtype(::StartEventMessage_StartEventType value) { +inline ::StartEventMessage_StartEventType StartEventMessage::starteventtype() const { + // @@protoc_insertion_point(field_get:StartEventMessage.startEventType) + return _internal_starteventtype(); +} +inline void StartEventMessage::_internal_set_starteventtype(::StartEventMessage_StartEventType value) { assert(::StartEventMessage_StartEventType_IsValid(value)); - set_has_starteventtype(); + _has_bits_[0] |= 0x00000002u; starteventtype_ = value; } +inline void StartEventMessage::set_starteventtype(::StartEventMessage_StartEventType value) { + _internal_set_starteventtype(value); + // @@protoc_insertion_point(field_set:StartEventMessage.startEventType) +} // optional bool fillWithComputerPlayers = 3; +inline bool StartEventMessage::_internal_has_fillwithcomputerplayers() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool StartEventMessage::has_fillwithcomputerplayers() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void StartEventMessage::set_has_fillwithcomputerplayers() { - _has_bits_[0] |= 0x00000004u; -} -inline void StartEventMessage::clear_has_fillwithcomputerplayers() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_fillwithcomputerplayers(); } inline void StartEventMessage::clear_fillwithcomputerplayers() { fillwithcomputerplayers_ = false; - clear_has_fillwithcomputerplayers(); + _has_bits_[0] &= ~0x00000004u; } -inline bool StartEventMessage::fillwithcomputerplayers() const { +inline bool StartEventMessage::_internal_fillwithcomputerplayers() const { return fillwithcomputerplayers_; } -inline void StartEventMessage::set_fillwithcomputerplayers(bool value) { - set_has_fillwithcomputerplayers(); +inline bool StartEventMessage::fillwithcomputerplayers() const { + // @@protoc_insertion_point(field_get:StartEventMessage.fillWithComputerPlayers) + return _internal_fillwithcomputerplayers(); +} +inline void StartEventMessage::_internal_set_fillwithcomputerplayers(bool value) { + _has_bits_[0] |= 0x00000004u; fillwithcomputerplayers_ = value; } +inline void StartEventMessage::set_fillwithcomputerplayers(bool value) { + _internal_set_fillwithcomputerplayers(value); + // @@protoc_insertion_point(field_set:StartEventMessage.fillWithComputerPlayers) +} // ------------------------------------------------------------------- // StartEventAckMessage // required uint32 gameId = 1; +inline bool StartEventAckMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool StartEventAckMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void StartEventAckMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void StartEventAckMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void StartEventAckMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 StartEventAckMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 StartEventAckMessage::_internal_gameid() const { return gameid_; } -inline void StartEventAckMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 StartEventAckMessage::gameid() const { + // @@protoc_insertion_point(field_get:StartEventAckMessage.gameId) + return _internal_gameid(); +} +inline void StartEventAckMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void StartEventAckMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:StartEventAckMessage.gameId) +} // ------------------------------------------------------------------- // GameStartInitialMessage // required uint32 gameId = 1; +inline bool GameStartInitialMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool GameStartInitialMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void GameStartInitialMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameStartInitialMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void GameStartInitialMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 GameStartInitialMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameStartInitialMessage::_internal_gameid() const { return gameid_; } -inline void GameStartInitialMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameStartInitialMessage::gameid() const { + // @@protoc_insertion_point(field_get:GameStartInitialMessage.gameId) + return _internal_gameid(); +} +inline void GameStartInitialMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void GameStartInitialMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:GameStartInitialMessage.gameId) +} // required uint32 startDealerPlayerId = 2; +inline bool GameStartInitialMessage::_internal_has_startdealerplayerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool GameStartInitialMessage::has_startdealerplayerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void GameStartInitialMessage::set_has_startdealerplayerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameStartInitialMessage::clear_has_startdealerplayerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_startdealerplayerid(); } inline void GameStartInitialMessage::clear_startdealerplayerid() { startdealerplayerid_ = 0u; - clear_has_startdealerplayerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 GameStartInitialMessage::startdealerplayerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameStartInitialMessage::_internal_startdealerplayerid() const { return startdealerplayerid_; } -inline void GameStartInitialMessage::set_startdealerplayerid(::google::protobuf::uint32 value) { - set_has_startdealerplayerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameStartInitialMessage::startdealerplayerid() const { + // @@protoc_insertion_point(field_get:GameStartInitialMessage.startDealerPlayerId) + return _internal_startdealerplayerid(); +} +inline void GameStartInitialMessage::_internal_set_startdealerplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; startdealerplayerid_ = value; } +inline void GameStartInitialMessage::set_startdealerplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_startdealerplayerid(value); + // @@protoc_insertion_point(field_set:GameStartInitialMessage.startDealerPlayerId) +} // repeated uint32 playerSeats = 3 [packed = true]; -inline int GameStartInitialMessage::playerseats_size() const { +inline int GameStartInitialMessage::_internal_playerseats_size() const { return playerseats_.size(); } +inline int GameStartInitialMessage::playerseats_size() const { + return _internal_playerseats_size(); +} inline void GameStartInitialMessage::clear_playerseats() { playerseats_.Clear(); } -inline ::google::protobuf::uint32 GameStartInitialMessage::playerseats(int index) const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameStartInitialMessage::_internal_playerseats(int index) const { return playerseats_.Get(index); } -inline void GameStartInitialMessage::set_playerseats(int index, ::google::protobuf::uint32 value) { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameStartInitialMessage::playerseats(int index) const { + // @@protoc_insertion_point(field_get:GameStartInitialMessage.playerSeats) + return _internal_playerseats(index); +} +inline void GameStartInitialMessage::set_playerseats(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value) { playerseats_.Set(index, value); } -inline void GameStartInitialMessage::add_playerseats(::google::protobuf::uint32 value) { +inline void GameStartInitialMessage::_internal_add_playerseats(::PROTOBUF_NAMESPACE_ID::uint32 value) { playerseats_.Add(value); } -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -GameStartInitialMessage::playerseats() const { +inline void GameStartInitialMessage::add_playerseats(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_add_playerseats(value); + // @@protoc_insertion_point(field_add:GameStartInitialMessage.playerSeats) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& +GameStartInitialMessage::_internal_playerseats() const { return playerseats_; } -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -GameStartInitialMessage::mutable_playerseats() { +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& +GameStartInitialMessage::playerseats() const { + // @@protoc_insertion_point(field_list:GameStartInitialMessage.playerSeats) + return _internal_playerseats(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* +GameStartInitialMessage::_internal_mutable_playerseats() { return &playerseats_; } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* +GameStartInitialMessage::mutable_playerseats() { + // @@protoc_insertion_point(field_mutable_list:GameStartInitialMessage.playerSeats) + return _internal_mutable_playerseats(); +} // ------------------------------------------------------------------- // GameStartRejoinMessage_RejoinPlayerData // required uint32 playerId = 1; +inline bool GameStartRejoinMessage_RejoinPlayerData::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool GameStartRejoinMessage_RejoinPlayerData::has_playerid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void GameStartRejoinMessage_RejoinPlayerData::set_has_playerid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameStartRejoinMessage_RejoinPlayerData::clear_has_playerid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_playerid(); } inline void GameStartRejoinMessage_RejoinPlayerData::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 GameStartRejoinMessage_RejoinPlayerData::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameStartRejoinMessage_RejoinPlayerData::_internal_playerid() const { return playerid_; } -inline void GameStartRejoinMessage_RejoinPlayerData::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameStartRejoinMessage_RejoinPlayerData::playerid() const { + // @@protoc_insertion_point(field_get:GameStartRejoinMessage.RejoinPlayerData.playerId) + return _internal_playerid(); +} +inline void GameStartRejoinMessage_RejoinPlayerData::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; playerid_ = value; } +inline void GameStartRejoinMessage_RejoinPlayerData::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:GameStartRejoinMessage.RejoinPlayerData.playerId) +} // required uint32 playerMoney = 2; +inline bool GameStartRejoinMessage_RejoinPlayerData::_internal_has_playermoney() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool GameStartRejoinMessage_RejoinPlayerData::has_playermoney() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void GameStartRejoinMessage_RejoinPlayerData::set_has_playermoney() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameStartRejoinMessage_RejoinPlayerData::clear_has_playermoney() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playermoney(); } inline void GameStartRejoinMessage_RejoinPlayerData::clear_playermoney() { playermoney_ = 0u; - clear_has_playermoney(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 GameStartRejoinMessage_RejoinPlayerData::playermoney() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameStartRejoinMessage_RejoinPlayerData::_internal_playermoney() const { return playermoney_; } -inline void GameStartRejoinMessage_RejoinPlayerData::set_playermoney(::google::protobuf::uint32 value) { - set_has_playermoney(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameStartRejoinMessage_RejoinPlayerData::playermoney() const { + // @@protoc_insertion_point(field_get:GameStartRejoinMessage.RejoinPlayerData.playerMoney) + return _internal_playermoney(); +} +inline void GameStartRejoinMessage_RejoinPlayerData::_internal_set_playermoney(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; playermoney_ = value; } +inline void GameStartRejoinMessage_RejoinPlayerData::set_playermoney(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playermoney(value); + // @@protoc_insertion_point(field_set:GameStartRejoinMessage.RejoinPlayerData.playerMoney) +} // ------------------------------------------------------------------- // GameStartRejoinMessage // required uint32 gameId = 1; +inline bool GameStartRejoinMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool GameStartRejoinMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void GameStartRejoinMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameStartRejoinMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void GameStartRejoinMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 GameStartRejoinMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameStartRejoinMessage::_internal_gameid() const { return gameid_; } -inline void GameStartRejoinMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameStartRejoinMessage::gameid() const { + // @@protoc_insertion_point(field_get:GameStartRejoinMessage.gameId) + return _internal_gameid(); +} +inline void GameStartRejoinMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void GameStartRejoinMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:GameStartRejoinMessage.gameId) +} // required uint32 startDealerPlayerId = 2; +inline bool GameStartRejoinMessage::_internal_has_startdealerplayerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool GameStartRejoinMessage::has_startdealerplayerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void GameStartRejoinMessage::set_has_startdealerplayerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameStartRejoinMessage::clear_has_startdealerplayerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_startdealerplayerid(); } inline void GameStartRejoinMessage::clear_startdealerplayerid() { startdealerplayerid_ = 0u; - clear_has_startdealerplayerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 GameStartRejoinMessage::startdealerplayerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameStartRejoinMessage::_internal_startdealerplayerid() const { return startdealerplayerid_; } -inline void GameStartRejoinMessage::set_startdealerplayerid(::google::protobuf::uint32 value) { - set_has_startdealerplayerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameStartRejoinMessage::startdealerplayerid() const { + // @@protoc_insertion_point(field_get:GameStartRejoinMessage.startDealerPlayerId) + return _internal_startdealerplayerid(); +} +inline void GameStartRejoinMessage::_internal_set_startdealerplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; startdealerplayerid_ = value; } +inline void GameStartRejoinMessage::set_startdealerplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_startdealerplayerid(value); + // @@protoc_insertion_point(field_set:GameStartRejoinMessage.startDealerPlayerId) +} // required uint32 handNum = 3; +inline bool GameStartRejoinMessage::_internal_has_handnum() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool GameStartRejoinMessage::has_handnum() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void GameStartRejoinMessage::set_has_handnum() { - _has_bits_[0] |= 0x00000004u; -} -inline void GameStartRejoinMessage::clear_has_handnum() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_handnum(); } inline void GameStartRejoinMessage::clear_handnum() { handnum_ = 0u; - clear_has_handnum(); + _has_bits_[0] &= ~0x00000004u; } -inline ::google::protobuf::uint32 GameStartRejoinMessage::handnum() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameStartRejoinMessage::_internal_handnum() const { return handnum_; } -inline void GameStartRejoinMessage::set_handnum(::google::protobuf::uint32 value) { - set_has_handnum(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 GameStartRejoinMessage::handnum() const { + // @@protoc_insertion_point(field_get:GameStartRejoinMessage.handNum) + return _internal_handnum(); +} +inline void GameStartRejoinMessage::_internal_set_handnum(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000004u; handnum_ = value; } +inline void GameStartRejoinMessage::set_handnum(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_handnum(value); + // @@protoc_insertion_point(field_set:GameStartRejoinMessage.handNum) +} // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; -inline int GameStartRejoinMessage::rejoinplayerdata_size() const { +inline int GameStartRejoinMessage::_internal_rejoinplayerdata_size() const { return rejoinplayerdata_.size(); } +inline int GameStartRejoinMessage::rejoinplayerdata_size() const { + return _internal_rejoinplayerdata_size(); +} inline void GameStartRejoinMessage::clear_rejoinplayerdata() { rejoinplayerdata_.Clear(); } -inline const ::GameStartRejoinMessage_RejoinPlayerData& GameStartRejoinMessage::rejoinplayerdata(int index) const { - return rejoinplayerdata_.Get(index); -} inline ::GameStartRejoinMessage_RejoinPlayerData* GameStartRejoinMessage::mutable_rejoinplayerdata(int index) { return rejoinplayerdata_.Mutable(index); } -inline ::GameStartRejoinMessage_RejoinPlayerData* GameStartRejoinMessage::add_rejoinplayerdata() { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData >* +GameStartRejoinMessage::mutable_rejoinplayerdata() { + // @@protoc_insertion_point(field_mutable_list:GameStartRejoinMessage.rejoinPlayerData) + return &rejoinplayerdata_; +} +inline const ::GameStartRejoinMessage_RejoinPlayerData& GameStartRejoinMessage::_internal_rejoinplayerdata(int index) const { + return rejoinplayerdata_.Get(index); +} +inline const ::GameStartRejoinMessage_RejoinPlayerData& GameStartRejoinMessage::rejoinplayerdata(int index) const { + // @@protoc_insertion_point(field_get:GameStartRejoinMessage.rejoinPlayerData) + return _internal_rejoinplayerdata(index); +} +inline ::GameStartRejoinMessage_RejoinPlayerData* GameStartRejoinMessage::_internal_add_rejoinplayerdata() { return rejoinplayerdata_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData >& +inline ::GameStartRejoinMessage_RejoinPlayerData* GameStartRejoinMessage::add_rejoinplayerdata() { + // @@protoc_insertion_point(field_add:GameStartRejoinMessage.rejoinPlayerData) + return _internal_add_rejoinplayerdata(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData >& GameStartRejoinMessage::rejoinplayerdata() const { return rejoinplayerdata_; } -inline ::google::protobuf::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData >* -GameStartRejoinMessage::mutable_rejoinplayerdata() { - return &rejoinplayerdata_; -} // ------------------------------------------------------------------- @@ -16181,1195 +25026,1555 @@ GameStartReentryMessage::mutable_reentryplayerdata() { // HandStartMessage_PlainCards // required uint32 plainCard1 = 1; +inline bool HandStartMessage_PlainCards::_internal_has_plaincard1() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool HandStartMessage_PlainCards::has_plaincard1() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void HandStartMessage_PlainCards::set_has_plaincard1() { - _has_bits_[0] |= 0x00000001u; -} -inline void HandStartMessage_PlainCards::clear_has_plaincard1() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_plaincard1(); } inline void HandStartMessage_PlainCards::clear_plaincard1() { plaincard1_ = 0u; - clear_has_plaincard1(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 HandStartMessage_PlainCards::plaincard1() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 HandStartMessage_PlainCards::_internal_plaincard1() const { return plaincard1_; } -inline void HandStartMessage_PlainCards::set_plaincard1(::google::protobuf::uint32 value) { - set_has_plaincard1(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 HandStartMessage_PlainCards::plaincard1() const { + // @@protoc_insertion_point(field_get:HandStartMessage.PlainCards.plainCard1) + return _internal_plaincard1(); +} +inline void HandStartMessage_PlainCards::_internal_set_plaincard1(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; plaincard1_ = value; } +inline void HandStartMessage_PlainCards::set_plaincard1(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_plaincard1(value); + // @@protoc_insertion_point(field_set:HandStartMessage.PlainCards.plainCard1) +} // required uint32 plainCard2 = 2; +inline bool HandStartMessage_PlainCards::_internal_has_plaincard2() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool HandStartMessage_PlainCards::has_plaincard2() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void HandStartMessage_PlainCards::set_has_plaincard2() { - _has_bits_[0] |= 0x00000002u; -} -inline void HandStartMessage_PlainCards::clear_has_plaincard2() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_plaincard2(); } inline void HandStartMessage_PlainCards::clear_plaincard2() { plaincard2_ = 0u; - clear_has_plaincard2(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 HandStartMessage_PlainCards::plaincard2() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 HandStartMessage_PlainCards::_internal_plaincard2() const { return plaincard2_; } -inline void HandStartMessage_PlainCards::set_plaincard2(::google::protobuf::uint32 value) { - set_has_plaincard2(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 HandStartMessage_PlainCards::plaincard2() const { + // @@protoc_insertion_point(field_get:HandStartMessage.PlainCards.plainCard2) + return _internal_plaincard2(); +} +inline void HandStartMessage_PlainCards::_internal_set_plaincard2(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; plaincard2_ = value; } +inline void HandStartMessage_PlainCards::set_plaincard2(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_plaincard2(value); + // @@protoc_insertion_point(field_set:HandStartMessage.PlainCards.plainCard2) +} // ------------------------------------------------------------------- // HandStartMessage // required uint32 gameId = 1; +inline bool HandStartMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool HandStartMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void HandStartMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void HandStartMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void HandStartMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000004u; } -inline ::google::protobuf::uint32 HandStartMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 HandStartMessage::_internal_gameid() const { return gameid_; } -inline void HandStartMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 HandStartMessage::gameid() const { + // @@protoc_insertion_point(field_get:HandStartMessage.gameId) + return _internal_gameid(); +} +inline void HandStartMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000004u; gameid_ = value; } +inline void HandStartMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:HandStartMessage.gameId) +} // optional .HandStartMessage.PlainCards plainCards = 2; +inline bool HandStartMessage::_internal_has_plaincards() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || plaincards_ != nullptr); + return value; +} inline bool HandStartMessage::has_plaincards() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void HandStartMessage::set_has_plaincards() { - _has_bits_[0] |= 0x00000002u; -} -inline void HandStartMessage::clear_has_plaincards() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_plaincards(); } inline void HandStartMessage::clear_plaincards() { - if (plaincards_ != NULL) plaincards_->::HandStartMessage_PlainCards::Clear(); - clear_has_plaincards(); + if (plaincards_ != nullptr) plaincards_->Clear(); + _has_bits_[0] &= ~0x00000002u; +} +inline const ::HandStartMessage_PlainCards& HandStartMessage::_internal_plaincards() const { + const ::HandStartMessage_PlainCards* p = plaincards_; + return p != nullptr ? *p : *reinterpret_cast( + &::_HandStartMessage_PlainCards_default_instance_); } inline const ::HandStartMessage_PlainCards& HandStartMessage::plaincards() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return plaincards_ != NULL ? *plaincards_ : *default_instance().plaincards_; -#else - return plaincards_ != NULL ? *plaincards_ : *default_instance_->plaincards_; -#endif + // @@protoc_insertion_point(field_get:HandStartMessage.plainCards) + return _internal_plaincards(); } -inline ::HandStartMessage_PlainCards* HandStartMessage::mutable_plaincards() { - set_has_plaincards(); - if (plaincards_ == NULL) plaincards_ = new ::HandStartMessage_PlainCards; - return plaincards_; -} -inline ::HandStartMessage_PlainCards* HandStartMessage::release_plaincards() { - clear_has_plaincards(); - ::HandStartMessage_PlainCards* temp = plaincards_; - plaincards_ = NULL; - return temp; -} -inline void HandStartMessage::set_allocated_plaincards(::HandStartMessage_PlainCards* plaincards) { - delete plaincards_; +inline void HandStartMessage::unsafe_arena_set_allocated_plaincards( + ::HandStartMessage_PlainCards* plaincards) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(plaincards_); + } plaincards_ = plaincards; if (plaincards) { - set_has_plaincards(); + _has_bits_[0] |= 0x00000002u; } else { - clear_has_plaincards(); + _has_bits_[0] &= ~0x00000002u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:HandStartMessage.plainCards) +} +inline ::HandStartMessage_PlainCards* HandStartMessage::release_plaincards() { + auto temp = unsafe_arena_release_plaincards(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::HandStartMessage_PlainCards* HandStartMessage::unsafe_arena_release_plaincards() { + // @@protoc_insertion_point(field_release:HandStartMessage.plainCards) + _has_bits_[0] &= ~0x00000002u; + ::HandStartMessage_PlainCards* temp = plaincards_; + plaincards_ = nullptr; + return temp; +} +inline ::HandStartMessage_PlainCards* HandStartMessage::_internal_mutable_plaincards() { + _has_bits_[0] |= 0x00000002u; + if (plaincards_ == nullptr) { + auto* p = CreateMaybeMessage<::HandStartMessage_PlainCards>(GetArena()); + plaincards_ = p; + } + return plaincards_; +} +inline ::HandStartMessage_PlainCards* HandStartMessage::mutable_plaincards() { + // @@protoc_insertion_point(field_mutable:HandStartMessage.plainCards) + return _internal_mutable_plaincards(); +} +inline void HandStartMessage::set_allocated_plaincards(::HandStartMessage_PlainCards* plaincards) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete plaincards_; + } + if (plaincards) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(plaincards); + if (message_arena != submessage_arena) { + plaincards = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, plaincards, submessage_arena); + } + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + plaincards_ = plaincards; + // @@protoc_insertion_point(field_set_allocated:HandStartMessage.plainCards) } // optional bytes encryptedCards = 3; +inline bool HandStartMessage::_internal_has_encryptedcards() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool HandStartMessage::has_encryptedcards() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void HandStartMessage::set_has_encryptedcards() { - _has_bits_[0] |= 0x00000004u; -} -inline void HandStartMessage::clear_has_encryptedcards() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_encryptedcards(); } inline void HandStartMessage::clear_encryptedcards() { - if (encryptedcards_ != &::google::protobuf::internal::kEmptyString) { - encryptedcards_->clear(); - } - clear_has_encryptedcards(); + encryptedcards_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& HandStartMessage::encryptedcards() const { - return *encryptedcards_; +inline const std::string& HandStartMessage::encryptedcards() const { + // @@protoc_insertion_point(field_get:HandStartMessage.encryptedCards) + return _internal_encryptedcards(); } -inline void HandStartMessage::set_encryptedcards(const ::std::string& value) { - set_has_encryptedcards(); - if (encryptedcards_ == &::google::protobuf::internal::kEmptyString) { - encryptedcards_ = new ::std::string; - } - encryptedcards_->assign(value); +inline void HandStartMessage::set_encryptedcards(const std::string& value) { + _internal_set_encryptedcards(value); + // @@protoc_insertion_point(field_set:HandStartMessage.encryptedCards) +} +inline std::string* HandStartMessage::mutable_encryptedcards() { + // @@protoc_insertion_point(field_mutable:HandStartMessage.encryptedCards) + return _internal_mutable_encryptedcards(); +} +inline const std::string& HandStartMessage::_internal_encryptedcards() const { + return encryptedcards_.Get(); +} +inline void HandStartMessage::_internal_set_encryptedcards(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + encryptedcards_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void HandStartMessage::set_encryptedcards(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + encryptedcards_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:HandStartMessage.encryptedCards) } inline void HandStartMessage::set_encryptedcards(const char* value) { - set_has_encryptedcards(); - if (encryptedcards_ == &::google::protobuf::internal::kEmptyString) { - encryptedcards_ = new ::std::string; - } - encryptedcards_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + encryptedcards_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:HandStartMessage.encryptedCards) } -inline void HandStartMessage::set_encryptedcards(const void* value, size_t size) { - set_has_encryptedcards(); - if (encryptedcards_ == &::google::protobuf::internal::kEmptyString) { - encryptedcards_ = new ::std::string; - } - encryptedcards_->assign(reinterpret_cast(value), size); +inline void HandStartMessage::set_encryptedcards(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + encryptedcards_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:HandStartMessage.encryptedCards) } -inline ::std::string* HandStartMessage::mutable_encryptedcards() { - set_has_encryptedcards(); - if (encryptedcards_ == &::google::protobuf::internal::kEmptyString) { - encryptedcards_ = new ::std::string; - } - return encryptedcards_; +inline std::string* HandStartMessage::_internal_mutable_encryptedcards() { + _has_bits_[0] |= 0x00000001u; + return encryptedcards_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* HandStartMessage::release_encryptedcards() { - clear_has_encryptedcards(); - if (encryptedcards_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* HandStartMessage::release_encryptedcards() { + // @@protoc_insertion_point(field_release:HandStartMessage.encryptedCards) + if (!_internal_has_encryptedcards()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return encryptedcards_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HandStartMessage::set_allocated_encryptedcards(std::string* encryptedcards) { + if (encryptedcards != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = encryptedcards_; - encryptedcards_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + encryptedcards_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), encryptedcards, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:HandStartMessage.encryptedCards) } -inline void HandStartMessage::set_allocated_encryptedcards(::std::string* encryptedcards) { - if (encryptedcards_ != &::google::protobuf::internal::kEmptyString) { - delete encryptedcards_; - } - if (encryptedcards) { - set_has_encryptedcards(); - encryptedcards_ = encryptedcards; +inline std::string* HandStartMessage::unsafe_arena_release_encryptedcards() { + // @@protoc_insertion_point(field_unsafe_arena_release:HandStartMessage.encryptedCards) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return encryptedcards_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void HandStartMessage::unsafe_arena_set_allocated_encryptedcards( + std::string* encryptedcards) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (encryptedcards != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_encryptedcards(); - encryptedcards_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + encryptedcards_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + encryptedcards, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:HandStartMessage.encryptedCards) } // required uint32 smallBlind = 4; +inline bool HandStartMessage::_internal_has_smallblind() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool HandStartMessage::has_smallblind() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void HandStartMessage::set_has_smallblind() { - _has_bits_[0] |= 0x00000008u; -} -inline void HandStartMessage::clear_has_smallblind() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_smallblind(); } inline void HandStartMessage::clear_smallblind() { smallblind_ = 0u; - clear_has_smallblind(); + _has_bits_[0] &= ~0x00000008u; } -inline ::google::protobuf::uint32 HandStartMessage::smallblind() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 HandStartMessage::_internal_smallblind() const { return smallblind_; } -inline void HandStartMessage::set_smallblind(::google::protobuf::uint32 value) { - set_has_smallblind(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 HandStartMessage::smallblind() const { + // @@protoc_insertion_point(field_get:HandStartMessage.smallBlind) + return _internal_smallblind(); +} +inline void HandStartMessage::_internal_set_smallblind(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000008u; smallblind_ = value; } +inline void HandStartMessage::set_smallblind(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_smallblind(value); + // @@protoc_insertion_point(field_set:HandStartMessage.smallBlind) +} // repeated .NetPlayerState seatStates = 5; -inline int HandStartMessage::seatstates_size() const { +inline int HandStartMessage::_internal_seatstates_size() const { return seatstates_.size(); } +inline int HandStartMessage::seatstates_size() const { + return _internal_seatstates_size(); +} inline void HandStartMessage::clear_seatstates() { seatstates_.Clear(); } -inline ::NetPlayerState HandStartMessage::seatstates(int index) const { +inline ::NetPlayerState HandStartMessage::_internal_seatstates(int index) const { return static_cast< ::NetPlayerState >(seatstates_.Get(index)); } +inline ::NetPlayerState HandStartMessage::seatstates(int index) const { + // @@protoc_insertion_point(field_get:HandStartMessage.seatStates) + return _internal_seatstates(index); +} inline void HandStartMessage::set_seatstates(int index, ::NetPlayerState value) { assert(::NetPlayerState_IsValid(value)); seatstates_.Set(index, value); } -inline void HandStartMessage::add_seatstates(::NetPlayerState value) { +inline void HandStartMessage::_internal_add_seatstates(::NetPlayerState value) { assert(::NetPlayerState_IsValid(value)); seatstates_.Add(value); } -inline const ::google::protobuf::RepeatedField& +inline void HandStartMessage::add_seatstates(::NetPlayerState value) { + // @@protoc_insertion_point(field_add:HandStartMessage.seatStates) + _internal_add_seatstates(value); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& HandStartMessage::seatstates() const { return seatstates_; } -inline ::google::protobuf::RepeatedField* -HandStartMessage::mutable_seatstates() { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +HandStartMessage::_internal_mutable_seatstates() { return &seatstates_; } +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +HandStartMessage::mutable_seatstates() { + // @@protoc_insertion_point(field_mutable_list:HandStartMessage.seatStates) + return _internal_mutable_seatstates(); +} // optional uint32 dealerPlayerId = 6; +inline bool HandStartMessage::_internal_has_dealerplayerid() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} inline bool HandStartMessage::has_dealerplayerid() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void HandStartMessage::set_has_dealerplayerid() { - _has_bits_[0] |= 0x00000020u; -} -inline void HandStartMessage::clear_has_dealerplayerid() { - _has_bits_[0] &= ~0x00000020u; + return _internal_has_dealerplayerid(); } inline void HandStartMessage::clear_dealerplayerid() { dealerplayerid_ = 0u; - clear_has_dealerplayerid(); + _has_bits_[0] &= ~0x00000010u; } -inline ::google::protobuf::uint32 HandStartMessage::dealerplayerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 HandStartMessage::_internal_dealerplayerid() const { return dealerplayerid_; } -inline void HandStartMessage::set_dealerplayerid(::google::protobuf::uint32 value) { - set_has_dealerplayerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 HandStartMessage::dealerplayerid() const { + // @@protoc_insertion_point(field_get:HandStartMessage.dealerPlayerId) + return _internal_dealerplayerid(); +} +inline void HandStartMessage::_internal_set_dealerplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000010u; dealerplayerid_ = value; } +inline void HandStartMessage::set_dealerplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_dealerplayerid(value); + // @@protoc_insertion_point(field_set:HandStartMessage.dealerPlayerId) +} // ------------------------------------------------------------------- // PlayersTurnMessage // required uint32 gameId = 1; +inline bool PlayersTurnMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool PlayersTurnMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void PlayersTurnMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void PlayersTurnMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void PlayersTurnMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 PlayersTurnMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayersTurnMessage::_internal_gameid() const { return gameid_; } -inline void PlayersTurnMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayersTurnMessage::gameid() const { + // @@protoc_insertion_point(field_get:PlayersTurnMessage.gameId) + return _internal_gameid(); +} +inline void PlayersTurnMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void PlayersTurnMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:PlayersTurnMessage.gameId) +} // required uint32 playerId = 2; +inline bool PlayersTurnMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool PlayersTurnMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void PlayersTurnMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void PlayersTurnMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playerid(); } inline void PlayersTurnMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 PlayersTurnMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayersTurnMessage::_internal_playerid() const { return playerid_; } -inline void PlayersTurnMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayersTurnMessage::playerid() const { + // @@protoc_insertion_point(field_get:PlayersTurnMessage.playerId) + return _internal_playerid(); +} +inline void PlayersTurnMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; playerid_ = value; } +inline void PlayersTurnMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:PlayersTurnMessage.playerId) +} // required .NetGameState gameState = 3; +inline bool PlayersTurnMessage::_internal_has_gamestate() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool PlayersTurnMessage::has_gamestate() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void PlayersTurnMessage::set_has_gamestate() { - _has_bits_[0] |= 0x00000004u; -} -inline void PlayersTurnMessage::clear_has_gamestate() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_gamestate(); } inline void PlayersTurnMessage::clear_gamestate() { gamestate_ = 0; - clear_has_gamestate(); + _has_bits_[0] &= ~0x00000004u; } -inline ::NetGameState PlayersTurnMessage::gamestate() const { +inline ::NetGameState PlayersTurnMessage::_internal_gamestate() const { return static_cast< ::NetGameState >(gamestate_); } -inline void PlayersTurnMessage::set_gamestate(::NetGameState value) { +inline ::NetGameState PlayersTurnMessage::gamestate() const { + // @@protoc_insertion_point(field_get:PlayersTurnMessage.gameState) + return _internal_gamestate(); +} +inline void PlayersTurnMessage::_internal_set_gamestate(::NetGameState value) { assert(::NetGameState_IsValid(value)); - set_has_gamestate(); + _has_bits_[0] |= 0x00000004u; gamestate_ = value; } +inline void PlayersTurnMessage::set_gamestate(::NetGameState value) { + _internal_set_gamestate(value); + // @@protoc_insertion_point(field_set:PlayersTurnMessage.gameState) +} // ------------------------------------------------------------------- // MyActionRequestMessage // required uint32 gameId = 1; +inline bool MyActionRequestMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool MyActionRequestMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void MyActionRequestMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void MyActionRequestMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void MyActionRequestMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 MyActionRequestMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 MyActionRequestMessage::_internal_gameid() const { return gameid_; } -inline void MyActionRequestMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 MyActionRequestMessage::gameid() const { + // @@protoc_insertion_point(field_get:MyActionRequestMessage.gameId) + return _internal_gameid(); +} +inline void MyActionRequestMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void MyActionRequestMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:MyActionRequestMessage.gameId) +} // required uint32 handNum = 2; +inline bool MyActionRequestMessage::_internal_has_handnum() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool MyActionRequestMessage::has_handnum() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void MyActionRequestMessage::set_has_handnum() { - _has_bits_[0] |= 0x00000002u; -} -inline void MyActionRequestMessage::clear_has_handnum() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_handnum(); } inline void MyActionRequestMessage::clear_handnum() { handnum_ = 0u; - clear_has_handnum(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 MyActionRequestMessage::handnum() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 MyActionRequestMessage::_internal_handnum() const { return handnum_; } -inline void MyActionRequestMessage::set_handnum(::google::protobuf::uint32 value) { - set_has_handnum(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 MyActionRequestMessage::handnum() const { + // @@protoc_insertion_point(field_get:MyActionRequestMessage.handNum) + return _internal_handnum(); +} +inline void MyActionRequestMessage::_internal_set_handnum(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; handnum_ = value; } +inline void MyActionRequestMessage::set_handnum(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_handnum(value); + // @@protoc_insertion_point(field_set:MyActionRequestMessage.handNum) +} // required .NetGameState gameState = 3; +inline bool MyActionRequestMessage::_internal_has_gamestate() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool MyActionRequestMessage::has_gamestate() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void MyActionRequestMessage::set_has_gamestate() { - _has_bits_[0] |= 0x00000004u; -} -inline void MyActionRequestMessage::clear_has_gamestate() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_gamestate(); } inline void MyActionRequestMessage::clear_gamestate() { gamestate_ = 0; - clear_has_gamestate(); + _has_bits_[0] &= ~0x00000004u; } -inline ::NetGameState MyActionRequestMessage::gamestate() const { +inline ::NetGameState MyActionRequestMessage::_internal_gamestate() const { return static_cast< ::NetGameState >(gamestate_); } -inline void MyActionRequestMessage::set_gamestate(::NetGameState value) { +inline ::NetGameState MyActionRequestMessage::gamestate() const { + // @@protoc_insertion_point(field_get:MyActionRequestMessage.gameState) + return _internal_gamestate(); +} +inline void MyActionRequestMessage::_internal_set_gamestate(::NetGameState value) { assert(::NetGameState_IsValid(value)); - set_has_gamestate(); + _has_bits_[0] |= 0x00000004u; gamestate_ = value; } +inline void MyActionRequestMessage::set_gamestate(::NetGameState value) { + _internal_set_gamestate(value); + // @@protoc_insertion_point(field_set:MyActionRequestMessage.gameState) +} // required .NetPlayerAction myAction = 4; +inline bool MyActionRequestMessage::_internal_has_myaction() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool MyActionRequestMessage::has_myaction() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void MyActionRequestMessage::set_has_myaction() { - _has_bits_[0] |= 0x00000008u; -} -inline void MyActionRequestMessage::clear_has_myaction() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_myaction(); } inline void MyActionRequestMessage::clear_myaction() { myaction_ = 0; - clear_has_myaction(); + _has_bits_[0] &= ~0x00000008u; } -inline ::NetPlayerAction MyActionRequestMessage::myaction() const { +inline ::NetPlayerAction MyActionRequestMessage::_internal_myaction() const { return static_cast< ::NetPlayerAction >(myaction_); } -inline void MyActionRequestMessage::set_myaction(::NetPlayerAction value) { +inline ::NetPlayerAction MyActionRequestMessage::myaction() const { + // @@protoc_insertion_point(field_get:MyActionRequestMessage.myAction) + return _internal_myaction(); +} +inline void MyActionRequestMessage::_internal_set_myaction(::NetPlayerAction value) { assert(::NetPlayerAction_IsValid(value)); - set_has_myaction(); + _has_bits_[0] |= 0x00000008u; myaction_ = value; } +inline void MyActionRequestMessage::set_myaction(::NetPlayerAction value) { + _internal_set_myaction(value); + // @@protoc_insertion_point(field_set:MyActionRequestMessage.myAction) +} // required uint32 myRelativeBet = 5; +inline bool MyActionRequestMessage::_internal_has_myrelativebet() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} inline bool MyActionRequestMessage::has_myrelativebet() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void MyActionRequestMessage::set_has_myrelativebet() { - _has_bits_[0] |= 0x00000010u; -} -inline void MyActionRequestMessage::clear_has_myrelativebet() { - _has_bits_[0] &= ~0x00000010u; + return _internal_has_myrelativebet(); } inline void MyActionRequestMessage::clear_myrelativebet() { myrelativebet_ = 0u; - clear_has_myrelativebet(); + _has_bits_[0] &= ~0x00000010u; } -inline ::google::protobuf::uint32 MyActionRequestMessage::myrelativebet() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 MyActionRequestMessage::_internal_myrelativebet() const { return myrelativebet_; } -inline void MyActionRequestMessage::set_myrelativebet(::google::protobuf::uint32 value) { - set_has_myrelativebet(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 MyActionRequestMessage::myrelativebet() const { + // @@protoc_insertion_point(field_get:MyActionRequestMessage.myRelativeBet) + return _internal_myrelativebet(); +} +inline void MyActionRequestMessage::_internal_set_myrelativebet(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000010u; myrelativebet_ = value; } +inline void MyActionRequestMessage::set_myrelativebet(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_myrelativebet(value); + // @@protoc_insertion_point(field_set:MyActionRequestMessage.myRelativeBet) +} // ------------------------------------------------------------------- // YourActionRejectedMessage // required uint32 gameId = 1; +inline bool YourActionRejectedMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool YourActionRejectedMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void YourActionRejectedMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void YourActionRejectedMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void YourActionRejectedMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 YourActionRejectedMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 YourActionRejectedMessage::_internal_gameid() const { return gameid_; } -inline void YourActionRejectedMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 YourActionRejectedMessage::gameid() const { + // @@protoc_insertion_point(field_get:YourActionRejectedMessage.gameId) + return _internal_gameid(); +} +inline void YourActionRejectedMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void YourActionRejectedMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:YourActionRejectedMessage.gameId) +} // required .NetGameState gameState = 2; +inline bool YourActionRejectedMessage::_internal_has_gamestate() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool YourActionRejectedMessage::has_gamestate() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void YourActionRejectedMessage::set_has_gamestate() { - _has_bits_[0] |= 0x00000002u; -} -inline void YourActionRejectedMessage::clear_has_gamestate() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_gamestate(); } inline void YourActionRejectedMessage::clear_gamestate() { gamestate_ = 0; - clear_has_gamestate(); + _has_bits_[0] &= ~0x00000002u; } -inline ::NetGameState YourActionRejectedMessage::gamestate() const { +inline ::NetGameState YourActionRejectedMessage::_internal_gamestate() const { return static_cast< ::NetGameState >(gamestate_); } -inline void YourActionRejectedMessage::set_gamestate(::NetGameState value) { +inline ::NetGameState YourActionRejectedMessage::gamestate() const { + // @@protoc_insertion_point(field_get:YourActionRejectedMessage.gameState) + return _internal_gamestate(); +} +inline void YourActionRejectedMessage::_internal_set_gamestate(::NetGameState value) { assert(::NetGameState_IsValid(value)); - set_has_gamestate(); + _has_bits_[0] |= 0x00000002u; gamestate_ = value; } +inline void YourActionRejectedMessage::set_gamestate(::NetGameState value) { + _internal_set_gamestate(value); + // @@protoc_insertion_point(field_set:YourActionRejectedMessage.gameState) +} // required .NetPlayerAction yourAction = 3; +inline bool YourActionRejectedMessage::_internal_has_youraction() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool YourActionRejectedMessage::has_youraction() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void YourActionRejectedMessage::set_has_youraction() { - _has_bits_[0] |= 0x00000004u; -} -inline void YourActionRejectedMessage::clear_has_youraction() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_youraction(); } inline void YourActionRejectedMessage::clear_youraction() { youraction_ = 0; - clear_has_youraction(); + _has_bits_[0] &= ~0x00000004u; } -inline ::NetPlayerAction YourActionRejectedMessage::youraction() const { +inline ::NetPlayerAction YourActionRejectedMessage::_internal_youraction() const { return static_cast< ::NetPlayerAction >(youraction_); } -inline void YourActionRejectedMessage::set_youraction(::NetPlayerAction value) { +inline ::NetPlayerAction YourActionRejectedMessage::youraction() const { + // @@protoc_insertion_point(field_get:YourActionRejectedMessage.yourAction) + return _internal_youraction(); +} +inline void YourActionRejectedMessage::_internal_set_youraction(::NetPlayerAction value) { assert(::NetPlayerAction_IsValid(value)); - set_has_youraction(); + _has_bits_[0] |= 0x00000004u; youraction_ = value; } +inline void YourActionRejectedMessage::set_youraction(::NetPlayerAction value) { + _internal_set_youraction(value); + // @@protoc_insertion_point(field_set:YourActionRejectedMessage.yourAction) +} // required uint32 yourRelativeBet = 4; +inline bool YourActionRejectedMessage::_internal_has_yourrelativebet() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool YourActionRejectedMessage::has_yourrelativebet() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void YourActionRejectedMessage::set_has_yourrelativebet() { - _has_bits_[0] |= 0x00000008u; -} -inline void YourActionRejectedMessage::clear_has_yourrelativebet() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_yourrelativebet(); } inline void YourActionRejectedMessage::clear_yourrelativebet() { yourrelativebet_ = 0u; - clear_has_yourrelativebet(); + _has_bits_[0] &= ~0x00000008u; } -inline ::google::protobuf::uint32 YourActionRejectedMessage::yourrelativebet() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 YourActionRejectedMessage::_internal_yourrelativebet() const { return yourrelativebet_; } -inline void YourActionRejectedMessage::set_yourrelativebet(::google::protobuf::uint32 value) { - set_has_yourrelativebet(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 YourActionRejectedMessage::yourrelativebet() const { + // @@protoc_insertion_point(field_get:YourActionRejectedMessage.yourRelativeBet) + return _internal_yourrelativebet(); +} +inline void YourActionRejectedMessage::_internal_set_yourrelativebet(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000008u; yourrelativebet_ = value; } +inline void YourActionRejectedMessage::set_yourrelativebet(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_yourrelativebet(value); + // @@protoc_insertion_point(field_set:YourActionRejectedMessage.yourRelativeBet) +} // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; +inline bool YourActionRejectedMessage::_internal_has_rejectionreason() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} inline bool YourActionRejectedMessage::has_rejectionreason() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void YourActionRejectedMessage::set_has_rejectionreason() { - _has_bits_[0] |= 0x00000010u; -} -inline void YourActionRejectedMessage::clear_has_rejectionreason() { - _has_bits_[0] &= ~0x00000010u; + return _internal_has_rejectionreason(); } inline void YourActionRejectedMessage::clear_rejectionreason() { rejectionreason_ = 1; - clear_has_rejectionreason(); + _has_bits_[0] &= ~0x00000010u; } -inline ::YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::rejectionreason() const { +inline ::YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::_internal_rejectionreason() const { return static_cast< ::YourActionRejectedMessage_RejectionReason >(rejectionreason_); } -inline void YourActionRejectedMessage::set_rejectionreason(::YourActionRejectedMessage_RejectionReason value) { +inline ::YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::rejectionreason() const { + // @@protoc_insertion_point(field_get:YourActionRejectedMessage.rejectionReason) + return _internal_rejectionreason(); +} +inline void YourActionRejectedMessage::_internal_set_rejectionreason(::YourActionRejectedMessage_RejectionReason value) { assert(::YourActionRejectedMessage_RejectionReason_IsValid(value)); - set_has_rejectionreason(); + _has_bits_[0] |= 0x00000010u; rejectionreason_ = value; } +inline void YourActionRejectedMessage::set_rejectionreason(::YourActionRejectedMessage_RejectionReason value) { + _internal_set_rejectionreason(value); + // @@protoc_insertion_point(field_set:YourActionRejectedMessage.rejectionReason) +} // ------------------------------------------------------------------- // PlayersActionDoneMessage // required uint32 gameId = 1; +inline bool PlayersActionDoneMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool PlayersActionDoneMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void PlayersActionDoneMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void PlayersActionDoneMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void PlayersActionDoneMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 PlayersActionDoneMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayersActionDoneMessage::_internal_gameid() const { return gameid_; } -inline void PlayersActionDoneMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayersActionDoneMessage::gameid() const { + // @@protoc_insertion_point(field_get:PlayersActionDoneMessage.gameId) + return _internal_gameid(); +} +inline void PlayersActionDoneMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void PlayersActionDoneMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.gameId) +} // required uint32 playerId = 2; +inline bool PlayersActionDoneMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool PlayersActionDoneMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void PlayersActionDoneMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void PlayersActionDoneMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playerid(); } inline void PlayersActionDoneMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 PlayersActionDoneMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayersActionDoneMessage::_internal_playerid() const { return playerid_; } -inline void PlayersActionDoneMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayersActionDoneMessage::playerid() const { + // @@protoc_insertion_point(field_get:PlayersActionDoneMessage.playerId) + return _internal_playerid(); +} +inline void PlayersActionDoneMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; playerid_ = value; } +inline void PlayersActionDoneMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.playerId) +} // required .NetGameState gameState = 3; +inline bool PlayersActionDoneMessage::_internal_has_gamestate() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool PlayersActionDoneMessage::has_gamestate() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void PlayersActionDoneMessage::set_has_gamestate() { - _has_bits_[0] |= 0x00000004u; -} -inline void PlayersActionDoneMessage::clear_has_gamestate() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_gamestate(); } inline void PlayersActionDoneMessage::clear_gamestate() { gamestate_ = 0; - clear_has_gamestate(); + _has_bits_[0] &= ~0x00000004u; } -inline ::NetGameState PlayersActionDoneMessage::gamestate() const { +inline ::NetGameState PlayersActionDoneMessage::_internal_gamestate() const { return static_cast< ::NetGameState >(gamestate_); } -inline void PlayersActionDoneMessage::set_gamestate(::NetGameState value) { +inline ::NetGameState PlayersActionDoneMessage::gamestate() const { + // @@protoc_insertion_point(field_get:PlayersActionDoneMessage.gameState) + return _internal_gamestate(); +} +inline void PlayersActionDoneMessage::_internal_set_gamestate(::NetGameState value) { assert(::NetGameState_IsValid(value)); - set_has_gamestate(); + _has_bits_[0] |= 0x00000004u; gamestate_ = value; } +inline void PlayersActionDoneMessage::set_gamestate(::NetGameState value) { + _internal_set_gamestate(value); + // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.gameState) +} // required .NetPlayerAction playerAction = 4; +inline bool PlayersActionDoneMessage::_internal_has_playeraction() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool PlayersActionDoneMessage::has_playeraction() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void PlayersActionDoneMessage::set_has_playeraction() { - _has_bits_[0] |= 0x00000008u; -} -inline void PlayersActionDoneMessage::clear_has_playeraction() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_playeraction(); } inline void PlayersActionDoneMessage::clear_playeraction() { playeraction_ = 0; - clear_has_playeraction(); + _has_bits_[0] &= ~0x00000008u; } -inline ::NetPlayerAction PlayersActionDoneMessage::playeraction() const { +inline ::NetPlayerAction PlayersActionDoneMessage::_internal_playeraction() const { return static_cast< ::NetPlayerAction >(playeraction_); } -inline void PlayersActionDoneMessage::set_playeraction(::NetPlayerAction value) { +inline ::NetPlayerAction PlayersActionDoneMessage::playeraction() const { + // @@protoc_insertion_point(field_get:PlayersActionDoneMessage.playerAction) + return _internal_playeraction(); +} +inline void PlayersActionDoneMessage::_internal_set_playeraction(::NetPlayerAction value) { assert(::NetPlayerAction_IsValid(value)); - set_has_playeraction(); + _has_bits_[0] |= 0x00000008u; playeraction_ = value; } +inline void PlayersActionDoneMessage::set_playeraction(::NetPlayerAction value) { + _internal_set_playeraction(value); + // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.playerAction) +} // required uint32 totalPlayerBet = 5; +inline bool PlayersActionDoneMessage::_internal_has_totalplayerbet() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} inline bool PlayersActionDoneMessage::has_totalplayerbet() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void PlayersActionDoneMessage::set_has_totalplayerbet() { - _has_bits_[0] |= 0x00000010u; -} -inline void PlayersActionDoneMessage::clear_has_totalplayerbet() { - _has_bits_[0] &= ~0x00000010u; + return _internal_has_totalplayerbet(); } inline void PlayersActionDoneMessage::clear_totalplayerbet() { totalplayerbet_ = 0u; - clear_has_totalplayerbet(); + _has_bits_[0] &= ~0x00000010u; } -inline ::google::protobuf::uint32 PlayersActionDoneMessage::totalplayerbet() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayersActionDoneMessage::_internal_totalplayerbet() const { return totalplayerbet_; } -inline void PlayersActionDoneMessage::set_totalplayerbet(::google::protobuf::uint32 value) { - set_has_totalplayerbet(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayersActionDoneMessage::totalplayerbet() const { + // @@protoc_insertion_point(field_get:PlayersActionDoneMessage.totalPlayerBet) + return _internal_totalplayerbet(); +} +inline void PlayersActionDoneMessage::_internal_set_totalplayerbet(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000010u; totalplayerbet_ = value; } +inline void PlayersActionDoneMessage::set_totalplayerbet(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_totalplayerbet(value); + // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.totalPlayerBet) +} // required uint32 playerMoney = 6; +inline bool PlayersActionDoneMessage::_internal_has_playermoney() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} inline bool PlayersActionDoneMessage::has_playermoney() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void PlayersActionDoneMessage::set_has_playermoney() { - _has_bits_[0] |= 0x00000020u; -} -inline void PlayersActionDoneMessage::clear_has_playermoney() { - _has_bits_[0] &= ~0x00000020u; + return _internal_has_playermoney(); } inline void PlayersActionDoneMessage::clear_playermoney() { playermoney_ = 0u; - clear_has_playermoney(); + _has_bits_[0] &= ~0x00000020u; } -inline ::google::protobuf::uint32 PlayersActionDoneMessage::playermoney() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayersActionDoneMessage::_internal_playermoney() const { return playermoney_; } -inline void PlayersActionDoneMessage::set_playermoney(::google::protobuf::uint32 value) { - set_has_playermoney(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayersActionDoneMessage::playermoney() const { + // @@protoc_insertion_point(field_get:PlayersActionDoneMessage.playerMoney) + return _internal_playermoney(); +} +inline void PlayersActionDoneMessage::_internal_set_playermoney(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000020u; playermoney_ = value; } +inline void PlayersActionDoneMessage::set_playermoney(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playermoney(value); + // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.playerMoney) +} // required uint32 highestSet = 7; +inline bool PlayersActionDoneMessage::_internal_has_highestset() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} inline bool PlayersActionDoneMessage::has_highestset() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void PlayersActionDoneMessage::set_has_highestset() { - _has_bits_[0] |= 0x00000040u; -} -inline void PlayersActionDoneMessage::clear_has_highestset() { - _has_bits_[0] &= ~0x00000040u; + return _internal_has_highestset(); } inline void PlayersActionDoneMessage::clear_highestset() { highestset_ = 0u; - clear_has_highestset(); + _has_bits_[0] &= ~0x00000040u; } -inline ::google::protobuf::uint32 PlayersActionDoneMessage::highestset() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayersActionDoneMessage::_internal_highestset() const { return highestset_; } -inline void PlayersActionDoneMessage::set_highestset(::google::protobuf::uint32 value) { - set_has_highestset(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayersActionDoneMessage::highestset() const { + // @@protoc_insertion_point(field_get:PlayersActionDoneMessage.highestSet) + return _internal_highestset(); +} +inline void PlayersActionDoneMessage::_internal_set_highestset(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000040u; highestset_ = value; } +inline void PlayersActionDoneMessage::set_highestset(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_highestset(value); + // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.highestSet) +} // required uint32 minimumRaise = 8; +inline bool PlayersActionDoneMessage::_internal_has_minimumraise() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + return value; +} inline bool PlayersActionDoneMessage::has_minimumraise() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -inline void PlayersActionDoneMessage::set_has_minimumraise() { - _has_bits_[0] |= 0x00000080u; -} -inline void PlayersActionDoneMessage::clear_has_minimumraise() { - _has_bits_[0] &= ~0x00000080u; + return _internal_has_minimumraise(); } inline void PlayersActionDoneMessage::clear_minimumraise() { minimumraise_ = 0u; - clear_has_minimumraise(); + _has_bits_[0] &= ~0x00000080u; } -inline ::google::protobuf::uint32 PlayersActionDoneMessage::minimumraise() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayersActionDoneMessage::_internal_minimumraise() const { return minimumraise_; } -inline void PlayersActionDoneMessage::set_minimumraise(::google::protobuf::uint32 value) { - set_has_minimumraise(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayersActionDoneMessage::minimumraise() const { + // @@protoc_insertion_point(field_get:PlayersActionDoneMessage.minimumRaise) + return _internal_minimumraise(); +} +inline void PlayersActionDoneMessage::_internal_set_minimumraise(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000080u; minimumraise_ = value; } +inline void PlayersActionDoneMessage::set_minimumraise(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_minimumraise(value); + // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.minimumRaise) +} // ------------------------------------------------------------------- // DealFlopCardsMessage // required uint32 gameId = 1; +inline bool DealFlopCardsMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool DealFlopCardsMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void DealFlopCardsMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void DealFlopCardsMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void DealFlopCardsMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 DealFlopCardsMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 DealFlopCardsMessage::_internal_gameid() const { return gameid_; } -inline void DealFlopCardsMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 DealFlopCardsMessage::gameid() const { + // @@protoc_insertion_point(field_get:DealFlopCardsMessage.gameId) + return _internal_gameid(); +} +inline void DealFlopCardsMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void DealFlopCardsMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:DealFlopCardsMessage.gameId) +} // required uint32 flopCard1 = 2; +inline bool DealFlopCardsMessage::_internal_has_flopcard1() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool DealFlopCardsMessage::has_flopcard1() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void DealFlopCardsMessage::set_has_flopcard1() { - _has_bits_[0] |= 0x00000002u; -} -inline void DealFlopCardsMessage::clear_has_flopcard1() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_flopcard1(); } inline void DealFlopCardsMessage::clear_flopcard1() { flopcard1_ = 0u; - clear_has_flopcard1(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 DealFlopCardsMessage::flopcard1() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 DealFlopCardsMessage::_internal_flopcard1() const { return flopcard1_; } -inline void DealFlopCardsMessage::set_flopcard1(::google::protobuf::uint32 value) { - set_has_flopcard1(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 DealFlopCardsMessage::flopcard1() const { + // @@protoc_insertion_point(field_get:DealFlopCardsMessage.flopCard1) + return _internal_flopcard1(); +} +inline void DealFlopCardsMessage::_internal_set_flopcard1(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; flopcard1_ = value; } +inline void DealFlopCardsMessage::set_flopcard1(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_flopcard1(value); + // @@protoc_insertion_point(field_set:DealFlopCardsMessage.flopCard1) +} // required uint32 flopCard2 = 3; +inline bool DealFlopCardsMessage::_internal_has_flopcard2() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool DealFlopCardsMessage::has_flopcard2() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void DealFlopCardsMessage::set_has_flopcard2() { - _has_bits_[0] |= 0x00000004u; -} -inline void DealFlopCardsMessage::clear_has_flopcard2() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_flopcard2(); } inline void DealFlopCardsMessage::clear_flopcard2() { flopcard2_ = 0u; - clear_has_flopcard2(); + _has_bits_[0] &= ~0x00000004u; } -inline ::google::protobuf::uint32 DealFlopCardsMessage::flopcard2() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 DealFlopCardsMessage::_internal_flopcard2() const { return flopcard2_; } -inline void DealFlopCardsMessage::set_flopcard2(::google::protobuf::uint32 value) { - set_has_flopcard2(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 DealFlopCardsMessage::flopcard2() const { + // @@protoc_insertion_point(field_get:DealFlopCardsMessage.flopCard2) + return _internal_flopcard2(); +} +inline void DealFlopCardsMessage::_internal_set_flopcard2(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000004u; flopcard2_ = value; } +inline void DealFlopCardsMessage::set_flopcard2(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_flopcard2(value); + // @@protoc_insertion_point(field_set:DealFlopCardsMessage.flopCard2) +} // required uint32 flopCard3 = 4; +inline bool DealFlopCardsMessage::_internal_has_flopcard3() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool DealFlopCardsMessage::has_flopcard3() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void DealFlopCardsMessage::set_has_flopcard3() { - _has_bits_[0] |= 0x00000008u; -} -inline void DealFlopCardsMessage::clear_has_flopcard3() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_flopcard3(); } inline void DealFlopCardsMessage::clear_flopcard3() { flopcard3_ = 0u; - clear_has_flopcard3(); + _has_bits_[0] &= ~0x00000008u; } -inline ::google::protobuf::uint32 DealFlopCardsMessage::flopcard3() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 DealFlopCardsMessage::_internal_flopcard3() const { return flopcard3_; } -inline void DealFlopCardsMessage::set_flopcard3(::google::protobuf::uint32 value) { - set_has_flopcard3(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 DealFlopCardsMessage::flopcard3() const { + // @@protoc_insertion_point(field_get:DealFlopCardsMessage.flopCard3) + return _internal_flopcard3(); +} +inline void DealFlopCardsMessage::_internal_set_flopcard3(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000008u; flopcard3_ = value; } +inline void DealFlopCardsMessage::set_flopcard3(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_flopcard3(value); + // @@protoc_insertion_point(field_set:DealFlopCardsMessage.flopCard3) +} // ------------------------------------------------------------------- // DealTurnCardMessage // required uint32 gameId = 1; +inline bool DealTurnCardMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool DealTurnCardMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void DealTurnCardMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void DealTurnCardMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void DealTurnCardMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 DealTurnCardMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 DealTurnCardMessage::_internal_gameid() const { return gameid_; } -inline void DealTurnCardMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 DealTurnCardMessage::gameid() const { + // @@protoc_insertion_point(field_get:DealTurnCardMessage.gameId) + return _internal_gameid(); +} +inline void DealTurnCardMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void DealTurnCardMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:DealTurnCardMessage.gameId) +} // required uint32 turnCard = 2; +inline bool DealTurnCardMessage::_internal_has_turncard() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool DealTurnCardMessage::has_turncard() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void DealTurnCardMessage::set_has_turncard() { - _has_bits_[0] |= 0x00000002u; -} -inline void DealTurnCardMessage::clear_has_turncard() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_turncard(); } inline void DealTurnCardMessage::clear_turncard() { turncard_ = 0u; - clear_has_turncard(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 DealTurnCardMessage::turncard() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 DealTurnCardMessage::_internal_turncard() const { return turncard_; } -inline void DealTurnCardMessage::set_turncard(::google::protobuf::uint32 value) { - set_has_turncard(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 DealTurnCardMessage::turncard() const { + // @@protoc_insertion_point(field_get:DealTurnCardMessage.turnCard) + return _internal_turncard(); +} +inline void DealTurnCardMessage::_internal_set_turncard(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; turncard_ = value; } +inline void DealTurnCardMessage::set_turncard(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_turncard(value); + // @@protoc_insertion_point(field_set:DealTurnCardMessage.turnCard) +} // ------------------------------------------------------------------- // DealRiverCardMessage // required uint32 gameId = 1; +inline bool DealRiverCardMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool DealRiverCardMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void DealRiverCardMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void DealRiverCardMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void DealRiverCardMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 DealRiverCardMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 DealRiverCardMessage::_internal_gameid() const { return gameid_; } -inline void DealRiverCardMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 DealRiverCardMessage::gameid() const { + // @@protoc_insertion_point(field_get:DealRiverCardMessage.gameId) + return _internal_gameid(); +} +inline void DealRiverCardMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void DealRiverCardMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:DealRiverCardMessage.gameId) +} // required uint32 riverCard = 2; +inline bool DealRiverCardMessage::_internal_has_rivercard() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool DealRiverCardMessage::has_rivercard() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void DealRiverCardMessage::set_has_rivercard() { - _has_bits_[0] |= 0x00000002u; -} -inline void DealRiverCardMessage::clear_has_rivercard() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_rivercard(); } inline void DealRiverCardMessage::clear_rivercard() { rivercard_ = 0u; - clear_has_rivercard(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 DealRiverCardMessage::rivercard() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 DealRiverCardMessage::_internal_rivercard() const { return rivercard_; } -inline void DealRiverCardMessage::set_rivercard(::google::protobuf::uint32 value) { - set_has_rivercard(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 DealRiverCardMessage::rivercard() const { + // @@protoc_insertion_point(field_get:DealRiverCardMessage.riverCard) + return _internal_rivercard(); +} +inline void DealRiverCardMessage::_internal_set_rivercard(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; rivercard_ = value; } +inline void DealRiverCardMessage::set_rivercard(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_rivercard(value); + // @@protoc_insertion_point(field_set:DealRiverCardMessage.riverCard) +} // ------------------------------------------------------------------- // AllInShowCardsMessage_PlayerAllIn // required uint32 playerId = 1; +inline bool AllInShowCardsMessage_PlayerAllIn::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool AllInShowCardsMessage_PlayerAllIn::has_playerid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AllInShowCardsMessage_PlayerAllIn::set_has_playerid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AllInShowCardsMessage_PlayerAllIn::clear_has_playerid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_playerid(); } inline void AllInShowCardsMessage_PlayerAllIn::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 AllInShowCardsMessage_PlayerAllIn::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AllInShowCardsMessage_PlayerAllIn::_internal_playerid() const { return playerid_; } -inline void AllInShowCardsMessage_PlayerAllIn::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AllInShowCardsMessage_PlayerAllIn::playerid() const { + // @@protoc_insertion_point(field_get:AllInShowCardsMessage.PlayerAllIn.playerId) + return _internal_playerid(); +} +inline void AllInShowCardsMessage_PlayerAllIn::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; playerid_ = value; } +inline void AllInShowCardsMessage_PlayerAllIn::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:AllInShowCardsMessage.PlayerAllIn.playerId) +} // required uint32 allInCard1 = 2; +inline bool AllInShowCardsMessage_PlayerAllIn::_internal_has_allincard1() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool AllInShowCardsMessage_PlayerAllIn::has_allincard1() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AllInShowCardsMessage_PlayerAllIn::set_has_allincard1() { - _has_bits_[0] |= 0x00000002u; -} -inline void AllInShowCardsMessage_PlayerAllIn::clear_has_allincard1() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_allincard1(); } inline void AllInShowCardsMessage_PlayerAllIn::clear_allincard1() { allincard1_ = 0u; - clear_has_allincard1(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 AllInShowCardsMessage_PlayerAllIn::allincard1() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AllInShowCardsMessage_PlayerAllIn::_internal_allincard1() const { return allincard1_; } -inline void AllInShowCardsMessage_PlayerAllIn::set_allincard1(::google::protobuf::uint32 value) { - set_has_allincard1(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AllInShowCardsMessage_PlayerAllIn::allincard1() const { + // @@protoc_insertion_point(field_get:AllInShowCardsMessage.PlayerAllIn.allInCard1) + return _internal_allincard1(); +} +inline void AllInShowCardsMessage_PlayerAllIn::_internal_set_allincard1(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; allincard1_ = value; } +inline void AllInShowCardsMessage_PlayerAllIn::set_allincard1(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_allincard1(value); + // @@protoc_insertion_point(field_set:AllInShowCardsMessage.PlayerAllIn.allInCard1) +} // required uint32 allInCard2 = 3; +inline bool AllInShowCardsMessage_PlayerAllIn::_internal_has_allincard2() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool AllInShowCardsMessage_PlayerAllIn::has_allincard2() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void AllInShowCardsMessage_PlayerAllIn::set_has_allincard2() { - _has_bits_[0] |= 0x00000004u; -} -inline void AllInShowCardsMessage_PlayerAllIn::clear_has_allincard2() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_allincard2(); } inline void AllInShowCardsMessage_PlayerAllIn::clear_allincard2() { allincard2_ = 0u; - clear_has_allincard2(); + _has_bits_[0] &= ~0x00000004u; } -inline ::google::protobuf::uint32 AllInShowCardsMessage_PlayerAllIn::allincard2() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AllInShowCardsMessage_PlayerAllIn::_internal_allincard2() const { return allincard2_; } -inline void AllInShowCardsMessage_PlayerAllIn::set_allincard2(::google::protobuf::uint32 value) { - set_has_allincard2(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AllInShowCardsMessage_PlayerAllIn::allincard2() const { + // @@protoc_insertion_point(field_get:AllInShowCardsMessage.PlayerAllIn.allInCard2) + return _internal_allincard2(); +} +inline void AllInShowCardsMessage_PlayerAllIn::_internal_set_allincard2(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000004u; allincard2_ = value; } +inline void AllInShowCardsMessage_PlayerAllIn::set_allincard2(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_allincard2(value); + // @@protoc_insertion_point(field_set:AllInShowCardsMessage.PlayerAllIn.allInCard2) +} // ------------------------------------------------------------------- // AllInShowCardsMessage // required uint32 gameId = 1; +inline bool AllInShowCardsMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool AllInShowCardsMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AllInShowCardsMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AllInShowCardsMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void AllInShowCardsMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 AllInShowCardsMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AllInShowCardsMessage::_internal_gameid() const { return gameid_; } -inline void AllInShowCardsMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AllInShowCardsMessage::gameid() const { + // @@protoc_insertion_point(field_get:AllInShowCardsMessage.gameId) + return _internal_gameid(); +} +inline void AllInShowCardsMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void AllInShowCardsMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:AllInShowCardsMessage.gameId) +} // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; -inline int AllInShowCardsMessage::playersallin_size() const { +inline int AllInShowCardsMessage::_internal_playersallin_size() const { return playersallin_.size(); } +inline int AllInShowCardsMessage::playersallin_size() const { + return _internal_playersallin_size(); +} inline void AllInShowCardsMessage::clear_playersallin() { playersallin_.Clear(); } -inline const ::AllInShowCardsMessage_PlayerAllIn& AllInShowCardsMessage::playersallin(int index) const { - return playersallin_.Get(index); -} inline ::AllInShowCardsMessage_PlayerAllIn* AllInShowCardsMessage::mutable_playersallin(int index) { return playersallin_.Mutable(index); } -inline ::AllInShowCardsMessage_PlayerAllIn* AllInShowCardsMessage::add_playersallin() { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn >* +AllInShowCardsMessage::mutable_playersallin() { + // @@protoc_insertion_point(field_mutable_list:AllInShowCardsMessage.playersAllIn) + return &playersallin_; +} +inline const ::AllInShowCardsMessage_PlayerAllIn& AllInShowCardsMessage::_internal_playersallin(int index) const { + return playersallin_.Get(index); +} +inline const ::AllInShowCardsMessage_PlayerAllIn& AllInShowCardsMessage::playersallin(int index) const { + // @@protoc_insertion_point(field_get:AllInShowCardsMessage.playersAllIn) + return _internal_playersallin(index); +} +inline ::AllInShowCardsMessage_PlayerAllIn* AllInShowCardsMessage::_internal_add_playersallin() { return playersallin_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn >& +inline ::AllInShowCardsMessage_PlayerAllIn* AllInShowCardsMessage::add_playersallin() { + // @@protoc_insertion_point(field_add:AllInShowCardsMessage.playersAllIn) + return _internal_add_playersallin(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn >& AllInShowCardsMessage::playersallin() const { return playersallin_; } -inline ::google::protobuf::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn >* -AllInShowCardsMessage::mutable_playersallin() { - return &playersallin_; -} // ------------------------------------------------------------------- // EndOfHandShowCardsMessage // required uint32 gameId = 1; +inline bool EndOfHandShowCardsMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool EndOfHandShowCardsMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void EndOfHandShowCardsMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void EndOfHandShowCardsMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void EndOfHandShowCardsMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 EndOfHandShowCardsMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndOfHandShowCardsMessage::_internal_gameid() const { return gameid_; } -inline void EndOfHandShowCardsMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndOfHandShowCardsMessage::gameid() const { + // @@protoc_insertion_point(field_get:EndOfHandShowCardsMessage.gameId) + return _internal_gameid(); +} +inline void EndOfHandShowCardsMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void EndOfHandShowCardsMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:EndOfHandShowCardsMessage.gameId) +} // repeated .PlayerResult playerResults = 2; -inline int EndOfHandShowCardsMessage::playerresults_size() const { +inline int EndOfHandShowCardsMessage::_internal_playerresults_size() const { return playerresults_.size(); } +inline int EndOfHandShowCardsMessage::playerresults_size() const { + return _internal_playerresults_size(); +} inline void EndOfHandShowCardsMessage::clear_playerresults() { playerresults_.Clear(); } -inline const ::PlayerResult& EndOfHandShowCardsMessage::playerresults(int index) const { - return playerresults_.Get(index); -} inline ::PlayerResult* EndOfHandShowCardsMessage::mutable_playerresults(int index) { return playerresults_.Mutable(index); } -inline ::PlayerResult* EndOfHandShowCardsMessage::add_playerresults() { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PlayerResult >* +EndOfHandShowCardsMessage::mutable_playerresults() { + // @@protoc_insertion_point(field_mutable_list:EndOfHandShowCardsMessage.playerResults) + return &playerresults_; +} +inline const ::PlayerResult& EndOfHandShowCardsMessage::_internal_playerresults(int index) const { + return playerresults_.Get(index); +} +inline const ::PlayerResult& EndOfHandShowCardsMessage::playerresults(int index) const { + // @@protoc_insertion_point(field_get:EndOfHandShowCardsMessage.playerResults) + return _internal_playerresults(index); +} +inline ::PlayerResult* EndOfHandShowCardsMessage::_internal_add_playerresults() { return playerresults_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::PlayerResult >& +inline ::PlayerResult* EndOfHandShowCardsMessage::add_playerresults() { + // @@protoc_insertion_point(field_add:EndOfHandShowCardsMessage.playerResults) + return _internal_add_playerresults(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PlayerResult >& EndOfHandShowCardsMessage::playerresults() const { return playerresults_; } -inline ::google::protobuf::RepeatedPtrField< ::PlayerResult >* -EndOfHandShowCardsMessage::mutable_playerresults() { - return &playerresults_; -} // ------------------------------------------------------------------- // EndOfHandHideCardsMessage // required uint32 gameId = 1; +inline bool EndOfHandHideCardsMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool EndOfHandHideCardsMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void EndOfHandHideCardsMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void EndOfHandHideCardsMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void EndOfHandHideCardsMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 EndOfHandHideCardsMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndOfHandHideCardsMessage::_internal_gameid() const { return gameid_; } -inline void EndOfHandHideCardsMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndOfHandHideCardsMessage::gameid() const { + // @@protoc_insertion_point(field_get:EndOfHandHideCardsMessage.gameId) + return _internal_gameid(); +} +inline void EndOfHandHideCardsMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void EndOfHandHideCardsMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:EndOfHandHideCardsMessage.gameId) +} // required uint32 playerId = 2; +inline bool EndOfHandHideCardsMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool EndOfHandHideCardsMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void EndOfHandHideCardsMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void EndOfHandHideCardsMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playerid(); } inline void EndOfHandHideCardsMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 EndOfHandHideCardsMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndOfHandHideCardsMessage::_internal_playerid() const { return playerid_; } -inline void EndOfHandHideCardsMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndOfHandHideCardsMessage::playerid() const { + // @@protoc_insertion_point(field_get:EndOfHandHideCardsMessage.playerId) + return _internal_playerid(); +} +inline void EndOfHandHideCardsMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; playerid_ = value; } +inline void EndOfHandHideCardsMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:EndOfHandHideCardsMessage.playerId) +} // required uint32 moneyWon = 3; +inline bool EndOfHandHideCardsMessage::_internal_has_moneywon() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool EndOfHandHideCardsMessage::has_moneywon() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void EndOfHandHideCardsMessage::set_has_moneywon() { - _has_bits_[0] |= 0x00000004u; -} -inline void EndOfHandHideCardsMessage::clear_has_moneywon() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_moneywon(); } inline void EndOfHandHideCardsMessage::clear_moneywon() { moneywon_ = 0u; - clear_has_moneywon(); + _has_bits_[0] &= ~0x00000004u; } -inline ::google::protobuf::uint32 EndOfHandHideCardsMessage::moneywon() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndOfHandHideCardsMessage::_internal_moneywon() const { return moneywon_; } -inline void EndOfHandHideCardsMessage::set_moneywon(::google::protobuf::uint32 value) { - set_has_moneywon(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndOfHandHideCardsMessage::moneywon() const { + // @@protoc_insertion_point(field_get:EndOfHandHideCardsMessage.moneyWon) + return _internal_moneywon(); +} +inline void EndOfHandHideCardsMessage::_internal_set_moneywon(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000004u; moneywon_ = value; } +inline void EndOfHandHideCardsMessage::set_moneywon(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_moneywon(value); + // @@protoc_insertion_point(field_set:EndOfHandHideCardsMessage.moneyWon) +} // required uint32 playerMoney = 4; +inline bool EndOfHandHideCardsMessage::_internal_has_playermoney() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool EndOfHandHideCardsMessage::has_playermoney() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void EndOfHandHideCardsMessage::set_has_playermoney() { - _has_bits_[0] |= 0x00000008u; -} -inline void EndOfHandHideCardsMessage::clear_has_playermoney() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_playermoney(); } inline void EndOfHandHideCardsMessage::clear_playermoney() { playermoney_ = 0u; - clear_has_playermoney(); + _has_bits_[0] &= ~0x00000008u; } -inline ::google::protobuf::uint32 EndOfHandHideCardsMessage::playermoney() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndOfHandHideCardsMessage::_internal_playermoney() const { return playermoney_; } -inline void EndOfHandHideCardsMessage::set_playermoney(::google::protobuf::uint32 value) { - set_has_playermoney(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndOfHandHideCardsMessage::playermoney() const { + // @@protoc_insertion_point(field_get:EndOfHandHideCardsMessage.playerMoney) + return _internal_playermoney(); +} +inline void EndOfHandHideCardsMessage::_internal_set_playermoney(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000008u; playermoney_ = value; } +inline void EndOfHandHideCardsMessage::set_playermoney(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playermoney(value); + // @@protoc_insertion_point(field_set:EndOfHandHideCardsMessage.playerMoney) +} // ------------------------------------------------------------------- @@ -17380,45 +26585,84 @@ inline void EndOfHandHideCardsMessage::set_playermoney(::google::protobuf::uint3 // AfterHandShowCardsMessage // required .PlayerResult playerResult = 1; +inline bool AfterHandShowCardsMessage::_internal_has_playerresult() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || playerresult_ != nullptr); + return value; +} inline bool AfterHandShowCardsMessage::has_playerresult() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AfterHandShowCardsMessage::set_has_playerresult() { - _has_bits_[0] |= 0x00000001u; -} -inline void AfterHandShowCardsMessage::clear_has_playerresult() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_playerresult(); } inline void AfterHandShowCardsMessage::clear_playerresult() { - if (playerresult_ != NULL) playerresult_->::PlayerResult::Clear(); - clear_has_playerresult(); + if (playerresult_ != nullptr) playerresult_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +inline const ::PlayerResult& AfterHandShowCardsMessage::_internal_playerresult() const { + const ::PlayerResult* p = playerresult_; + return p != nullptr ? *p : *reinterpret_cast( + &::_PlayerResult_default_instance_); } inline const ::PlayerResult& AfterHandShowCardsMessage::playerresult() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return playerresult_ != NULL ? *playerresult_ : *default_instance().playerresult_; -#else - return playerresult_ != NULL ? *playerresult_ : *default_instance_->playerresult_; -#endif + // @@protoc_insertion_point(field_get:AfterHandShowCardsMessage.playerResult) + return _internal_playerresult(); } -inline ::PlayerResult* AfterHandShowCardsMessage::mutable_playerresult() { - set_has_playerresult(); - if (playerresult_ == NULL) playerresult_ = new ::PlayerResult; - return playerresult_; -} -inline ::PlayerResult* AfterHandShowCardsMessage::release_playerresult() { - clear_has_playerresult(); - ::PlayerResult* temp = playerresult_; - playerresult_ = NULL; - return temp; -} -inline void AfterHandShowCardsMessage::set_allocated_playerresult(::PlayerResult* playerresult) { - delete playerresult_; +inline void AfterHandShowCardsMessage::unsafe_arena_set_allocated_playerresult( + ::PlayerResult* playerresult) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(playerresult_); + } playerresult_ = playerresult; if (playerresult) { - set_has_playerresult(); + _has_bits_[0] |= 0x00000001u; } else { - clear_has_playerresult(); + _has_bits_[0] &= ~0x00000001u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:AfterHandShowCardsMessage.playerResult) +} +inline ::PlayerResult* AfterHandShowCardsMessage::release_playerresult() { + auto temp = unsafe_arena_release_playerresult(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::PlayerResult* AfterHandShowCardsMessage::unsafe_arena_release_playerresult() { + // @@protoc_insertion_point(field_release:AfterHandShowCardsMessage.playerResult) + _has_bits_[0] &= ~0x00000001u; + ::PlayerResult* temp = playerresult_; + playerresult_ = nullptr; + return temp; +} +inline ::PlayerResult* AfterHandShowCardsMessage::_internal_mutable_playerresult() { + _has_bits_[0] |= 0x00000001u; + if (playerresult_ == nullptr) { + auto* p = CreateMaybeMessage<::PlayerResult>(GetArena()); + playerresult_ = p; + } + return playerresult_; +} +inline ::PlayerResult* AfterHandShowCardsMessage::mutable_playerresult() { + // @@protoc_insertion_point(field_mutable:AfterHandShowCardsMessage.playerResult) + return _internal_mutable_playerresult(); +} +inline void AfterHandShowCardsMessage::set_allocated_playerresult(::PlayerResult* playerresult) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete playerresult_; + } + if (playerresult) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(playerresult); + if (message_arena != submessage_arena) { + playerresult = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, playerresult, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + playerresult_ = playerresult; + // @@protoc_insertion_point(field_set_allocated:AfterHandShowCardsMessage.playerResult) } // ------------------------------------------------------------------- @@ -17426,938 +26670,1189 @@ inline void AfterHandShowCardsMessage::set_allocated_playerresult(::PlayerResult // EndOfGameMessage // required uint32 gameId = 1; +inline bool EndOfGameMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool EndOfGameMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void EndOfGameMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void EndOfGameMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void EndOfGameMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 EndOfGameMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndOfGameMessage::_internal_gameid() const { return gameid_; } -inline void EndOfGameMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndOfGameMessage::gameid() const { + // @@protoc_insertion_point(field_get:EndOfGameMessage.gameId) + return _internal_gameid(); +} +inline void EndOfGameMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void EndOfGameMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:EndOfGameMessage.gameId) +} // required uint32 winnerPlayerId = 2; +inline bool EndOfGameMessage::_internal_has_winnerplayerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool EndOfGameMessage::has_winnerplayerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void EndOfGameMessage::set_has_winnerplayerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void EndOfGameMessage::clear_has_winnerplayerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_winnerplayerid(); } inline void EndOfGameMessage::clear_winnerplayerid() { winnerplayerid_ = 0u; - clear_has_winnerplayerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 EndOfGameMessage::winnerplayerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndOfGameMessage::_internal_winnerplayerid() const { return winnerplayerid_; } -inline void EndOfGameMessage::set_winnerplayerid(::google::protobuf::uint32 value) { - set_has_winnerplayerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndOfGameMessage::winnerplayerid() const { + // @@protoc_insertion_point(field_get:EndOfGameMessage.winnerPlayerId) + return _internal_winnerplayerid(); +} +inline void EndOfGameMessage::_internal_set_winnerplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; winnerplayerid_ = value; } +inline void EndOfGameMessage::set_winnerplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_winnerplayerid(value); + // @@protoc_insertion_point(field_set:EndOfGameMessage.winnerPlayerId) +} // ------------------------------------------------------------------- // PlayerIdChangedMessage // required uint32 oldPlayerId = 1; +inline bool PlayerIdChangedMessage::_internal_has_oldplayerid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool PlayerIdChangedMessage::has_oldplayerid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void PlayerIdChangedMessage::set_has_oldplayerid() { - _has_bits_[0] |= 0x00000001u; -} -inline void PlayerIdChangedMessage::clear_has_oldplayerid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_oldplayerid(); } inline void PlayerIdChangedMessage::clear_oldplayerid() { oldplayerid_ = 0u; - clear_has_oldplayerid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 PlayerIdChangedMessage::oldplayerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerIdChangedMessage::_internal_oldplayerid() const { return oldplayerid_; } -inline void PlayerIdChangedMessage::set_oldplayerid(::google::protobuf::uint32 value) { - set_has_oldplayerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerIdChangedMessage::oldplayerid() const { + // @@protoc_insertion_point(field_get:PlayerIdChangedMessage.oldPlayerId) + return _internal_oldplayerid(); +} +inline void PlayerIdChangedMessage::_internal_set_oldplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; oldplayerid_ = value; } +inline void PlayerIdChangedMessage::set_oldplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_oldplayerid(value); + // @@protoc_insertion_point(field_set:PlayerIdChangedMessage.oldPlayerId) +} // required uint32 newPlayerId = 2; +inline bool PlayerIdChangedMessage::_internal_has_newplayerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool PlayerIdChangedMessage::has_newplayerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void PlayerIdChangedMessage::set_has_newplayerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void PlayerIdChangedMessage::clear_has_newplayerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_newplayerid(); } inline void PlayerIdChangedMessage::clear_newplayerid() { newplayerid_ = 0u; - clear_has_newplayerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 PlayerIdChangedMessage::newplayerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerIdChangedMessage::_internal_newplayerid() const { return newplayerid_; } -inline void PlayerIdChangedMessage::set_newplayerid(::google::protobuf::uint32 value) { - set_has_newplayerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 PlayerIdChangedMessage::newplayerid() const { + // @@protoc_insertion_point(field_get:PlayerIdChangedMessage.newPlayerId) + return _internal_newplayerid(); +} +inline void PlayerIdChangedMessage::_internal_set_newplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; newplayerid_ = value; } +inline void PlayerIdChangedMessage::set_newplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_newplayerid(value); + // @@protoc_insertion_point(field_set:PlayerIdChangedMessage.newPlayerId) +} // ------------------------------------------------------------------- // AskKickPlayerMessage // required uint32 gameId = 1; +inline bool AskKickPlayerMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool AskKickPlayerMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AskKickPlayerMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AskKickPlayerMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void AskKickPlayerMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 AskKickPlayerMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AskKickPlayerMessage::_internal_gameid() const { return gameid_; } -inline void AskKickPlayerMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AskKickPlayerMessage::gameid() const { + // @@protoc_insertion_point(field_get:AskKickPlayerMessage.gameId) + return _internal_gameid(); +} +inline void AskKickPlayerMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void AskKickPlayerMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:AskKickPlayerMessage.gameId) +} // required uint32 playerId = 2; +inline bool AskKickPlayerMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool AskKickPlayerMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AskKickPlayerMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void AskKickPlayerMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playerid(); } inline void AskKickPlayerMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 AskKickPlayerMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AskKickPlayerMessage::_internal_playerid() const { return playerid_; } -inline void AskKickPlayerMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AskKickPlayerMessage::playerid() const { + // @@protoc_insertion_point(field_get:AskKickPlayerMessage.playerId) + return _internal_playerid(); +} +inline void AskKickPlayerMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; playerid_ = value; } +inline void AskKickPlayerMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:AskKickPlayerMessage.playerId) +} // ------------------------------------------------------------------- // AskKickDeniedMessage // required uint32 gameId = 1; +inline bool AskKickDeniedMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool AskKickDeniedMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AskKickDeniedMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AskKickDeniedMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void AskKickDeniedMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 AskKickDeniedMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AskKickDeniedMessage::_internal_gameid() const { return gameid_; } -inline void AskKickDeniedMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AskKickDeniedMessage::gameid() const { + // @@protoc_insertion_point(field_get:AskKickDeniedMessage.gameId) + return _internal_gameid(); +} +inline void AskKickDeniedMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void AskKickDeniedMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:AskKickDeniedMessage.gameId) +} // required uint32 playerId = 2; +inline bool AskKickDeniedMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool AskKickDeniedMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AskKickDeniedMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void AskKickDeniedMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playerid(); } inline void AskKickDeniedMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 AskKickDeniedMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AskKickDeniedMessage::_internal_playerid() const { return playerid_; } -inline void AskKickDeniedMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AskKickDeniedMessage::playerid() const { + // @@protoc_insertion_point(field_get:AskKickDeniedMessage.playerId) + return _internal_playerid(); +} +inline void AskKickDeniedMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; playerid_ = value; } +inline void AskKickDeniedMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:AskKickDeniedMessage.playerId) +} // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; +inline bool AskKickDeniedMessage::_internal_has_kickdeniedreason() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool AskKickDeniedMessage::has_kickdeniedreason() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void AskKickDeniedMessage::set_has_kickdeniedreason() { - _has_bits_[0] |= 0x00000004u; -} -inline void AskKickDeniedMessage::clear_has_kickdeniedreason() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_kickdeniedreason(); } inline void AskKickDeniedMessage::clear_kickdeniedreason() { kickdeniedreason_ = 0; - clear_has_kickdeniedreason(); + _has_bits_[0] &= ~0x00000004u; } -inline ::AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickdeniedreason() const { +inline ::AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::_internal_kickdeniedreason() const { return static_cast< ::AskKickDeniedMessage_KickDeniedReason >(kickdeniedreason_); } -inline void AskKickDeniedMessage::set_kickdeniedreason(::AskKickDeniedMessage_KickDeniedReason value) { +inline ::AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickdeniedreason() const { + // @@protoc_insertion_point(field_get:AskKickDeniedMessage.kickDeniedReason) + return _internal_kickdeniedreason(); +} +inline void AskKickDeniedMessage::_internal_set_kickdeniedreason(::AskKickDeniedMessage_KickDeniedReason value) { assert(::AskKickDeniedMessage_KickDeniedReason_IsValid(value)); - set_has_kickdeniedreason(); + _has_bits_[0] |= 0x00000004u; kickdeniedreason_ = value; } +inline void AskKickDeniedMessage::set_kickdeniedreason(::AskKickDeniedMessage_KickDeniedReason value) { + _internal_set_kickdeniedreason(value); + // @@protoc_insertion_point(field_set:AskKickDeniedMessage.kickDeniedReason) +} // ------------------------------------------------------------------- // StartKickPetitionMessage // required uint32 gameId = 1; +inline bool StartKickPetitionMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool StartKickPetitionMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void StartKickPetitionMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void StartKickPetitionMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void StartKickPetitionMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 StartKickPetitionMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 StartKickPetitionMessage::_internal_gameid() const { return gameid_; } -inline void StartKickPetitionMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 StartKickPetitionMessage::gameid() const { + // @@protoc_insertion_point(field_get:StartKickPetitionMessage.gameId) + return _internal_gameid(); +} +inline void StartKickPetitionMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void StartKickPetitionMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:StartKickPetitionMessage.gameId) +} // required uint32 petitionId = 2; +inline bool StartKickPetitionMessage::_internal_has_petitionid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool StartKickPetitionMessage::has_petitionid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void StartKickPetitionMessage::set_has_petitionid() { - _has_bits_[0] |= 0x00000002u; -} -inline void StartKickPetitionMessage::clear_has_petitionid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_petitionid(); } inline void StartKickPetitionMessage::clear_petitionid() { petitionid_ = 0u; - clear_has_petitionid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 StartKickPetitionMessage::petitionid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 StartKickPetitionMessage::_internal_petitionid() const { return petitionid_; } -inline void StartKickPetitionMessage::set_petitionid(::google::protobuf::uint32 value) { - set_has_petitionid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 StartKickPetitionMessage::petitionid() const { + // @@protoc_insertion_point(field_get:StartKickPetitionMessage.petitionId) + return _internal_petitionid(); +} +inline void StartKickPetitionMessage::_internal_set_petitionid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; petitionid_ = value; } +inline void StartKickPetitionMessage::set_petitionid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_petitionid(value); + // @@protoc_insertion_point(field_set:StartKickPetitionMessage.petitionId) +} // required uint32 proposingPlayerId = 3; +inline bool StartKickPetitionMessage::_internal_has_proposingplayerid() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool StartKickPetitionMessage::has_proposingplayerid() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void StartKickPetitionMessage::set_has_proposingplayerid() { - _has_bits_[0] |= 0x00000004u; -} -inline void StartKickPetitionMessage::clear_has_proposingplayerid() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_proposingplayerid(); } inline void StartKickPetitionMessage::clear_proposingplayerid() { proposingplayerid_ = 0u; - clear_has_proposingplayerid(); + _has_bits_[0] &= ~0x00000004u; } -inline ::google::protobuf::uint32 StartKickPetitionMessage::proposingplayerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 StartKickPetitionMessage::_internal_proposingplayerid() const { return proposingplayerid_; } -inline void StartKickPetitionMessage::set_proposingplayerid(::google::protobuf::uint32 value) { - set_has_proposingplayerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 StartKickPetitionMessage::proposingplayerid() const { + // @@protoc_insertion_point(field_get:StartKickPetitionMessage.proposingPlayerId) + return _internal_proposingplayerid(); +} +inline void StartKickPetitionMessage::_internal_set_proposingplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000004u; proposingplayerid_ = value; } +inline void StartKickPetitionMessage::set_proposingplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_proposingplayerid(value); + // @@protoc_insertion_point(field_set:StartKickPetitionMessage.proposingPlayerId) +} // required uint32 kickPlayerId = 4; +inline bool StartKickPetitionMessage::_internal_has_kickplayerid() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool StartKickPetitionMessage::has_kickplayerid() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void StartKickPetitionMessage::set_has_kickplayerid() { - _has_bits_[0] |= 0x00000008u; -} -inline void StartKickPetitionMessage::clear_has_kickplayerid() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_kickplayerid(); } inline void StartKickPetitionMessage::clear_kickplayerid() { kickplayerid_ = 0u; - clear_has_kickplayerid(); + _has_bits_[0] &= ~0x00000008u; } -inline ::google::protobuf::uint32 StartKickPetitionMessage::kickplayerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 StartKickPetitionMessage::_internal_kickplayerid() const { return kickplayerid_; } -inline void StartKickPetitionMessage::set_kickplayerid(::google::protobuf::uint32 value) { - set_has_kickplayerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 StartKickPetitionMessage::kickplayerid() const { + // @@protoc_insertion_point(field_get:StartKickPetitionMessage.kickPlayerId) + return _internal_kickplayerid(); +} +inline void StartKickPetitionMessage::_internal_set_kickplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000008u; kickplayerid_ = value; } +inline void StartKickPetitionMessage::set_kickplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_kickplayerid(value); + // @@protoc_insertion_point(field_set:StartKickPetitionMessage.kickPlayerId) +} // required uint32 kickTimeoutSec = 5; +inline bool StartKickPetitionMessage::_internal_has_kicktimeoutsec() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} inline bool StartKickPetitionMessage::has_kicktimeoutsec() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void StartKickPetitionMessage::set_has_kicktimeoutsec() { - _has_bits_[0] |= 0x00000010u; -} -inline void StartKickPetitionMessage::clear_has_kicktimeoutsec() { - _has_bits_[0] &= ~0x00000010u; + return _internal_has_kicktimeoutsec(); } inline void StartKickPetitionMessage::clear_kicktimeoutsec() { kicktimeoutsec_ = 0u; - clear_has_kicktimeoutsec(); + _has_bits_[0] &= ~0x00000010u; } -inline ::google::protobuf::uint32 StartKickPetitionMessage::kicktimeoutsec() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 StartKickPetitionMessage::_internal_kicktimeoutsec() const { return kicktimeoutsec_; } -inline void StartKickPetitionMessage::set_kicktimeoutsec(::google::protobuf::uint32 value) { - set_has_kicktimeoutsec(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 StartKickPetitionMessage::kicktimeoutsec() const { + // @@protoc_insertion_point(field_get:StartKickPetitionMessage.kickTimeoutSec) + return _internal_kicktimeoutsec(); +} +inline void StartKickPetitionMessage::_internal_set_kicktimeoutsec(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000010u; kicktimeoutsec_ = value; } +inline void StartKickPetitionMessage::set_kicktimeoutsec(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_kicktimeoutsec(value); + // @@protoc_insertion_point(field_set:StartKickPetitionMessage.kickTimeoutSec) +} // required uint32 numVotesNeededToKick = 6; +inline bool StartKickPetitionMessage::_internal_has_numvotesneededtokick() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} inline bool StartKickPetitionMessage::has_numvotesneededtokick() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void StartKickPetitionMessage::set_has_numvotesneededtokick() { - _has_bits_[0] |= 0x00000020u; -} -inline void StartKickPetitionMessage::clear_has_numvotesneededtokick() { - _has_bits_[0] &= ~0x00000020u; + return _internal_has_numvotesneededtokick(); } inline void StartKickPetitionMessage::clear_numvotesneededtokick() { numvotesneededtokick_ = 0u; - clear_has_numvotesneededtokick(); + _has_bits_[0] &= ~0x00000020u; } -inline ::google::protobuf::uint32 StartKickPetitionMessage::numvotesneededtokick() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 StartKickPetitionMessage::_internal_numvotesneededtokick() const { return numvotesneededtokick_; } -inline void StartKickPetitionMessage::set_numvotesneededtokick(::google::protobuf::uint32 value) { - set_has_numvotesneededtokick(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 StartKickPetitionMessage::numvotesneededtokick() const { + // @@protoc_insertion_point(field_get:StartKickPetitionMessage.numVotesNeededToKick) + return _internal_numvotesneededtokick(); +} +inline void StartKickPetitionMessage::_internal_set_numvotesneededtokick(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000020u; numvotesneededtokick_ = value; } +inline void StartKickPetitionMessage::set_numvotesneededtokick(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_numvotesneededtokick(value); + // @@protoc_insertion_point(field_set:StartKickPetitionMessage.numVotesNeededToKick) +} // ------------------------------------------------------------------- // VoteKickRequestMessage // required uint32 gameId = 1; +inline bool VoteKickRequestMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool VoteKickRequestMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void VoteKickRequestMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void VoteKickRequestMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void VoteKickRequestMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 VoteKickRequestMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 VoteKickRequestMessage::_internal_gameid() const { return gameid_; } -inline void VoteKickRequestMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 VoteKickRequestMessage::gameid() const { + // @@protoc_insertion_point(field_get:VoteKickRequestMessage.gameId) + return _internal_gameid(); +} +inline void VoteKickRequestMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void VoteKickRequestMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:VoteKickRequestMessage.gameId) +} // required uint32 petitionId = 2; +inline bool VoteKickRequestMessage::_internal_has_petitionid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool VoteKickRequestMessage::has_petitionid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void VoteKickRequestMessage::set_has_petitionid() { - _has_bits_[0] |= 0x00000002u; -} -inline void VoteKickRequestMessage::clear_has_petitionid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_petitionid(); } inline void VoteKickRequestMessage::clear_petitionid() { petitionid_ = 0u; - clear_has_petitionid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 VoteKickRequestMessage::petitionid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 VoteKickRequestMessage::_internal_petitionid() const { return petitionid_; } -inline void VoteKickRequestMessage::set_petitionid(::google::protobuf::uint32 value) { - set_has_petitionid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 VoteKickRequestMessage::petitionid() const { + // @@protoc_insertion_point(field_get:VoteKickRequestMessage.petitionId) + return _internal_petitionid(); +} +inline void VoteKickRequestMessage::_internal_set_petitionid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; petitionid_ = value; } +inline void VoteKickRequestMessage::set_petitionid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_petitionid(value); + // @@protoc_insertion_point(field_set:VoteKickRequestMessage.petitionId) +} // required bool voteKick = 3; +inline bool VoteKickRequestMessage::_internal_has_votekick() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool VoteKickRequestMessage::has_votekick() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void VoteKickRequestMessage::set_has_votekick() { - _has_bits_[0] |= 0x00000004u; -} -inline void VoteKickRequestMessage::clear_has_votekick() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_votekick(); } inline void VoteKickRequestMessage::clear_votekick() { votekick_ = false; - clear_has_votekick(); + _has_bits_[0] &= ~0x00000004u; } -inline bool VoteKickRequestMessage::votekick() const { +inline bool VoteKickRequestMessage::_internal_votekick() const { return votekick_; } -inline void VoteKickRequestMessage::set_votekick(bool value) { - set_has_votekick(); +inline bool VoteKickRequestMessage::votekick() const { + // @@protoc_insertion_point(field_get:VoteKickRequestMessage.voteKick) + return _internal_votekick(); +} +inline void VoteKickRequestMessage::_internal_set_votekick(bool value) { + _has_bits_[0] |= 0x00000004u; votekick_ = value; } +inline void VoteKickRequestMessage::set_votekick(bool value) { + _internal_set_votekick(value); + // @@protoc_insertion_point(field_set:VoteKickRequestMessage.voteKick) +} // ------------------------------------------------------------------- // VoteKickReplyMessage // required uint32 gameId = 1; +inline bool VoteKickReplyMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool VoteKickReplyMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void VoteKickReplyMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void VoteKickReplyMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void VoteKickReplyMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 VoteKickReplyMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 VoteKickReplyMessage::_internal_gameid() const { return gameid_; } -inline void VoteKickReplyMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 VoteKickReplyMessage::gameid() const { + // @@protoc_insertion_point(field_get:VoteKickReplyMessage.gameId) + return _internal_gameid(); +} +inline void VoteKickReplyMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void VoteKickReplyMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:VoteKickReplyMessage.gameId) +} // required uint32 petitionId = 2; +inline bool VoteKickReplyMessage::_internal_has_petitionid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool VoteKickReplyMessage::has_petitionid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void VoteKickReplyMessage::set_has_petitionid() { - _has_bits_[0] |= 0x00000002u; -} -inline void VoteKickReplyMessage::clear_has_petitionid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_petitionid(); } inline void VoteKickReplyMessage::clear_petitionid() { petitionid_ = 0u; - clear_has_petitionid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 VoteKickReplyMessage::petitionid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 VoteKickReplyMessage::_internal_petitionid() const { return petitionid_; } -inline void VoteKickReplyMessage::set_petitionid(::google::protobuf::uint32 value) { - set_has_petitionid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 VoteKickReplyMessage::petitionid() const { + // @@protoc_insertion_point(field_get:VoteKickReplyMessage.petitionId) + return _internal_petitionid(); +} +inline void VoteKickReplyMessage::_internal_set_petitionid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; petitionid_ = value; } +inline void VoteKickReplyMessage::set_petitionid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_petitionid(value); + // @@protoc_insertion_point(field_set:VoteKickReplyMessage.petitionId) +} // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; +inline bool VoteKickReplyMessage::_internal_has_votekickreplytype() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool VoteKickReplyMessage::has_votekickreplytype() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void VoteKickReplyMessage::set_has_votekickreplytype() { - _has_bits_[0] |= 0x00000004u; -} -inline void VoteKickReplyMessage::clear_has_votekickreplytype() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_votekickreplytype(); } inline void VoteKickReplyMessage::clear_votekickreplytype() { votekickreplytype_ = 0; - clear_has_votekickreplytype(); + _has_bits_[0] &= ~0x00000004u; } -inline ::VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::votekickreplytype() const { +inline ::VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::_internal_votekickreplytype() const { return static_cast< ::VoteKickReplyMessage_VoteKickReplyType >(votekickreplytype_); } -inline void VoteKickReplyMessage::set_votekickreplytype(::VoteKickReplyMessage_VoteKickReplyType value) { +inline ::VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::votekickreplytype() const { + // @@protoc_insertion_point(field_get:VoteKickReplyMessage.voteKickReplyType) + return _internal_votekickreplytype(); +} +inline void VoteKickReplyMessage::_internal_set_votekickreplytype(::VoteKickReplyMessage_VoteKickReplyType value) { assert(::VoteKickReplyMessage_VoteKickReplyType_IsValid(value)); - set_has_votekickreplytype(); + _has_bits_[0] |= 0x00000004u; votekickreplytype_ = value; } +inline void VoteKickReplyMessage::set_votekickreplytype(::VoteKickReplyMessage_VoteKickReplyType value) { + _internal_set_votekickreplytype(value); + // @@protoc_insertion_point(field_set:VoteKickReplyMessage.voteKickReplyType) +} // ------------------------------------------------------------------- // KickPetitionUpdateMessage // required uint32 gameId = 1; +inline bool KickPetitionUpdateMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool KickPetitionUpdateMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void KickPetitionUpdateMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void KickPetitionUpdateMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void KickPetitionUpdateMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 KickPetitionUpdateMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 KickPetitionUpdateMessage::_internal_gameid() const { return gameid_; } -inline void KickPetitionUpdateMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 KickPetitionUpdateMessage::gameid() const { + // @@protoc_insertion_point(field_get:KickPetitionUpdateMessage.gameId) + return _internal_gameid(); +} +inline void KickPetitionUpdateMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void KickPetitionUpdateMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:KickPetitionUpdateMessage.gameId) +} // required uint32 petitionId = 2; +inline bool KickPetitionUpdateMessage::_internal_has_petitionid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool KickPetitionUpdateMessage::has_petitionid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void KickPetitionUpdateMessage::set_has_petitionid() { - _has_bits_[0] |= 0x00000002u; -} -inline void KickPetitionUpdateMessage::clear_has_petitionid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_petitionid(); } inline void KickPetitionUpdateMessage::clear_petitionid() { petitionid_ = 0u; - clear_has_petitionid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 KickPetitionUpdateMessage::petitionid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 KickPetitionUpdateMessage::_internal_petitionid() const { return petitionid_; } -inline void KickPetitionUpdateMessage::set_petitionid(::google::protobuf::uint32 value) { - set_has_petitionid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 KickPetitionUpdateMessage::petitionid() const { + // @@protoc_insertion_point(field_get:KickPetitionUpdateMessage.petitionId) + return _internal_petitionid(); +} +inline void KickPetitionUpdateMessage::_internal_set_petitionid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; petitionid_ = value; } +inline void KickPetitionUpdateMessage::set_petitionid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_petitionid(value); + // @@protoc_insertion_point(field_set:KickPetitionUpdateMessage.petitionId) +} // required uint32 numVotesAgainstKicking = 3; +inline bool KickPetitionUpdateMessage::_internal_has_numvotesagainstkicking() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool KickPetitionUpdateMessage::has_numvotesagainstkicking() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void KickPetitionUpdateMessage::set_has_numvotesagainstkicking() { - _has_bits_[0] |= 0x00000004u; -} -inline void KickPetitionUpdateMessage::clear_has_numvotesagainstkicking() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_numvotesagainstkicking(); } inline void KickPetitionUpdateMessage::clear_numvotesagainstkicking() { numvotesagainstkicking_ = 0u; - clear_has_numvotesagainstkicking(); + _has_bits_[0] &= ~0x00000004u; } -inline ::google::protobuf::uint32 KickPetitionUpdateMessage::numvotesagainstkicking() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 KickPetitionUpdateMessage::_internal_numvotesagainstkicking() const { return numvotesagainstkicking_; } -inline void KickPetitionUpdateMessage::set_numvotesagainstkicking(::google::protobuf::uint32 value) { - set_has_numvotesagainstkicking(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 KickPetitionUpdateMessage::numvotesagainstkicking() const { + // @@protoc_insertion_point(field_get:KickPetitionUpdateMessage.numVotesAgainstKicking) + return _internal_numvotesagainstkicking(); +} +inline void KickPetitionUpdateMessage::_internal_set_numvotesagainstkicking(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000004u; numvotesagainstkicking_ = value; } +inline void KickPetitionUpdateMessage::set_numvotesagainstkicking(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_numvotesagainstkicking(value); + // @@protoc_insertion_point(field_set:KickPetitionUpdateMessage.numVotesAgainstKicking) +} // required uint32 numVotesInFavourOfKicking = 4; +inline bool KickPetitionUpdateMessage::_internal_has_numvotesinfavourofkicking() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool KickPetitionUpdateMessage::has_numvotesinfavourofkicking() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void KickPetitionUpdateMessage::set_has_numvotesinfavourofkicking() { - _has_bits_[0] |= 0x00000008u; -} -inline void KickPetitionUpdateMessage::clear_has_numvotesinfavourofkicking() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_numvotesinfavourofkicking(); } inline void KickPetitionUpdateMessage::clear_numvotesinfavourofkicking() { numvotesinfavourofkicking_ = 0u; - clear_has_numvotesinfavourofkicking(); + _has_bits_[0] &= ~0x00000008u; } -inline ::google::protobuf::uint32 KickPetitionUpdateMessage::numvotesinfavourofkicking() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 KickPetitionUpdateMessage::_internal_numvotesinfavourofkicking() const { return numvotesinfavourofkicking_; } -inline void KickPetitionUpdateMessage::set_numvotesinfavourofkicking(::google::protobuf::uint32 value) { - set_has_numvotesinfavourofkicking(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 KickPetitionUpdateMessage::numvotesinfavourofkicking() const { + // @@protoc_insertion_point(field_get:KickPetitionUpdateMessage.numVotesInFavourOfKicking) + return _internal_numvotesinfavourofkicking(); +} +inline void KickPetitionUpdateMessage::_internal_set_numvotesinfavourofkicking(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000008u; numvotesinfavourofkicking_ = value; } +inline void KickPetitionUpdateMessage::set_numvotesinfavourofkicking(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_numvotesinfavourofkicking(value); + // @@protoc_insertion_point(field_set:KickPetitionUpdateMessage.numVotesInFavourOfKicking) +} // required uint32 numVotesNeededToKick = 5; +inline bool KickPetitionUpdateMessage::_internal_has_numvotesneededtokick() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} inline bool KickPetitionUpdateMessage::has_numvotesneededtokick() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void KickPetitionUpdateMessage::set_has_numvotesneededtokick() { - _has_bits_[0] |= 0x00000010u; -} -inline void KickPetitionUpdateMessage::clear_has_numvotesneededtokick() { - _has_bits_[0] &= ~0x00000010u; + return _internal_has_numvotesneededtokick(); } inline void KickPetitionUpdateMessage::clear_numvotesneededtokick() { numvotesneededtokick_ = 0u; - clear_has_numvotesneededtokick(); + _has_bits_[0] &= ~0x00000010u; } -inline ::google::protobuf::uint32 KickPetitionUpdateMessage::numvotesneededtokick() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 KickPetitionUpdateMessage::_internal_numvotesneededtokick() const { return numvotesneededtokick_; } -inline void KickPetitionUpdateMessage::set_numvotesneededtokick(::google::protobuf::uint32 value) { - set_has_numvotesneededtokick(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 KickPetitionUpdateMessage::numvotesneededtokick() const { + // @@protoc_insertion_point(field_get:KickPetitionUpdateMessage.numVotesNeededToKick) + return _internal_numvotesneededtokick(); +} +inline void KickPetitionUpdateMessage::_internal_set_numvotesneededtokick(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000010u; numvotesneededtokick_ = value; } +inline void KickPetitionUpdateMessage::set_numvotesneededtokick(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_numvotesneededtokick(value); + // @@protoc_insertion_point(field_set:KickPetitionUpdateMessage.numVotesNeededToKick) +} // ------------------------------------------------------------------- // EndKickPetitionMessage // required uint32 gameId = 1; +inline bool EndKickPetitionMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool EndKickPetitionMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void EndKickPetitionMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void EndKickPetitionMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void EndKickPetitionMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 EndKickPetitionMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndKickPetitionMessage::_internal_gameid() const { return gameid_; } -inline void EndKickPetitionMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndKickPetitionMessage::gameid() const { + // @@protoc_insertion_point(field_get:EndKickPetitionMessage.gameId) + return _internal_gameid(); +} +inline void EndKickPetitionMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; gameid_ = value; } +inline void EndKickPetitionMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:EndKickPetitionMessage.gameId) +} // required uint32 petitionId = 2; +inline bool EndKickPetitionMessage::_internal_has_petitionid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool EndKickPetitionMessage::has_petitionid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void EndKickPetitionMessage::set_has_petitionid() { - _has_bits_[0] |= 0x00000002u; -} -inline void EndKickPetitionMessage::clear_has_petitionid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_petitionid(); } inline void EndKickPetitionMessage::clear_petitionid() { petitionid_ = 0u; - clear_has_petitionid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 EndKickPetitionMessage::petitionid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndKickPetitionMessage::_internal_petitionid() const { return petitionid_; } -inline void EndKickPetitionMessage::set_petitionid(::google::protobuf::uint32 value) { - set_has_petitionid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndKickPetitionMessage::petitionid() const { + // @@protoc_insertion_point(field_get:EndKickPetitionMessage.petitionId) + return _internal_petitionid(); +} +inline void EndKickPetitionMessage::_internal_set_petitionid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; petitionid_ = value; } +inline void EndKickPetitionMessage::set_petitionid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_petitionid(value); + // @@protoc_insertion_point(field_set:EndKickPetitionMessage.petitionId) +} // required uint32 numVotesAgainstKicking = 3; +inline bool EndKickPetitionMessage::_internal_has_numvotesagainstkicking() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool EndKickPetitionMessage::has_numvotesagainstkicking() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void EndKickPetitionMessage::set_has_numvotesagainstkicking() { - _has_bits_[0] |= 0x00000004u; -} -inline void EndKickPetitionMessage::clear_has_numvotesagainstkicking() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_numvotesagainstkicking(); } inline void EndKickPetitionMessage::clear_numvotesagainstkicking() { numvotesagainstkicking_ = 0u; - clear_has_numvotesagainstkicking(); + _has_bits_[0] &= ~0x00000004u; } -inline ::google::protobuf::uint32 EndKickPetitionMessage::numvotesagainstkicking() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndKickPetitionMessage::_internal_numvotesagainstkicking() const { return numvotesagainstkicking_; } -inline void EndKickPetitionMessage::set_numvotesagainstkicking(::google::protobuf::uint32 value) { - set_has_numvotesagainstkicking(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndKickPetitionMessage::numvotesagainstkicking() const { + // @@protoc_insertion_point(field_get:EndKickPetitionMessage.numVotesAgainstKicking) + return _internal_numvotesagainstkicking(); +} +inline void EndKickPetitionMessage::_internal_set_numvotesagainstkicking(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000004u; numvotesagainstkicking_ = value; } +inline void EndKickPetitionMessage::set_numvotesagainstkicking(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_numvotesagainstkicking(value); + // @@protoc_insertion_point(field_set:EndKickPetitionMessage.numVotesAgainstKicking) +} // required uint32 numVotesInFavourOfKicking = 4; +inline bool EndKickPetitionMessage::_internal_has_numvotesinfavourofkicking() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool EndKickPetitionMessage::has_numvotesinfavourofkicking() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void EndKickPetitionMessage::set_has_numvotesinfavourofkicking() { - _has_bits_[0] |= 0x00000008u; -} -inline void EndKickPetitionMessage::clear_has_numvotesinfavourofkicking() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_numvotesinfavourofkicking(); } inline void EndKickPetitionMessage::clear_numvotesinfavourofkicking() { numvotesinfavourofkicking_ = 0u; - clear_has_numvotesinfavourofkicking(); + _has_bits_[0] &= ~0x00000008u; } -inline ::google::protobuf::uint32 EndKickPetitionMessage::numvotesinfavourofkicking() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndKickPetitionMessage::_internal_numvotesinfavourofkicking() const { return numvotesinfavourofkicking_; } -inline void EndKickPetitionMessage::set_numvotesinfavourofkicking(::google::protobuf::uint32 value) { - set_has_numvotesinfavourofkicking(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndKickPetitionMessage::numvotesinfavourofkicking() const { + // @@protoc_insertion_point(field_get:EndKickPetitionMessage.numVotesInFavourOfKicking) + return _internal_numvotesinfavourofkicking(); +} +inline void EndKickPetitionMessage::_internal_set_numvotesinfavourofkicking(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000008u; numvotesinfavourofkicking_ = value; } +inline void EndKickPetitionMessage::set_numvotesinfavourofkicking(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_numvotesinfavourofkicking(value); + // @@protoc_insertion_point(field_set:EndKickPetitionMessage.numVotesInFavourOfKicking) +} // required uint32 resultPlayerKicked = 5; +inline bool EndKickPetitionMessage::_internal_has_resultplayerkicked() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} inline bool EndKickPetitionMessage::has_resultplayerkicked() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void EndKickPetitionMessage::set_has_resultplayerkicked() { - _has_bits_[0] |= 0x00000010u; -} -inline void EndKickPetitionMessage::clear_has_resultplayerkicked() { - _has_bits_[0] &= ~0x00000010u; + return _internal_has_resultplayerkicked(); } inline void EndKickPetitionMessage::clear_resultplayerkicked() { resultplayerkicked_ = 0u; - clear_has_resultplayerkicked(); + _has_bits_[0] &= ~0x00000010u; } -inline ::google::protobuf::uint32 EndKickPetitionMessage::resultplayerkicked() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndKickPetitionMessage::_internal_resultplayerkicked() const { return resultplayerkicked_; } -inline void EndKickPetitionMessage::set_resultplayerkicked(::google::protobuf::uint32 value) { - set_has_resultplayerkicked(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 EndKickPetitionMessage::resultplayerkicked() const { + // @@protoc_insertion_point(field_get:EndKickPetitionMessage.resultPlayerKicked) + return _internal_resultplayerkicked(); +} +inline void EndKickPetitionMessage::_internal_set_resultplayerkicked(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000010u; resultplayerkicked_ = value; } +inline void EndKickPetitionMessage::set_resultplayerkicked(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_resultplayerkicked(value); + // @@protoc_insertion_point(field_set:EndKickPetitionMessage.resultPlayerKicked) +} // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; +inline bool EndKickPetitionMessage::_internal_has_petitionendreason() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} inline bool EndKickPetitionMessage::has_petitionendreason() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void EndKickPetitionMessage::set_has_petitionendreason() { - _has_bits_[0] |= 0x00000020u; -} -inline void EndKickPetitionMessage::clear_has_petitionendreason() { - _has_bits_[0] &= ~0x00000020u; + return _internal_has_petitionendreason(); } inline void EndKickPetitionMessage::clear_petitionendreason() { petitionendreason_ = 0; - clear_has_petitionendreason(); + _has_bits_[0] &= ~0x00000020u; } -inline ::EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionendreason() const { +inline ::EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::_internal_petitionendreason() const { return static_cast< ::EndKickPetitionMessage_PetitionEndReason >(petitionendreason_); } -inline void EndKickPetitionMessage::set_petitionendreason(::EndKickPetitionMessage_PetitionEndReason value) { +inline ::EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionendreason() const { + // @@protoc_insertion_point(field_get:EndKickPetitionMessage.petitionEndReason) + return _internal_petitionendreason(); +} +inline void EndKickPetitionMessage::_internal_set_petitionendreason(::EndKickPetitionMessage_PetitionEndReason value) { assert(::EndKickPetitionMessage_PetitionEndReason_IsValid(value)); - set_has_petitionendreason(); + _has_bits_[0] |= 0x00000020u; petitionendreason_ = value; } +inline void EndKickPetitionMessage::set_petitionendreason(::EndKickPetitionMessage_PetitionEndReason value) { + _internal_set_petitionendreason(value); + // @@protoc_insertion_point(field_set:EndKickPetitionMessage.petitionEndReason) +} // ------------------------------------------------------------------- // StatisticsMessage_StatisticsData // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; +inline bool StatisticsMessage_StatisticsData::_internal_has_statisticstype() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool StatisticsMessage_StatisticsData::has_statisticstype() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void StatisticsMessage_StatisticsData::set_has_statisticstype() { - _has_bits_[0] |= 0x00000001u; -} -inline void StatisticsMessage_StatisticsData::clear_has_statisticstype() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_statisticstype(); } inline void StatisticsMessage_StatisticsData::clear_statisticstype() { statisticstype_ = 1; - clear_has_statisticstype(); + _has_bits_[0] &= ~0x00000002u; } -inline ::StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData::statisticstype() const { +inline ::StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData::_internal_statisticstype() const { return static_cast< ::StatisticsMessage_StatisticsData_StatisticsType >(statisticstype_); } -inline void StatisticsMessage_StatisticsData::set_statisticstype(::StatisticsMessage_StatisticsData_StatisticsType value) { +inline ::StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData::statisticstype() const { + // @@protoc_insertion_point(field_get:StatisticsMessage.StatisticsData.statisticsType) + return _internal_statisticstype(); +} +inline void StatisticsMessage_StatisticsData::_internal_set_statisticstype(::StatisticsMessage_StatisticsData_StatisticsType value) { assert(::StatisticsMessage_StatisticsData_StatisticsType_IsValid(value)); - set_has_statisticstype(); + _has_bits_[0] |= 0x00000002u; statisticstype_ = value; } +inline void StatisticsMessage_StatisticsData::set_statisticstype(::StatisticsMessage_StatisticsData_StatisticsType value) { + _internal_set_statisticstype(value); + // @@protoc_insertion_point(field_set:StatisticsMessage.StatisticsData.statisticsType) +} // required uint32 statisticsValue = 2; +inline bool StatisticsMessage_StatisticsData::_internal_has_statisticsvalue() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool StatisticsMessage_StatisticsData::has_statisticsvalue() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void StatisticsMessage_StatisticsData::set_has_statisticsvalue() { - _has_bits_[0] |= 0x00000002u; -} -inline void StatisticsMessage_StatisticsData::clear_has_statisticsvalue() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_statisticsvalue(); } inline void StatisticsMessage_StatisticsData::clear_statisticsvalue() { statisticsvalue_ = 0u; - clear_has_statisticsvalue(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 StatisticsMessage_StatisticsData::statisticsvalue() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 StatisticsMessage_StatisticsData::_internal_statisticsvalue() const { return statisticsvalue_; } -inline void StatisticsMessage_StatisticsData::set_statisticsvalue(::google::protobuf::uint32 value) { - set_has_statisticsvalue(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 StatisticsMessage_StatisticsData::statisticsvalue() const { + // @@protoc_insertion_point(field_get:StatisticsMessage.StatisticsData.statisticsValue) + return _internal_statisticsvalue(); +} +inline void StatisticsMessage_StatisticsData::_internal_set_statisticsvalue(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; statisticsvalue_ = value; } +inline void StatisticsMessage_StatisticsData::set_statisticsvalue(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_statisticsvalue(value); + // @@protoc_insertion_point(field_set:StatisticsMessage.StatisticsData.statisticsValue) +} // ------------------------------------------------------------------- // StatisticsMessage // repeated .StatisticsMessage.StatisticsData statisticsData = 1; -inline int StatisticsMessage::statisticsdata_size() const { +inline int StatisticsMessage::_internal_statisticsdata_size() const { return statisticsdata_.size(); } +inline int StatisticsMessage::statisticsdata_size() const { + return _internal_statisticsdata_size(); +} inline void StatisticsMessage::clear_statisticsdata() { statisticsdata_.Clear(); } -inline const ::StatisticsMessage_StatisticsData& StatisticsMessage::statisticsdata(int index) const { - return statisticsdata_.Get(index); -} inline ::StatisticsMessage_StatisticsData* StatisticsMessage::mutable_statisticsdata(int index) { return statisticsdata_.Mutable(index); } -inline ::StatisticsMessage_StatisticsData* StatisticsMessage::add_statisticsdata() { +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::StatisticsMessage_StatisticsData >* +StatisticsMessage::mutable_statisticsdata() { + // @@protoc_insertion_point(field_mutable_list:StatisticsMessage.statisticsData) + return &statisticsdata_; +} +inline const ::StatisticsMessage_StatisticsData& StatisticsMessage::_internal_statisticsdata(int index) const { + return statisticsdata_.Get(index); +} +inline const ::StatisticsMessage_StatisticsData& StatisticsMessage::statisticsdata(int index) const { + // @@protoc_insertion_point(field_get:StatisticsMessage.statisticsData) + return _internal_statisticsdata(index); +} +inline ::StatisticsMessage_StatisticsData* StatisticsMessage::_internal_add_statisticsdata() { return statisticsdata_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::StatisticsMessage_StatisticsData >& +inline ::StatisticsMessage_StatisticsData* StatisticsMessage::add_statisticsdata() { + // @@protoc_insertion_point(field_add:StatisticsMessage.statisticsData) + return _internal_add_statisticsdata(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::StatisticsMessage_StatisticsData >& StatisticsMessage::statisticsdata() const { return statisticsdata_; } -inline ::google::protobuf::RepeatedPtrField< ::StatisticsMessage_StatisticsData >* -StatisticsMessage::mutable_statisticsdata() { - return &statisticsdata_; -} // ------------------------------------------------------------------- // ChatRequestMessage // optional uint32 targetGameId = 1; +inline bool ChatRequestMessage::_internal_has_targetgameid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool ChatRequestMessage::has_targetgameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ChatRequestMessage::set_has_targetgameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void ChatRequestMessage::clear_has_targetgameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_targetgameid(); } inline void ChatRequestMessage::clear_targetgameid() { targetgameid_ = 0u; - clear_has_targetgameid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 ChatRequestMessage::targetgameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 ChatRequestMessage::_internal_targetgameid() const { return targetgameid_; } -inline void ChatRequestMessage::set_targetgameid(::google::protobuf::uint32 value) { - set_has_targetgameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 ChatRequestMessage::targetgameid() const { + // @@protoc_insertion_point(field_get:ChatRequestMessage.targetGameId) + return _internal_targetgameid(); +} +inline void ChatRequestMessage::_internal_set_targetgameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; targetgameid_ = value; } +inline void ChatRequestMessage::set_targetgameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_targetgameid(value); + // @@protoc_insertion_point(field_set:ChatRequestMessage.targetGameId) +} // optional uint32 targetPlayerId = 2; +inline bool ChatRequestMessage::_internal_has_targetplayerid() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool ChatRequestMessage::has_targetplayerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ChatRequestMessage::set_has_targetplayerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void ChatRequestMessage::clear_has_targetplayerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_targetplayerid(); } inline void ChatRequestMessage::clear_targetplayerid() { targetplayerid_ = 0u; - clear_has_targetplayerid(); + _has_bits_[0] &= ~0x00000004u; } -inline ::google::protobuf::uint32 ChatRequestMessage::targetplayerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 ChatRequestMessage::_internal_targetplayerid() const { return targetplayerid_; } -inline void ChatRequestMessage::set_targetplayerid(::google::protobuf::uint32 value) { - set_has_targetplayerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 ChatRequestMessage::targetplayerid() const { + // @@protoc_insertion_point(field_get:ChatRequestMessage.targetPlayerId) + return _internal_targetplayerid(); +} +inline void ChatRequestMessage::_internal_set_targetplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000004u; targetplayerid_ = value; } +inline void ChatRequestMessage::set_targetplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_targetplayerid(value); + // @@protoc_insertion_point(field_set:ChatRequestMessage.targetPlayerId) +} // required string chatText = 3; +inline bool ChatRequestMessage::_internal_has_chattext() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool ChatRequestMessage::has_chattext() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void ChatRequestMessage::set_has_chattext() { - _has_bits_[0] |= 0x00000004u; -} -inline void ChatRequestMessage::clear_has_chattext() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_chattext(); } inline void ChatRequestMessage::clear_chattext() { - if (chattext_ != &::google::protobuf::internal::kEmptyString) { - chattext_->clear(); - } - clear_has_chattext(); + chattext_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& ChatRequestMessage::chattext() const { - return *chattext_; +inline const std::string& ChatRequestMessage::chattext() const { + // @@protoc_insertion_point(field_get:ChatRequestMessage.chatText) + return _internal_chattext(); } -inline void ChatRequestMessage::set_chattext(const ::std::string& value) { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::kEmptyString) { - chattext_ = new ::std::string; - } - chattext_->assign(value); +inline void ChatRequestMessage::set_chattext(const std::string& value) { + _internal_set_chattext(value); + // @@protoc_insertion_point(field_set:ChatRequestMessage.chatText) +} +inline std::string* ChatRequestMessage::mutable_chattext() { + // @@protoc_insertion_point(field_mutable:ChatRequestMessage.chatText) + return _internal_mutable_chattext(); +} +inline const std::string& ChatRequestMessage::_internal_chattext() const { + return chattext_.Get(); +} +inline void ChatRequestMessage::_internal_set_chattext(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + chattext_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void ChatRequestMessage::set_chattext(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + chattext_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:ChatRequestMessage.chatText) } inline void ChatRequestMessage::set_chattext(const char* value) { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::kEmptyString) { - chattext_ = new ::std::string; - } - chattext_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + chattext_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:ChatRequestMessage.chatText) } -inline void ChatRequestMessage::set_chattext(const char* value, size_t size) { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::kEmptyString) { - chattext_ = new ::std::string; - } - chattext_->assign(reinterpret_cast(value), size); +inline void ChatRequestMessage::set_chattext(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + chattext_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:ChatRequestMessage.chatText) } -inline ::std::string* ChatRequestMessage::mutable_chattext() { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::kEmptyString) { - chattext_ = new ::std::string; - } - return chattext_; +inline std::string* ChatRequestMessage::_internal_mutable_chattext() { + _has_bits_[0] |= 0x00000001u; + return chattext_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* ChatRequestMessage::release_chattext() { - clear_has_chattext(); - if (chattext_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* ChatRequestMessage::release_chattext() { + // @@protoc_insertion_point(field_release:ChatRequestMessage.chatText) + if (!_internal_has_chattext()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return chattext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ChatRequestMessage::set_allocated_chattext(std::string* chattext) { + if (chattext != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = chattext_; - chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + chattext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), chattext, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:ChatRequestMessage.chatText) } -inline void ChatRequestMessage::set_allocated_chattext(::std::string* chattext) { - if (chattext_ != &::google::protobuf::internal::kEmptyString) { - delete chattext_; - } - if (chattext) { - set_has_chattext(); - chattext_ = chattext; +inline std::string* ChatRequestMessage::unsafe_arena_release_chattext() { + // @@protoc_insertion_point(field_unsafe_arena_release:ChatRequestMessage.chatText) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return chattext_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void ChatRequestMessage::unsafe_arena_set_allocated_chattext( + std::string* chattext) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (chattext != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_chattext(); - chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + chattext_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + chattext, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ChatRequestMessage.chatText) } // ------------------------------------------------------------------- @@ -18365,140 +27860,181 @@ inline void ChatRequestMessage::set_allocated_chattext(::std::string* chattext) // ChatMessage // optional uint32 gameId = 1; +inline bool ChatMessage::_internal_has_gameid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool ChatMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ChatMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void ChatMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_gameid(); } inline void ChatMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 ChatMessage::gameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 ChatMessage::_internal_gameid() const { return gameid_; } -inline void ChatMessage::set_gameid(::google::protobuf::uint32 value) { - set_has_gameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 ChatMessage::gameid() const { + // @@protoc_insertion_point(field_get:ChatMessage.gameId) + return _internal_gameid(); +} +inline void ChatMessage::_internal_set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; gameid_ = value; } +inline void ChatMessage::set_gameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_gameid(value); + // @@protoc_insertion_point(field_set:ChatMessage.gameId) +} // optional uint32 playerId = 2; +inline bool ChatMessage::_internal_has_playerid() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} inline bool ChatMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ChatMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void ChatMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_playerid(); } inline void ChatMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000004u; } -inline ::google::protobuf::uint32 ChatMessage::playerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 ChatMessage::_internal_playerid() const { return playerid_; } -inline void ChatMessage::set_playerid(::google::protobuf::uint32 value) { - set_has_playerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 ChatMessage::playerid() const { + // @@protoc_insertion_point(field_get:ChatMessage.playerId) + return _internal_playerid(); +} +inline void ChatMessage::_internal_set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000004u; playerid_ = value; } +inline void ChatMessage::set_playerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:ChatMessage.playerId) +} // required .ChatMessage.ChatType chatType = 3; +inline bool ChatMessage::_internal_has_chattype() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} inline bool ChatMessage::has_chattype() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void ChatMessage::set_has_chattype() { - _has_bits_[0] |= 0x00000004u; -} -inline void ChatMessage::clear_has_chattype() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_chattype(); } inline void ChatMessage::clear_chattype() { chattype_ = 0; - clear_has_chattype(); + _has_bits_[0] &= ~0x00000008u; } -inline ::ChatMessage_ChatType ChatMessage::chattype() const { +inline ::ChatMessage_ChatType ChatMessage::_internal_chattype() const { return static_cast< ::ChatMessage_ChatType >(chattype_); } -inline void ChatMessage::set_chattype(::ChatMessage_ChatType value) { +inline ::ChatMessage_ChatType ChatMessage::chattype() const { + // @@protoc_insertion_point(field_get:ChatMessage.chatType) + return _internal_chattype(); +} +inline void ChatMessage::_internal_set_chattype(::ChatMessage_ChatType value) { assert(::ChatMessage_ChatType_IsValid(value)); - set_has_chattype(); + _has_bits_[0] |= 0x00000008u; chattype_ = value; } +inline void ChatMessage::set_chattype(::ChatMessage_ChatType value) { + _internal_set_chattype(value); + // @@protoc_insertion_point(field_set:ChatMessage.chatType) +} // required string chatText = 4; +inline bool ChatMessage::_internal_has_chattext() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool ChatMessage::has_chattext() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void ChatMessage::set_has_chattext() { - _has_bits_[0] |= 0x00000008u; -} -inline void ChatMessage::clear_has_chattext() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_chattext(); } inline void ChatMessage::clear_chattext() { - if (chattext_ != &::google::protobuf::internal::kEmptyString) { - chattext_->clear(); - } - clear_has_chattext(); + chattext_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& ChatMessage::chattext() const { - return *chattext_; +inline const std::string& ChatMessage::chattext() const { + // @@protoc_insertion_point(field_get:ChatMessage.chatText) + return _internal_chattext(); } -inline void ChatMessage::set_chattext(const ::std::string& value) { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::kEmptyString) { - chattext_ = new ::std::string; - } - chattext_->assign(value); +inline void ChatMessage::set_chattext(const std::string& value) { + _internal_set_chattext(value); + // @@protoc_insertion_point(field_set:ChatMessage.chatText) +} +inline std::string* ChatMessage::mutable_chattext() { + // @@protoc_insertion_point(field_mutable:ChatMessage.chatText) + return _internal_mutable_chattext(); +} +inline const std::string& ChatMessage::_internal_chattext() const { + return chattext_.Get(); +} +inline void ChatMessage::_internal_set_chattext(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + chattext_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void ChatMessage::set_chattext(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + chattext_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:ChatMessage.chatText) } inline void ChatMessage::set_chattext(const char* value) { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::kEmptyString) { - chattext_ = new ::std::string; - } - chattext_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + chattext_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:ChatMessage.chatText) } -inline void ChatMessage::set_chattext(const char* value, size_t size) { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::kEmptyString) { - chattext_ = new ::std::string; - } - chattext_->assign(reinterpret_cast(value), size); +inline void ChatMessage::set_chattext(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + chattext_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:ChatMessage.chatText) } -inline ::std::string* ChatMessage::mutable_chattext() { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::kEmptyString) { - chattext_ = new ::std::string; - } - return chattext_; +inline std::string* ChatMessage::_internal_mutable_chattext() { + _has_bits_[0] |= 0x00000001u; + return chattext_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* ChatMessage::release_chattext() { - clear_has_chattext(); - if (chattext_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* ChatMessage::release_chattext() { + // @@protoc_insertion_point(field_release:ChatMessage.chatText) + if (!_internal_has_chattext()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return chattext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ChatMessage::set_allocated_chattext(std::string* chattext) { + if (chattext != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = chattext_; - chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + chattext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), chattext, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:ChatMessage.chatText) } -inline void ChatMessage::set_allocated_chattext(::std::string* chattext) { - if (chattext_ != &::google::protobuf::internal::kEmptyString) { - delete chattext_; - } - if (chattext) { - set_has_chattext(); - chattext_ = chattext; +inline std::string* ChatMessage::unsafe_arena_release_chattext() { + // @@protoc_insertion_point(field_unsafe_arena_release:ChatMessage.chatText) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return chattext_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void ChatMessage::unsafe_arena_set_allocated_chattext( + std::string* chattext) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (chattext != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_chattext(); - chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + chattext_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + chattext, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ChatMessage.chatText) } // ------------------------------------------------------------------- @@ -18506,73 +28042,96 @@ inline void ChatMessage::set_allocated_chattext(::std::string* chattext) { // ChatRejectMessage // required string chatText = 1; +inline bool ChatRejectMessage::_internal_has_chattext() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool ChatRejectMessage::has_chattext() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ChatRejectMessage::set_has_chattext() { - _has_bits_[0] |= 0x00000001u; -} -inline void ChatRejectMessage::clear_has_chattext() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_chattext(); } inline void ChatRejectMessage::clear_chattext() { - if (chattext_ != &::google::protobuf::internal::kEmptyString) { - chattext_->clear(); - } - clear_has_chattext(); + chattext_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& ChatRejectMessage::chattext() const { - return *chattext_; +inline const std::string& ChatRejectMessage::chattext() const { + // @@protoc_insertion_point(field_get:ChatRejectMessage.chatText) + return _internal_chattext(); } -inline void ChatRejectMessage::set_chattext(const ::std::string& value) { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::kEmptyString) { - chattext_ = new ::std::string; - } - chattext_->assign(value); +inline void ChatRejectMessage::set_chattext(const std::string& value) { + _internal_set_chattext(value); + // @@protoc_insertion_point(field_set:ChatRejectMessage.chatText) +} +inline std::string* ChatRejectMessage::mutable_chattext() { + // @@protoc_insertion_point(field_mutable:ChatRejectMessage.chatText) + return _internal_mutable_chattext(); +} +inline const std::string& ChatRejectMessage::_internal_chattext() const { + return chattext_.Get(); +} +inline void ChatRejectMessage::_internal_set_chattext(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + chattext_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void ChatRejectMessage::set_chattext(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + chattext_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:ChatRejectMessage.chatText) } inline void ChatRejectMessage::set_chattext(const char* value) { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::kEmptyString) { - chattext_ = new ::std::string; - } - chattext_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + chattext_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:ChatRejectMessage.chatText) } -inline void ChatRejectMessage::set_chattext(const char* value, size_t size) { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::kEmptyString) { - chattext_ = new ::std::string; - } - chattext_->assign(reinterpret_cast(value), size); +inline void ChatRejectMessage::set_chattext(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + chattext_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:ChatRejectMessage.chatText) } -inline ::std::string* ChatRejectMessage::mutable_chattext() { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::kEmptyString) { - chattext_ = new ::std::string; - } - return chattext_; +inline std::string* ChatRejectMessage::_internal_mutable_chattext() { + _has_bits_[0] |= 0x00000001u; + return chattext_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* ChatRejectMessage::release_chattext() { - clear_has_chattext(); - if (chattext_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* ChatRejectMessage::release_chattext() { + // @@protoc_insertion_point(field_release:ChatRejectMessage.chatText) + if (!_internal_has_chattext()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return chattext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ChatRejectMessage::set_allocated_chattext(std::string* chattext) { + if (chattext != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = chattext_; - chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + chattext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), chattext, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:ChatRejectMessage.chatText) } -inline void ChatRejectMessage::set_allocated_chattext(::std::string* chattext) { - if (chattext_ != &::google::protobuf::internal::kEmptyString) { - delete chattext_; - } - if (chattext) { - set_has_chattext(); - chattext_ = chattext; +inline std::string* ChatRejectMessage::unsafe_arena_release_chattext() { + // @@protoc_insertion_point(field_unsafe_arena_release:ChatRejectMessage.chatText) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return chattext_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void ChatRejectMessage::unsafe_arena_set_allocated_chattext( + std::string* chattext) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (chattext != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_chattext(); - chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + chattext_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + chattext, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ChatRejectMessage.chatText) } // ------------------------------------------------------------------- @@ -18580,73 +28139,96 @@ inline void ChatRejectMessage::set_allocated_chattext(::std::string* chattext) { // DialogMessage // required string notificationText = 1; +inline bool DialogMessage::_internal_has_notificationtext() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool DialogMessage::has_notificationtext() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void DialogMessage::set_has_notificationtext() { - _has_bits_[0] |= 0x00000001u; -} -inline void DialogMessage::clear_has_notificationtext() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_notificationtext(); } inline void DialogMessage::clear_notificationtext() { - if (notificationtext_ != &::google::protobuf::internal::kEmptyString) { - notificationtext_->clear(); - } - clear_has_notificationtext(); + notificationtext_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& DialogMessage::notificationtext() const { - return *notificationtext_; +inline const std::string& DialogMessage::notificationtext() const { + // @@protoc_insertion_point(field_get:DialogMessage.notificationText) + return _internal_notificationtext(); } -inline void DialogMessage::set_notificationtext(const ::std::string& value) { - set_has_notificationtext(); - if (notificationtext_ == &::google::protobuf::internal::kEmptyString) { - notificationtext_ = new ::std::string; - } - notificationtext_->assign(value); +inline void DialogMessage::set_notificationtext(const std::string& value) { + _internal_set_notificationtext(value); + // @@protoc_insertion_point(field_set:DialogMessage.notificationText) +} +inline std::string* DialogMessage::mutable_notificationtext() { + // @@protoc_insertion_point(field_mutable:DialogMessage.notificationText) + return _internal_mutable_notificationtext(); +} +inline const std::string& DialogMessage::_internal_notificationtext() const { + return notificationtext_.Get(); +} +inline void DialogMessage::_internal_set_notificationtext(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + notificationtext_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void DialogMessage::set_notificationtext(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + notificationtext_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:DialogMessage.notificationText) } inline void DialogMessage::set_notificationtext(const char* value) { - set_has_notificationtext(); - if (notificationtext_ == &::google::protobuf::internal::kEmptyString) { - notificationtext_ = new ::std::string; - } - notificationtext_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + notificationtext_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:DialogMessage.notificationText) } -inline void DialogMessage::set_notificationtext(const char* value, size_t size) { - set_has_notificationtext(); - if (notificationtext_ == &::google::protobuf::internal::kEmptyString) { - notificationtext_ = new ::std::string; - } - notificationtext_->assign(reinterpret_cast(value), size); +inline void DialogMessage::set_notificationtext(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + notificationtext_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:DialogMessage.notificationText) } -inline ::std::string* DialogMessage::mutable_notificationtext() { - set_has_notificationtext(); - if (notificationtext_ == &::google::protobuf::internal::kEmptyString) { - notificationtext_ = new ::std::string; - } - return notificationtext_; +inline std::string* DialogMessage::_internal_mutable_notificationtext() { + _has_bits_[0] |= 0x00000001u; + return notificationtext_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* DialogMessage::release_notificationtext() { - clear_has_notificationtext(); - if (notificationtext_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* DialogMessage::release_notificationtext() { + // @@protoc_insertion_point(field_release:DialogMessage.notificationText) + if (!_internal_has_notificationtext()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return notificationtext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DialogMessage::set_allocated_notificationtext(std::string* notificationtext) { + if (notificationtext != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = notificationtext_; - notificationtext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + notificationtext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), notificationtext, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:DialogMessage.notificationText) } -inline void DialogMessage::set_allocated_notificationtext(::std::string* notificationtext) { - if (notificationtext_ != &::google::protobuf::internal::kEmptyString) { - delete notificationtext_; - } - if (notificationtext) { - set_has_notificationtext(); - notificationtext_ = notificationtext; +inline std::string* DialogMessage::unsafe_arena_release_notificationtext() { + // @@protoc_insertion_point(field_unsafe_arena_release:DialogMessage.notificationText) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return notificationtext_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void DialogMessage::unsafe_arena_set_allocated_notificationtext( + std::string* notificationtext) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (notificationtext != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_notificationtext(); - notificationtext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + notificationtext_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + notificationtext, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:DialogMessage.notificationText) } // ------------------------------------------------------------------- @@ -18654,49 +28236,61 @@ inline void DialogMessage::set_allocated_notificationtext(::std::string* notific // TimeoutWarningMessage // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; +inline bool TimeoutWarningMessage::_internal_has_timeoutreason() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool TimeoutWarningMessage::has_timeoutreason() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void TimeoutWarningMessage::set_has_timeoutreason() { - _has_bits_[0] |= 0x00000001u; -} -inline void TimeoutWarningMessage::clear_has_timeoutreason() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_timeoutreason(); } inline void TimeoutWarningMessage::clear_timeoutreason() { timeoutreason_ = 0; - clear_has_timeoutreason(); + _has_bits_[0] &= ~0x00000001u; } -inline ::TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::timeoutreason() const { +inline ::TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::_internal_timeoutreason() const { return static_cast< ::TimeoutWarningMessage_TimeoutReason >(timeoutreason_); } -inline void TimeoutWarningMessage::set_timeoutreason(::TimeoutWarningMessage_TimeoutReason value) { +inline ::TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::timeoutreason() const { + // @@protoc_insertion_point(field_get:TimeoutWarningMessage.timeoutReason) + return _internal_timeoutreason(); +} +inline void TimeoutWarningMessage::_internal_set_timeoutreason(::TimeoutWarningMessage_TimeoutReason value) { assert(::TimeoutWarningMessage_TimeoutReason_IsValid(value)); - set_has_timeoutreason(); + _has_bits_[0] |= 0x00000001u; timeoutreason_ = value; } +inline void TimeoutWarningMessage::set_timeoutreason(::TimeoutWarningMessage_TimeoutReason value) { + _internal_set_timeoutreason(value); + // @@protoc_insertion_point(field_set:TimeoutWarningMessage.timeoutReason) +} // required uint32 remainingSeconds = 2; +inline bool TimeoutWarningMessage::_internal_has_remainingseconds() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool TimeoutWarningMessage::has_remainingseconds() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void TimeoutWarningMessage::set_has_remainingseconds() { - _has_bits_[0] |= 0x00000002u; -} -inline void TimeoutWarningMessage::clear_has_remainingseconds() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_remainingseconds(); } inline void TimeoutWarningMessage::clear_remainingseconds() { remainingseconds_ = 0u; - clear_has_remainingseconds(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 TimeoutWarningMessage::remainingseconds() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 TimeoutWarningMessage::_internal_remainingseconds() const { return remainingseconds_; } -inline void TimeoutWarningMessage::set_remainingseconds(::google::protobuf::uint32 value) { - set_has_remainingseconds(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 TimeoutWarningMessage::remainingseconds() const { + // @@protoc_insertion_point(field_get:TimeoutWarningMessage.remainingSeconds) + return _internal_remainingseconds(); +} +inline void TimeoutWarningMessage::_internal_set_remainingseconds(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; remainingseconds_ = value; } +inline void TimeoutWarningMessage::set_remainingseconds(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_remainingseconds(value); + // @@protoc_insertion_point(field_set:TimeoutWarningMessage.remainingSeconds) +} // ------------------------------------------------------------------- @@ -18707,95 +28301,124 @@ inline void TimeoutWarningMessage::set_remainingseconds(::google::protobuf::uint // ReportAvatarMessage // required uint32 reportedPlayerId = 1; +inline bool ReportAvatarMessage::_internal_has_reportedplayerid() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool ReportAvatarMessage::has_reportedplayerid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ReportAvatarMessage::set_has_reportedplayerid() { - _has_bits_[0] |= 0x00000001u; -} -inline void ReportAvatarMessage::clear_has_reportedplayerid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_reportedplayerid(); } inline void ReportAvatarMessage::clear_reportedplayerid() { reportedplayerid_ = 0u; - clear_has_reportedplayerid(); + _has_bits_[0] &= ~0x00000002u; } -inline ::google::protobuf::uint32 ReportAvatarMessage::reportedplayerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 ReportAvatarMessage::_internal_reportedplayerid() const { return reportedplayerid_; } -inline void ReportAvatarMessage::set_reportedplayerid(::google::protobuf::uint32 value) { - set_has_reportedplayerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 ReportAvatarMessage::reportedplayerid() const { + // @@protoc_insertion_point(field_get:ReportAvatarMessage.reportedPlayerId) + return _internal_reportedplayerid(); +} +inline void ReportAvatarMessage::_internal_set_reportedplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; reportedplayerid_ = value; } +inline void ReportAvatarMessage::set_reportedplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_reportedplayerid(value); + // @@protoc_insertion_point(field_set:ReportAvatarMessage.reportedPlayerId) +} // required bytes reportedAvatarHash = 2; +inline bool ReportAvatarMessage::_internal_has_reportedavatarhash() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool ReportAvatarMessage::has_reportedavatarhash() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ReportAvatarMessage::set_has_reportedavatarhash() { - _has_bits_[0] |= 0x00000002u; -} -inline void ReportAvatarMessage::clear_has_reportedavatarhash() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_reportedavatarhash(); } inline void ReportAvatarMessage::clear_reportedavatarhash() { - if (reportedavatarhash_ != &::google::protobuf::internal::kEmptyString) { - reportedavatarhash_->clear(); - } - clear_has_reportedavatarhash(); + reportedavatarhash_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _has_bits_[0] &= ~0x00000001u; } -inline const ::std::string& ReportAvatarMessage::reportedavatarhash() const { - return *reportedavatarhash_; +inline const std::string& ReportAvatarMessage::reportedavatarhash() const { + // @@protoc_insertion_point(field_get:ReportAvatarMessage.reportedAvatarHash) + return _internal_reportedavatarhash(); } -inline void ReportAvatarMessage::set_reportedavatarhash(const ::std::string& value) { - set_has_reportedavatarhash(); - if (reportedavatarhash_ == &::google::protobuf::internal::kEmptyString) { - reportedavatarhash_ = new ::std::string; - } - reportedavatarhash_->assign(value); +inline void ReportAvatarMessage::set_reportedavatarhash(const std::string& value) { + _internal_set_reportedavatarhash(value); + // @@protoc_insertion_point(field_set:ReportAvatarMessage.reportedAvatarHash) +} +inline std::string* ReportAvatarMessage::mutable_reportedavatarhash() { + // @@protoc_insertion_point(field_mutable:ReportAvatarMessage.reportedAvatarHash) + return _internal_mutable_reportedavatarhash(); +} +inline const std::string& ReportAvatarMessage::_internal_reportedavatarhash() const { + return reportedavatarhash_.Get(); +} +inline void ReportAvatarMessage::_internal_set_reportedavatarhash(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + reportedavatarhash_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void ReportAvatarMessage::set_reportedavatarhash(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + reportedavatarhash_.SetLite( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:ReportAvatarMessage.reportedAvatarHash) } inline void ReportAvatarMessage::set_reportedavatarhash(const char* value) { - set_has_reportedavatarhash(); - if (reportedavatarhash_ == &::google::protobuf::internal::kEmptyString) { - reportedavatarhash_ = new ::std::string; - } - reportedavatarhash_->assign(value); + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + reportedavatarhash_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:ReportAvatarMessage.reportedAvatarHash) } -inline void ReportAvatarMessage::set_reportedavatarhash(const void* value, size_t size) { - set_has_reportedavatarhash(); - if (reportedavatarhash_ == &::google::protobuf::internal::kEmptyString) { - reportedavatarhash_ = new ::std::string; - } - reportedavatarhash_->assign(reinterpret_cast(value), size); +inline void ReportAvatarMessage::set_reportedavatarhash(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + reportedavatarhash_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:ReportAvatarMessage.reportedAvatarHash) } -inline ::std::string* ReportAvatarMessage::mutable_reportedavatarhash() { - set_has_reportedavatarhash(); - if (reportedavatarhash_ == &::google::protobuf::internal::kEmptyString) { - reportedavatarhash_ = new ::std::string; - } - return reportedavatarhash_; +inline std::string* ReportAvatarMessage::_internal_mutable_reportedavatarhash() { + _has_bits_[0] |= 0x00000001u; + return reportedavatarhash_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline ::std::string* ReportAvatarMessage::release_reportedavatarhash() { - clear_has_reportedavatarhash(); - if (reportedavatarhash_ == &::google::protobuf::internal::kEmptyString) { - return NULL; +inline std::string* ReportAvatarMessage::release_reportedavatarhash() { + // @@protoc_insertion_point(field_release:ReportAvatarMessage.reportedAvatarHash) + if (!_internal_has_reportedavatarhash()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return reportedavatarhash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ReportAvatarMessage::set_allocated_reportedavatarhash(std::string* reportedavatarhash) { + if (reportedavatarhash != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - ::std::string* temp = reportedavatarhash_; - reportedavatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; + _has_bits_[0] &= ~0x00000001u; } + reportedavatarhash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), reportedavatarhash, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:ReportAvatarMessage.reportedAvatarHash) } -inline void ReportAvatarMessage::set_allocated_reportedavatarhash(::std::string* reportedavatarhash) { - if (reportedavatarhash_ != &::google::protobuf::internal::kEmptyString) { - delete reportedavatarhash_; - } - if (reportedavatarhash) { - set_has_reportedavatarhash(); - reportedavatarhash_ = reportedavatarhash; +inline std::string* ReportAvatarMessage::unsafe_arena_release_reportedavatarhash() { + // @@protoc_insertion_point(field_unsafe_arena_release:ReportAvatarMessage.reportedAvatarHash) + GOOGLE_DCHECK(GetArena() != nullptr); + _has_bits_[0] &= ~0x00000001u; + return reportedavatarhash_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void ReportAvatarMessage::unsafe_arena_set_allocated_reportedavatarhash( + std::string* reportedavatarhash) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (reportedavatarhash != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_reportedavatarhash(); - reportedavatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + _has_bits_[0] &= ~0x00000001u; } + reportedavatarhash_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + reportedavatarhash, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ReportAvatarMessage.reportedAvatarHash) } // ------------------------------------------------------------------- @@ -18803,3776 +28426,7192 @@ inline void ReportAvatarMessage::set_allocated_reportedavatarhash(::std::string* // ReportAvatarAckMessage // required uint32 reportedPlayerId = 1; +inline bool ReportAvatarAckMessage::_internal_has_reportedplayerid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool ReportAvatarAckMessage::has_reportedplayerid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ReportAvatarAckMessage::set_has_reportedplayerid() { - _has_bits_[0] |= 0x00000001u; -} -inline void ReportAvatarAckMessage::clear_has_reportedplayerid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_reportedplayerid(); } inline void ReportAvatarAckMessage::clear_reportedplayerid() { reportedplayerid_ = 0u; - clear_has_reportedplayerid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 ReportAvatarAckMessage::reportedplayerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 ReportAvatarAckMessage::_internal_reportedplayerid() const { return reportedplayerid_; } -inline void ReportAvatarAckMessage::set_reportedplayerid(::google::protobuf::uint32 value) { - set_has_reportedplayerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 ReportAvatarAckMessage::reportedplayerid() const { + // @@protoc_insertion_point(field_get:ReportAvatarAckMessage.reportedPlayerId) + return _internal_reportedplayerid(); +} +inline void ReportAvatarAckMessage::_internal_set_reportedplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; reportedplayerid_ = value; } +inline void ReportAvatarAckMessage::set_reportedplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_reportedplayerid(value); + // @@protoc_insertion_point(field_set:ReportAvatarAckMessage.reportedPlayerId) +} // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; +inline bool ReportAvatarAckMessage::_internal_has_reportavatarresult() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool ReportAvatarAckMessage::has_reportavatarresult() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ReportAvatarAckMessage::set_has_reportavatarresult() { - _has_bits_[0] |= 0x00000002u; -} -inline void ReportAvatarAckMessage::clear_has_reportavatarresult() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_reportavatarresult(); } inline void ReportAvatarAckMessage::clear_reportavatarresult() { reportavatarresult_ = 0; - clear_has_reportavatarresult(); + _has_bits_[0] &= ~0x00000002u; } -inline ::ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::reportavatarresult() const { +inline ::ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::_internal_reportavatarresult() const { return static_cast< ::ReportAvatarAckMessage_ReportAvatarResult >(reportavatarresult_); } -inline void ReportAvatarAckMessage::set_reportavatarresult(::ReportAvatarAckMessage_ReportAvatarResult value) { +inline ::ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::reportavatarresult() const { + // @@protoc_insertion_point(field_get:ReportAvatarAckMessage.reportAvatarResult) + return _internal_reportavatarresult(); +} +inline void ReportAvatarAckMessage::_internal_set_reportavatarresult(::ReportAvatarAckMessage_ReportAvatarResult value) { assert(::ReportAvatarAckMessage_ReportAvatarResult_IsValid(value)); - set_has_reportavatarresult(); + _has_bits_[0] |= 0x00000002u; reportavatarresult_ = value; } +inline void ReportAvatarAckMessage::set_reportavatarresult(::ReportAvatarAckMessage_ReportAvatarResult value) { + _internal_set_reportavatarresult(value); + // @@protoc_insertion_point(field_set:ReportAvatarAckMessage.reportAvatarResult) +} // ------------------------------------------------------------------- // ReportGameMessage // required uint32 reportedGameId = 1; +inline bool ReportGameMessage::_internal_has_reportedgameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool ReportGameMessage::has_reportedgameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ReportGameMessage::set_has_reportedgameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void ReportGameMessage::clear_has_reportedgameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_reportedgameid(); } inline void ReportGameMessage::clear_reportedgameid() { reportedgameid_ = 0u; - clear_has_reportedgameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 ReportGameMessage::reportedgameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 ReportGameMessage::_internal_reportedgameid() const { return reportedgameid_; } -inline void ReportGameMessage::set_reportedgameid(::google::protobuf::uint32 value) { - set_has_reportedgameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 ReportGameMessage::reportedgameid() const { + // @@protoc_insertion_point(field_get:ReportGameMessage.reportedGameId) + return _internal_reportedgameid(); +} +inline void ReportGameMessage::_internal_set_reportedgameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; reportedgameid_ = value; } +inline void ReportGameMessage::set_reportedgameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_reportedgameid(value); + // @@protoc_insertion_point(field_set:ReportGameMessage.reportedGameId) +} // ------------------------------------------------------------------- // ReportGameAckMessage // required uint32 reportedGameId = 1; +inline bool ReportGameAckMessage::_internal_has_reportedgameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool ReportGameAckMessage::has_reportedgameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ReportGameAckMessage::set_has_reportedgameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void ReportGameAckMessage::clear_has_reportedgameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_reportedgameid(); } inline void ReportGameAckMessage::clear_reportedgameid() { reportedgameid_ = 0u; - clear_has_reportedgameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 ReportGameAckMessage::reportedgameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 ReportGameAckMessage::_internal_reportedgameid() const { return reportedgameid_; } -inline void ReportGameAckMessage::set_reportedgameid(::google::protobuf::uint32 value) { - set_has_reportedgameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 ReportGameAckMessage::reportedgameid() const { + // @@protoc_insertion_point(field_get:ReportGameAckMessage.reportedGameId) + return _internal_reportedgameid(); +} +inline void ReportGameAckMessage::_internal_set_reportedgameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; reportedgameid_ = value; } +inline void ReportGameAckMessage::set_reportedgameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_reportedgameid(value); + // @@protoc_insertion_point(field_set:ReportGameAckMessage.reportedGameId) +} // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; +inline bool ReportGameAckMessage::_internal_has_reportgameresult() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool ReportGameAckMessage::has_reportgameresult() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ReportGameAckMessage::set_has_reportgameresult() { - _has_bits_[0] |= 0x00000002u; -} -inline void ReportGameAckMessage::clear_has_reportgameresult() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_reportgameresult(); } inline void ReportGameAckMessage::clear_reportgameresult() { reportgameresult_ = 0; - clear_has_reportgameresult(); + _has_bits_[0] &= ~0x00000002u; } -inline ::ReportGameAckMessage_ReportGameResult ReportGameAckMessage::reportgameresult() const { +inline ::ReportGameAckMessage_ReportGameResult ReportGameAckMessage::_internal_reportgameresult() const { return static_cast< ::ReportGameAckMessage_ReportGameResult >(reportgameresult_); } -inline void ReportGameAckMessage::set_reportgameresult(::ReportGameAckMessage_ReportGameResult value) { +inline ::ReportGameAckMessage_ReportGameResult ReportGameAckMessage::reportgameresult() const { + // @@protoc_insertion_point(field_get:ReportGameAckMessage.reportGameResult) + return _internal_reportgameresult(); +} +inline void ReportGameAckMessage::_internal_set_reportgameresult(::ReportGameAckMessage_ReportGameResult value) { assert(::ReportGameAckMessage_ReportGameResult_IsValid(value)); - set_has_reportgameresult(); + _has_bits_[0] |= 0x00000002u; reportgameresult_ = value; } +inline void ReportGameAckMessage::set_reportgameresult(::ReportGameAckMessage_ReportGameResult value) { + _internal_set_reportgameresult(value); + // @@protoc_insertion_point(field_set:ReportGameAckMessage.reportGameResult) +} // ------------------------------------------------------------------- // ErrorMessage // required .ErrorMessage.ErrorReason errorReason = 1; +inline bool ErrorMessage::_internal_has_errorreason() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool ErrorMessage::has_errorreason() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ErrorMessage::set_has_errorreason() { - _has_bits_[0] |= 0x00000001u; -} -inline void ErrorMessage::clear_has_errorreason() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_errorreason(); } inline void ErrorMessage::clear_errorreason() { errorreason_ = 0; - clear_has_errorreason(); + _has_bits_[0] &= ~0x00000001u; } -inline ::ErrorMessage_ErrorReason ErrorMessage::errorreason() const { +inline ::ErrorMessage_ErrorReason ErrorMessage::_internal_errorreason() const { return static_cast< ::ErrorMessage_ErrorReason >(errorreason_); } -inline void ErrorMessage::set_errorreason(::ErrorMessage_ErrorReason value) { +inline ::ErrorMessage_ErrorReason ErrorMessage::errorreason() const { + // @@protoc_insertion_point(field_get:ErrorMessage.errorReason) + return _internal_errorreason(); +} +inline void ErrorMessage::_internal_set_errorreason(::ErrorMessage_ErrorReason value) { assert(::ErrorMessage_ErrorReason_IsValid(value)); - set_has_errorreason(); + _has_bits_[0] |= 0x00000001u; errorreason_ = value; } +inline void ErrorMessage::set_errorreason(::ErrorMessage_ErrorReason value) { + _internal_set_errorreason(value); + // @@protoc_insertion_point(field_set:ErrorMessage.errorReason) +} // ------------------------------------------------------------------- // AdminRemoveGameMessage // required uint32 removeGameId = 1; +inline bool AdminRemoveGameMessage::_internal_has_removegameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool AdminRemoveGameMessage::has_removegameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AdminRemoveGameMessage::set_has_removegameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AdminRemoveGameMessage::clear_has_removegameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_removegameid(); } inline void AdminRemoveGameMessage::clear_removegameid() { removegameid_ = 0u; - clear_has_removegameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 AdminRemoveGameMessage::removegameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AdminRemoveGameMessage::_internal_removegameid() const { return removegameid_; } -inline void AdminRemoveGameMessage::set_removegameid(::google::protobuf::uint32 value) { - set_has_removegameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AdminRemoveGameMessage::removegameid() const { + // @@protoc_insertion_point(field_get:AdminRemoveGameMessage.removeGameId) + return _internal_removegameid(); +} +inline void AdminRemoveGameMessage::_internal_set_removegameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; removegameid_ = value; } +inline void AdminRemoveGameMessage::set_removegameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_removegameid(value); + // @@protoc_insertion_point(field_set:AdminRemoveGameMessage.removeGameId) +} // ------------------------------------------------------------------- // AdminRemoveGameAckMessage // required uint32 removeGameId = 1; +inline bool AdminRemoveGameAckMessage::_internal_has_removegameid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool AdminRemoveGameAckMessage::has_removegameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AdminRemoveGameAckMessage::set_has_removegameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AdminRemoveGameAckMessage::clear_has_removegameid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_removegameid(); } inline void AdminRemoveGameAckMessage::clear_removegameid() { removegameid_ = 0u; - clear_has_removegameid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 AdminRemoveGameAckMessage::removegameid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AdminRemoveGameAckMessage::_internal_removegameid() const { return removegameid_; } -inline void AdminRemoveGameAckMessage::set_removegameid(::google::protobuf::uint32 value) { - set_has_removegameid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AdminRemoveGameAckMessage::removegameid() const { + // @@protoc_insertion_point(field_get:AdminRemoveGameAckMessage.removeGameId) + return _internal_removegameid(); +} +inline void AdminRemoveGameAckMessage::_internal_set_removegameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; removegameid_ = value; } +inline void AdminRemoveGameAckMessage::set_removegameid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_removegameid(value); + // @@protoc_insertion_point(field_set:AdminRemoveGameAckMessage.removeGameId) +} // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; +inline bool AdminRemoveGameAckMessage::_internal_has_removegameresult() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool AdminRemoveGameAckMessage::has_removegameresult() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AdminRemoveGameAckMessage::set_has_removegameresult() { - _has_bits_[0] |= 0x00000002u; -} -inline void AdminRemoveGameAckMessage::clear_has_removegameresult() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_removegameresult(); } inline void AdminRemoveGameAckMessage::clear_removegameresult() { removegameresult_ = 0; - clear_has_removegameresult(); + _has_bits_[0] &= ~0x00000002u; } -inline ::AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage::removegameresult() const { +inline ::AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage::_internal_removegameresult() const { return static_cast< ::AdminRemoveGameAckMessage_AdminRemoveGameResult >(removegameresult_); } -inline void AdminRemoveGameAckMessage::set_removegameresult(::AdminRemoveGameAckMessage_AdminRemoveGameResult value) { +inline ::AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage::removegameresult() const { + // @@protoc_insertion_point(field_get:AdminRemoveGameAckMessage.removeGameResult) + return _internal_removegameresult(); +} +inline void AdminRemoveGameAckMessage::_internal_set_removegameresult(::AdminRemoveGameAckMessage_AdminRemoveGameResult value) { assert(::AdminRemoveGameAckMessage_AdminRemoveGameResult_IsValid(value)); - set_has_removegameresult(); + _has_bits_[0] |= 0x00000002u; removegameresult_ = value; } +inline void AdminRemoveGameAckMessage::set_removegameresult(::AdminRemoveGameAckMessage_AdminRemoveGameResult value) { + _internal_set_removegameresult(value); + // @@protoc_insertion_point(field_set:AdminRemoveGameAckMessage.removeGameResult) +} // ------------------------------------------------------------------- // AdminBanPlayerMessage // required uint32 banPlayerId = 1; +inline bool AdminBanPlayerMessage::_internal_has_banplayerid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool AdminBanPlayerMessage::has_banplayerid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AdminBanPlayerMessage::set_has_banplayerid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AdminBanPlayerMessage::clear_has_banplayerid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_banplayerid(); } inline void AdminBanPlayerMessage::clear_banplayerid() { banplayerid_ = 0u; - clear_has_banplayerid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 AdminBanPlayerMessage::banplayerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AdminBanPlayerMessage::_internal_banplayerid() const { return banplayerid_; } -inline void AdminBanPlayerMessage::set_banplayerid(::google::protobuf::uint32 value) { - set_has_banplayerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AdminBanPlayerMessage::banplayerid() const { + // @@protoc_insertion_point(field_get:AdminBanPlayerMessage.banPlayerId) + return _internal_banplayerid(); +} +inline void AdminBanPlayerMessage::_internal_set_banplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; banplayerid_ = value; } +inline void AdminBanPlayerMessage::set_banplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_banplayerid(value); + // @@protoc_insertion_point(field_set:AdminBanPlayerMessage.banPlayerId) +} // ------------------------------------------------------------------- // AdminBanPlayerAckMessage // required uint32 banPlayerId = 1; +inline bool AdminBanPlayerAckMessage::_internal_has_banplayerid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} inline bool AdminBanPlayerAckMessage::has_banplayerid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AdminBanPlayerAckMessage::set_has_banplayerid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AdminBanPlayerAckMessage::clear_has_banplayerid() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_banplayerid(); } inline void AdminBanPlayerAckMessage::clear_banplayerid() { banplayerid_ = 0u; - clear_has_banplayerid(); + _has_bits_[0] &= ~0x00000001u; } -inline ::google::protobuf::uint32 AdminBanPlayerAckMessage::banplayerid() const { +inline ::PROTOBUF_NAMESPACE_ID::uint32 AdminBanPlayerAckMessage::_internal_banplayerid() const { return banplayerid_; } -inline void AdminBanPlayerAckMessage::set_banplayerid(::google::protobuf::uint32 value) { - set_has_banplayerid(); +inline ::PROTOBUF_NAMESPACE_ID::uint32 AdminBanPlayerAckMessage::banplayerid() const { + // @@protoc_insertion_point(field_get:AdminBanPlayerAckMessage.banPlayerId) + return _internal_banplayerid(); +} +inline void AdminBanPlayerAckMessage::_internal_set_banplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; banplayerid_ = value; } +inline void AdminBanPlayerAckMessage::set_banplayerid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_banplayerid(value); + // @@protoc_insertion_point(field_set:AdminBanPlayerAckMessage.banPlayerId) +} // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; +inline bool AdminBanPlayerAckMessage::_internal_has_banplayerresult() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} inline bool AdminBanPlayerAckMessage::has_banplayerresult() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AdminBanPlayerAckMessage::set_has_banplayerresult() { - _has_bits_[0] |= 0x00000002u; -} -inline void AdminBanPlayerAckMessage::clear_has_banplayerresult() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_banplayerresult(); } inline void AdminBanPlayerAckMessage::clear_banplayerresult() { banplayerresult_ = 0; - clear_has_banplayerresult(); + _has_bits_[0] &= ~0x00000002u; } -inline ::AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::banplayerresult() const { +inline ::AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::_internal_banplayerresult() const { return static_cast< ::AdminBanPlayerAckMessage_AdminBanPlayerResult >(banplayerresult_); } -inline void AdminBanPlayerAckMessage::set_banplayerresult(::AdminBanPlayerAckMessage_AdminBanPlayerResult value) { +inline ::AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::banplayerresult() const { + // @@protoc_insertion_point(field_get:AdminBanPlayerAckMessage.banPlayerResult) + return _internal_banplayerresult(); +} +inline void AdminBanPlayerAckMessage::_internal_set_banplayerresult(::AdminBanPlayerAckMessage_AdminBanPlayerResult value) { assert(::AdminBanPlayerAckMessage_AdminBanPlayerResult_IsValid(value)); - set_has_banplayerresult(); + _has_bits_[0] |= 0x00000002u; banplayerresult_ = value; } +inline void AdminBanPlayerAckMessage::set_banplayerresult(::AdminBanPlayerAckMessage_AdminBanPlayerResult value) { + _internal_set_banplayerresult(value); + // @@protoc_insertion_point(field_set:AdminBanPlayerAckMessage.banPlayerResult) +} // ------------------------------------------------------------------- // PokerTHMessage // required .PokerTHMessage.PokerTHMessageType messageType = 1; +inline bool PokerTHMessage::_internal_has_messagetype() const { + bool value = (_has_bits_[2] & 0x00020000u) != 0; + return value; +} inline bool PokerTHMessage::has_messagetype() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void PokerTHMessage::set_has_messagetype() { - _has_bits_[0] |= 0x00000001u; -} -inline void PokerTHMessage::clear_has_messagetype() { - _has_bits_[0] &= ~0x00000001u; + return _internal_has_messagetype(); } inline void PokerTHMessage::clear_messagetype() { messagetype_ = 1; - clear_has_messagetype(); + _has_bits_[2] &= ~0x00020000u; } -inline ::PokerTHMessage_PokerTHMessageType PokerTHMessage::messagetype() const { +inline ::PokerTHMessage_PokerTHMessageType PokerTHMessage::_internal_messagetype() const { return static_cast< ::PokerTHMessage_PokerTHMessageType >(messagetype_); } -inline void PokerTHMessage::set_messagetype(::PokerTHMessage_PokerTHMessageType value) { +inline ::PokerTHMessage_PokerTHMessageType PokerTHMessage::messagetype() const { + // @@protoc_insertion_point(field_get:PokerTHMessage.messageType) + return _internal_messagetype(); +} +inline void PokerTHMessage::_internal_set_messagetype(::PokerTHMessage_PokerTHMessageType value) { assert(::PokerTHMessage_PokerTHMessageType_IsValid(value)); - set_has_messagetype(); + _has_bits_[2] |= 0x00020000u; messagetype_ = value; } +inline void PokerTHMessage::set_messagetype(::PokerTHMessage_PokerTHMessageType value) { + _internal_set_messagetype(value); + // @@protoc_insertion_point(field_set:PokerTHMessage.messageType) +} // optional .AnnounceMessage announceMessage = 2; +inline bool PokerTHMessage::_internal_has_announcemessage() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || announcemessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_announcemessage() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void PokerTHMessage::set_has_announcemessage() { - _has_bits_[0] |= 0x00000002u; -} -inline void PokerTHMessage::clear_has_announcemessage() { - _has_bits_[0] &= ~0x00000002u; + return _internal_has_announcemessage(); } inline void PokerTHMessage::clear_announcemessage() { - if (announcemessage_ != NULL) announcemessage_->::AnnounceMessage::Clear(); - clear_has_announcemessage(); + if (announcemessage_ != nullptr) announcemessage_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +inline const ::AnnounceMessage& PokerTHMessage::_internal_announcemessage() const { + const ::AnnounceMessage* p = announcemessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_AnnounceMessage_default_instance_); } inline const ::AnnounceMessage& PokerTHMessage::announcemessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return announcemessage_ != NULL ? *announcemessage_ : *default_instance().announcemessage_; -#else - return announcemessage_ != NULL ? *announcemessage_ : *default_instance_->announcemessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.announceMessage) + return _internal_announcemessage(); } -inline ::AnnounceMessage* PokerTHMessage::mutable_announcemessage() { - set_has_announcemessage(); - if (announcemessage_ == NULL) announcemessage_ = new ::AnnounceMessage; - return announcemessage_; -} -inline ::AnnounceMessage* PokerTHMessage::release_announcemessage() { - clear_has_announcemessage(); - ::AnnounceMessage* temp = announcemessage_; - announcemessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_announcemessage(::AnnounceMessage* announcemessage) { - delete announcemessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_announcemessage( + ::AnnounceMessage* announcemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(announcemessage_); + } announcemessage_ = announcemessage; if (announcemessage) { - set_has_announcemessage(); + _has_bits_[0] |= 0x00000001u; } else { - clear_has_announcemessage(); + _has_bits_[0] &= ~0x00000001u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.announceMessage) +} +inline ::AnnounceMessage* PokerTHMessage::release_announcemessage() { + auto temp = unsafe_arena_release_announcemessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::AnnounceMessage* PokerTHMessage::unsafe_arena_release_announcemessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.announceMessage) + _has_bits_[0] &= ~0x00000001u; + ::AnnounceMessage* temp = announcemessage_; + announcemessage_ = nullptr; + return temp; +} +inline ::AnnounceMessage* PokerTHMessage::_internal_mutable_announcemessage() { + _has_bits_[0] |= 0x00000001u; + if (announcemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AnnounceMessage>(GetArena()); + announcemessage_ = p; + } + return announcemessage_; +} +inline ::AnnounceMessage* PokerTHMessage::mutable_announcemessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.announceMessage) + return _internal_mutable_announcemessage(); +} +inline void PokerTHMessage::set_allocated_announcemessage(::AnnounceMessage* announcemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete announcemessage_; + } + if (announcemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(announcemessage); + if (message_arena != submessage_arena) { + announcemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, announcemessage, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + announcemessage_ = announcemessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.announceMessage) } // optional .InitMessage initMessage = 3; +inline bool PokerTHMessage::_internal_has_initmessage() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || initmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_initmessage() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void PokerTHMessage::set_has_initmessage() { - _has_bits_[0] |= 0x00000004u; -} -inline void PokerTHMessage::clear_has_initmessage() { - _has_bits_[0] &= ~0x00000004u; + return _internal_has_initmessage(); } inline void PokerTHMessage::clear_initmessage() { - if (initmessage_ != NULL) initmessage_->::InitMessage::Clear(); - clear_has_initmessage(); + if (initmessage_ != nullptr) initmessage_->Clear(); + _has_bits_[0] &= ~0x00000002u; +} +inline const ::InitMessage& PokerTHMessage::_internal_initmessage() const { + const ::InitMessage* p = initmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_InitMessage_default_instance_); } inline const ::InitMessage& PokerTHMessage::initmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return initmessage_ != NULL ? *initmessage_ : *default_instance().initmessage_; -#else - return initmessage_ != NULL ? *initmessage_ : *default_instance_->initmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.initMessage) + return _internal_initmessage(); } -inline ::InitMessage* PokerTHMessage::mutable_initmessage() { - set_has_initmessage(); - if (initmessage_ == NULL) initmessage_ = new ::InitMessage; - return initmessage_; -} -inline ::InitMessage* PokerTHMessage::release_initmessage() { - clear_has_initmessage(); - ::InitMessage* temp = initmessage_; - initmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_initmessage(::InitMessage* initmessage) { - delete initmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_initmessage( + ::InitMessage* initmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(initmessage_); + } initmessage_ = initmessage; if (initmessage) { - set_has_initmessage(); + _has_bits_[0] |= 0x00000002u; } else { - clear_has_initmessage(); + _has_bits_[0] &= ~0x00000002u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.initMessage) +} +inline ::InitMessage* PokerTHMessage::release_initmessage() { + auto temp = unsafe_arena_release_initmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::InitMessage* PokerTHMessage::unsafe_arena_release_initmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.initMessage) + _has_bits_[0] &= ~0x00000002u; + ::InitMessage* temp = initmessage_; + initmessage_ = nullptr; + return temp; +} +inline ::InitMessage* PokerTHMessage::_internal_mutable_initmessage() { + _has_bits_[0] |= 0x00000002u; + if (initmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::InitMessage>(GetArena()); + initmessage_ = p; + } + return initmessage_; +} +inline ::InitMessage* PokerTHMessage::mutable_initmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.initMessage) + return _internal_mutable_initmessage(); +} +inline void PokerTHMessage::set_allocated_initmessage(::InitMessage* initmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete initmessage_; + } + if (initmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(initmessage); + if (message_arena != submessage_arena) { + initmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, initmessage, submessage_arena); + } + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + initmessage_ = initmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.initMessage) } // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; +inline bool PokerTHMessage::_internal_has_authserverchallengemessage() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || authserverchallengemessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_authserverchallengemessage() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void PokerTHMessage::set_has_authserverchallengemessage() { - _has_bits_[0] |= 0x00000008u; -} -inline void PokerTHMessage::clear_has_authserverchallengemessage() { - _has_bits_[0] &= ~0x00000008u; + return _internal_has_authserverchallengemessage(); } inline void PokerTHMessage::clear_authserverchallengemessage() { - if (authserverchallengemessage_ != NULL) authserverchallengemessage_->::AuthServerChallengeMessage::Clear(); - clear_has_authserverchallengemessage(); + if (authserverchallengemessage_ != nullptr) authserverchallengemessage_->Clear(); + _has_bits_[0] &= ~0x00000004u; +} +inline const ::AuthServerChallengeMessage& PokerTHMessage::_internal_authserverchallengemessage() const { + const ::AuthServerChallengeMessage* p = authserverchallengemessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_AuthServerChallengeMessage_default_instance_); } inline const ::AuthServerChallengeMessage& PokerTHMessage::authserverchallengemessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return authserverchallengemessage_ != NULL ? *authserverchallengemessage_ : *default_instance().authserverchallengemessage_; -#else - return authserverchallengemessage_ != NULL ? *authserverchallengemessage_ : *default_instance_->authserverchallengemessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.authServerChallengeMessage) + return _internal_authserverchallengemessage(); } -inline ::AuthServerChallengeMessage* PokerTHMessage::mutable_authserverchallengemessage() { - set_has_authserverchallengemessage(); - if (authserverchallengemessage_ == NULL) authserverchallengemessage_ = new ::AuthServerChallengeMessage; - return authserverchallengemessage_; -} -inline ::AuthServerChallengeMessage* PokerTHMessage::release_authserverchallengemessage() { - clear_has_authserverchallengemessage(); - ::AuthServerChallengeMessage* temp = authserverchallengemessage_; - authserverchallengemessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_authserverchallengemessage(::AuthServerChallengeMessage* authserverchallengemessage) { - delete authserverchallengemessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_authserverchallengemessage( + ::AuthServerChallengeMessage* authserverchallengemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(authserverchallengemessage_); + } authserverchallengemessage_ = authserverchallengemessage; if (authserverchallengemessage) { - set_has_authserverchallengemessage(); + _has_bits_[0] |= 0x00000004u; } else { - clear_has_authserverchallengemessage(); + _has_bits_[0] &= ~0x00000004u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.authServerChallengeMessage) +} +inline ::AuthServerChallengeMessage* PokerTHMessage::release_authserverchallengemessage() { + auto temp = unsafe_arena_release_authserverchallengemessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::AuthServerChallengeMessage* PokerTHMessage::unsafe_arena_release_authserverchallengemessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.authServerChallengeMessage) + _has_bits_[0] &= ~0x00000004u; + ::AuthServerChallengeMessage* temp = authserverchallengemessage_; + authserverchallengemessage_ = nullptr; + return temp; +} +inline ::AuthServerChallengeMessage* PokerTHMessage::_internal_mutable_authserverchallengemessage() { + _has_bits_[0] |= 0x00000004u; + if (authserverchallengemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AuthServerChallengeMessage>(GetArena()); + authserverchallengemessage_ = p; + } + return authserverchallengemessage_; +} +inline ::AuthServerChallengeMessage* PokerTHMessage::mutable_authserverchallengemessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.authServerChallengeMessage) + return _internal_mutable_authserverchallengemessage(); +} +inline void PokerTHMessage::set_allocated_authserverchallengemessage(::AuthServerChallengeMessage* authserverchallengemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete authserverchallengemessage_; + } + if (authserverchallengemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(authserverchallengemessage); + if (message_arena != submessage_arena) { + authserverchallengemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, authserverchallengemessage, submessage_arena); + } + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + authserverchallengemessage_ = authserverchallengemessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.authServerChallengeMessage) } // optional .AuthClientResponseMessage authClientResponseMessage = 5; +inline bool PokerTHMessage::_internal_has_authclientresponsemessage() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + PROTOBUF_ASSUME(!value || authclientresponsemessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_authclientresponsemessage() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void PokerTHMessage::set_has_authclientresponsemessage() { - _has_bits_[0] |= 0x00000010u; -} -inline void PokerTHMessage::clear_has_authclientresponsemessage() { - _has_bits_[0] &= ~0x00000010u; + return _internal_has_authclientresponsemessage(); } inline void PokerTHMessage::clear_authclientresponsemessage() { - if (authclientresponsemessage_ != NULL) authclientresponsemessage_->::AuthClientResponseMessage::Clear(); - clear_has_authclientresponsemessage(); + if (authclientresponsemessage_ != nullptr) authclientresponsemessage_->Clear(); + _has_bits_[0] &= ~0x00000008u; +} +inline const ::AuthClientResponseMessage& PokerTHMessage::_internal_authclientresponsemessage() const { + const ::AuthClientResponseMessage* p = authclientresponsemessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_AuthClientResponseMessage_default_instance_); } inline const ::AuthClientResponseMessage& PokerTHMessage::authclientresponsemessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return authclientresponsemessage_ != NULL ? *authclientresponsemessage_ : *default_instance().authclientresponsemessage_; -#else - return authclientresponsemessage_ != NULL ? *authclientresponsemessage_ : *default_instance_->authclientresponsemessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.authClientResponseMessage) + return _internal_authclientresponsemessage(); } -inline ::AuthClientResponseMessage* PokerTHMessage::mutable_authclientresponsemessage() { - set_has_authclientresponsemessage(); - if (authclientresponsemessage_ == NULL) authclientresponsemessage_ = new ::AuthClientResponseMessage; - return authclientresponsemessage_; -} -inline ::AuthClientResponseMessage* PokerTHMessage::release_authclientresponsemessage() { - clear_has_authclientresponsemessage(); - ::AuthClientResponseMessage* temp = authclientresponsemessage_; - authclientresponsemessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_authclientresponsemessage(::AuthClientResponseMessage* authclientresponsemessage) { - delete authclientresponsemessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_authclientresponsemessage( + ::AuthClientResponseMessage* authclientresponsemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(authclientresponsemessage_); + } authclientresponsemessage_ = authclientresponsemessage; if (authclientresponsemessage) { - set_has_authclientresponsemessage(); + _has_bits_[0] |= 0x00000008u; } else { - clear_has_authclientresponsemessage(); + _has_bits_[0] &= ~0x00000008u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.authClientResponseMessage) +} +inline ::AuthClientResponseMessage* PokerTHMessage::release_authclientresponsemessage() { + auto temp = unsafe_arena_release_authclientresponsemessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::AuthClientResponseMessage* PokerTHMessage::unsafe_arena_release_authclientresponsemessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.authClientResponseMessage) + _has_bits_[0] &= ~0x00000008u; + ::AuthClientResponseMessage* temp = authclientresponsemessage_; + authclientresponsemessage_ = nullptr; + return temp; +} +inline ::AuthClientResponseMessage* PokerTHMessage::_internal_mutable_authclientresponsemessage() { + _has_bits_[0] |= 0x00000008u; + if (authclientresponsemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AuthClientResponseMessage>(GetArena()); + authclientresponsemessage_ = p; + } + return authclientresponsemessage_; +} +inline ::AuthClientResponseMessage* PokerTHMessage::mutable_authclientresponsemessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.authClientResponseMessage) + return _internal_mutable_authclientresponsemessage(); +} +inline void PokerTHMessage::set_allocated_authclientresponsemessage(::AuthClientResponseMessage* authclientresponsemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete authclientresponsemessage_; + } + if (authclientresponsemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(authclientresponsemessage); + if (message_arena != submessage_arena) { + authclientresponsemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, authclientresponsemessage, submessage_arena); + } + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + authclientresponsemessage_ = authclientresponsemessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.authClientResponseMessage) } // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; +inline bool PokerTHMessage::_internal_has_authserververificationmessage() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + PROTOBUF_ASSUME(!value || authserververificationmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_authserververificationmessage() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void PokerTHMessage::set_has_authserververificationmessage() { - _has_bits_[0] |= 0x00000020u; -} -inline void PokerTHMessage::clear_has_authserververificationmessage() { - _has_bits_[0] &= ~0x00000020u; + return _internal_has_authserververificationmessage(); } inline void PokerTHMessage::clear_authserververificationmessage() { - if (authserververificationmessage_ != NULL) authserververificationmessage_->::AuthServerVerificationMessage::Clear(); - clear_has_authserververificationmessage(); + if (authserververificationmessage_ != nullptr) authserververificationmessage_->Clear(); + _has_bits_[0] &= ~0x00000010u; +} +inline const ::AuthServerVerificationMessage& PokerTHMessage::_internal_authserververificationmessage() const { + const ::AuthServerVerificationMessage* p = authserververificationmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_AuthServerVerificationMessage_default_instance_); } inline const ::AuthServerVerificationMessage& PokerTHMessage::authserververificationmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return authserververificationmessage_ != NULL ? *authserververificationmessage_ : *default_instance().authserververificationmessage_; -#else - return authserververificationmessage_ != NULL ? *authserververificationmessage_ : *default_instance_->authserververificationmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.authServerVerificationMessage) + return _internal_authserververificationmessage(); } -inline ::AuthServerVerificationMessage* PokerTHMessage::mutable_authserververificationmessage() { - set_has_authserververificationmessage(); - if (authserververificationmessage_ == NULL) authserververificationmessage_ = new ::AuthServerVerificationMessage; - return authserververificationmessage_; -} -inline ::AuthServerVerificationMessage* PokerTHMessage::release_authserververificationmessage() { - clear_has_authserververificationmessage(); - ::AuthServerVerificationMessage* temp = authserververificationmessage_; - authserververificationmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_authserververificationmessage(::AuthServerVerificationMessage* authserververificationmessage) { - delete authserververificationmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_authserververificationmessage( + ::AuthServerVerificationMessage* authserververificationmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(authserververificationmessage_); + } authserververificationmessage_ = authserververificationmessage; if (authserververificationmessage) { - set_has_authserververificationmessage(); + _has_bits_[0] |= 0x00000010u; } else { - clear_has_authserververificationmessage(); + _has_bits_[0] &= ~0x00000010u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.authServerVerificationMessage) +} +inline ::AuthServerVerificationMessage* PokerTHMessage::release_authserververificationmessage() { + auto temp = unsafe_arena_release_authserververificationmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::AuthServerVerificationMessage* PokerTHMessage::unsafe_arena_release_authserververificationmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.authServerVerificationMessage) + _has_bits_[0] &= ~0x00000010u; + ::AuthServerVerificationMessage* temp = authserververificationmessage_; + authserververificationmessage_ = nullptr; + return temp; +} +inline ::AuthServerVerificationMessage* PokerTHMessage::_internal_mutable_authserververificationmessage() { + _has_bits_[0] |= 0x00000010u; + if (authserververificationmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AuthServerVerificationMessage>(GetArena()); + authserververificationmessage_ = p; + } + return authserververificationmessage_; +} +inline ::AuthServerVerificationMessage* PokerTHMessage::mutable_authserververificationmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.authServerVerificationMessage) + return _internal_mutable_authserververificationmessage(); +} +inline void PokerTHMessage::set_allocated_authserververificationmessage(::AuthServerVerificationMessage* authserververificationmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete authserververificationmessage_; + } + if (authserververificationmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(authserververificationmessage); + if (message_arena != submessage_arena) { + authserververificationmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, authserververificationmessage, submessage_arena); + } + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + authserververificationmessage_ = authserververificationmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.authServerVerificationMessage) } // optional .InitAckMessage initAckMessage = 7; +inline bool PokerTHMessage::_internal_has_initackmessage() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + PROTOBUF_ASSUME(!value || initackmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_initackmessage() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void PokerTHMessage::set_has_initackmessage() { - _has_bits_[0] |= 0x00000040u; -} -inline void PokerTHMessage::clear_has_initackmessage() { - _has_bits_[0] &= ~0x00000040u; + return _internal_has_initackmessage(); } inline void PokerTHMessage::clear_initackmessage() { - if (initackmessage_ != NULL) initackmessage_->::InitAckMessage::Clear(); - clear_has_initackmessage(); + if (initackmessage_ != nullptr) initackmessage_->Clear(); + _has_bits_[0] &= ~0x00000020u; +} +inline const ::InitAckMessage& PokerTHMessage::_internal_initackmessage() const { + const ::InitAckMessage* p = initackmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_InitAckMessage_default_instance_); } inline const ::InitAckMessage& PokerTHMessage::initackmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return initackmessage_ != NULL ? *initackmessage_ : *default_instance().initackmessage_; -#else - return initackmessage_ != NULL ? *initackmessage_ : *default_instance_->initackmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.initAckMessage) + return _internal_initackmessage(); } -inline ::InitAckMessage* PokerTHMessage::mutable_initackmessage() { - set_has_initackmessage(); - if (initackmessage_ == NULL) initackmessage_ = new ::InitAckMessage; - return initackmessage_; -} -inline ::InitAckMessage* PokerTHMessage::release_initackmessage() { - clear_has_initackmessage(); - ::InitAckMessage* temp = initackmessage_; - initackmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_initackmessage(::InitAckMessage* initackmessage) { - delete initackmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_initackmessage( + ::InitAckMessage* initackmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(initackmessage_); + } initackmessage_ = initackmessage; if (initackmessage) { - set_has_initackmessage(); + _has_bits_[0] |= 0x00000020u; } else { - clear_has_initackmessage(); + _has_bits_[0] &= ~0x00000020u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.initAckMessage) +} +inline ::InitAckMessage* PokerTHMessage::release_initackmessage() { + auto temp = unsafe_arena_release_initackmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::InitAckMessage* PokerTHMessage::unsafe_arena_release_initackmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.initAckMessage) + _has_bits_[0] &= ~0x00000020u; + ::InitAckMessage* temp = initackmessage_; + initackmessage_ = nullptr; + return temp; +} +inline ::InitAckMessage* PokerTHMessage::_internal_mutable_initackmessage() { + _has_bits_[0] |= 0x00000020u; + if (initackmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::InitAckMessage>(GetArena()); + initackmessage_ = p; + } + return initackmessage_; +} +inline ::InitAckMessage* PokerTHMessage::mutable_initackmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.initAckMessage) + return _internal_mutable_initackmessage(); +} +inline void PokerTHMessage::set_allocated_initackmessage(::InitAckMessage* initackmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete initackmessage_; + } + if (initackmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(initackmessage); + if (message_arena != submessage_arena) { + initackmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, initackmessage, submessage_arena); + } + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + initackmessage_ = initackmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.initAckMessage) } // optional .AvatarRequestMessage avatarRequestMessage = 8; +inline bool PokerTHMessage::_internal_has_avatarrequestmessage() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + PROTOBUF_ASSUME(!value || avatarrequestmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_avatarrequestmessage() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -inline void PokerTHMessage::set_has_avatarrequestmessage() { - _has_bits_[0] |= 0x00000080u; -} -inline void PokerTHMessage::clear_has_avatarrequestmessage() { - _has_bits_[0] &= ~0x00000080u; + return _internal_has_avatarrequestmessage(); } inline void PokerTHMessage::clear_avatarrequestmessage() { - if (avatarrequestmessage_ != NULL) avatarrequestmessage_->::AvatarRequestMessage::Clear(); - clear_has_avatarrequestmessage(); + if (avatarrequestmessage_ != nullptr) avatarrequestmessage_->Clear(); + _has_bits_[0] &= ~0x00000040u; +} +inline const ::AvatarRequestMessage& PokerTHMessage::_internal_avatarrequestmessage() const { + const ::AvatarRequestMessage* p = avatarrequestmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_AvatarRequestMessage_default_instance_); } inline const ::AvatarRequestMessage& PokerTHMessage::avatarrequestmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return avatarrequestmessage_ != NULL ? *avatarrequestmessage_ : *default_instance().avatarrequestmessage_; -#else - return avatarrequestmessage_ != NULL ? *avatarrequestmessage_ : *default_instance_->avatarrequestmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.avatarRequestMessage) + return _internal_avatarrequestmessage(); } -inline ::AvatarRequestMessage* PokerTHMessage::mutable_avatarrequestmessage() { - set_has_avatarrequestmessage(); - if (avatarrequestmessage_ == NULL) avatarrequestmessage_ = new ::AvatarRequestMessage; - return avatarrequestmessage_; -} -inline ::AvatarRequestMessage* PokerTHMessage::release_avatarrequestmessage() { - clear_has_avatarrequestmessage(); - ::AvatarRequestMessage* temp = avatarrequestmessage_; - avatarrequestmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_avatarrequestmessage(::AvatarRequestMessage* avatarrequestmessage) { - delete avatarrequestmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_avatarrequestmessage( + ::AvatarRequestMessage* avatarrequestmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(avatarrequestmessage_); + } avatarrequestmessage_ = avatarrequestmessage; if (avatarrequestmessage) { - set_has_avatarrequestmessage(); + _has_bits_[0] |= 0x00000040u; } else { - clear_has_avatarrequestmessage(); + _has_bits_[0] &= ~0x00000040u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.avatarRequestMessage) +} +inline ::AvatarRequestMessage* PokerTHMessage::release_avatarrequestmessage() { + auto temp = unsafe_arena_release_avatarrequestmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::AvatarRequestMessage* PokerTHMessage::unsafe_arena_release_avatarrequestmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.avatarRequestMessage) + _has_bits_[0] &= ~0x00000040u; + ::AvatarRequestMessage* temp = avatarrequestmessage_; + avatarrequestmessage_ = nullptr; + return temp; +} +inline ::AvatarRequestMessage* PokerTHMessage::_internal_mutable_avatarrequestmessage() { + _has_bits_[0] |= 0x00000040u; + if (avatarrequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AvatarRequestMessage>(GetArena()); + avatarrequestmessage_ = p; + } + return avatarrequestmessage_; +} +inline ::AvatarRequestMessage* PokerTHMessage::mutable_avatarrequestmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.avatarRequestMessage) + return _internal_mutable_avatarrequestmessage(); +} +inline void PokerTHMessage::set_allocated_avatarrequestmessage(::AvatarRequestMessage* avatarrequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete avatarrequestmessage_; + } + if (avatarrequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(avatarrequestmessage); + if (message_arena != submessage_arena) { + avatarrequestmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, avatarrequestmessage, submessage_arena); + } + _has_bits_[0] |= 0x00000040u; + } else { + _has_bits_[0] &= ~0x00000040u; + } + avatarrequestmessage_ = avatarrequestmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.avatarRequestMessage) } // optional .AvatarHeaderMessage avatarHeaderMessage = 9; +inline bool PokerTHMessage::_internal_has_avatarheadermessage() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + PROTOBUF_ASSUME(!value || avatarheadermessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_avatarheadermessage() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -inline void PokerTHMessage::set_has_avatarheadermessage() { - _has_bits_[0] |= 0x00000100u; -} -inline void PokerTHMessage::clear_has_avatarheadermessage() { - _has_bits_[0] &= ~0x00000100u; + return _internal_has_avatarheadermessage(); } inline void PokerTHMessage::clear_avatarheadermessage() { - if (avatarheadermessage_ != NULL) avatarheadermessage_->::AvatarHeaderMessage::Clear(); - clear_has_avatarheadermessage(); + if (avatarheadermessage_ != nullptr) avatarheadermessage_->Clear(); + _has_bits_[0] &= ~0x00000080u; +} +inline const ::AvatarHeaderMessage& PokerTHMessage::_internal_avatarheadermessage() const { + const ::AvatarHeaderMessage* p = avatarheadermessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_AvatarHeaderMessage_default_instance_); } inline const ::AvatarHeaderMessage& PokerTHMessage::avatarheadermessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return avatarheadermessage_ != NULL ? *avatarheadermessage_ : *default_instance().avatarheadermessage_; -#else - return avatarheadermessage_ != NULL ? *avatarheadermessage_ : *default_instance_->avatarheadermessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.avatarHeaderMessage) + return _internal_avatarheadermessage(); } -inline ::AvatarHeaderMessage* PokerTHMessage::mutable_avatarheadermessage() { - set_has_avatarheadermessage(); - if (avatarheadermessage_ == NULL) avatarheadermessage_ = new ::AvatarHeaderMessage; - return avatarheadermessage_; -} -inline ::AvatarHeaderMessage* PokerTHMessage::release_avatarheadermessage() { - clear_has_avatarheadermessage(); - ::AvatarHeaderMessage* temp = avatarheadermessage_; - avatarheadermessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_avatarheadermessage(::AvatarHeaderMessage* avatarheadermessage) { - delete avatarheadermessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_avatarheadermessage( + ::AvatarHeaderMessage* avatarheadermessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(avatarheadermessage_); + } avatarheadermessage_ = avatarheadermessage; if (avatarheadermessage) { - set_has_avatarheadermessage(); + _has_bits_[0] |= 0x00000080u; } else { - clear_has_avatarheadermessage(); + _has_bits_[0] &= ~0x00000080u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.avatarHeaderMessage) +} +inline ::AvatarHeaderMessage* PokerTHMessage::release_avatarheadermessage() { + auto temp = unsafe_arena_release_avatarheadermessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::AvatarHeaderMessage* PokerTHMessage::unsafe_arena_release_avatarheadermessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.avatarHeaderMessage) + _has_bits_[0] &= ~0x00000080u; + ::AvatarHeaderMessage* temp = avatarheadermessage_; + avatarheadermessage_ = nullptr; + return temp; +} +inline ::AvatarHeaderMessage* PokerTHMessage::_internal_mutable_avatarheadermessage() { + _has_bits_[0] |= 0x00000080u; + if (avatarheadermessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AvatarHeaderMessage>(GetArena()); + avatarheadermessage_ = p; + } + return avatarheadermessage_; +} +inline ::AvatarHeaderMessage* PokerTHMessage::mutable_avatarheadermessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.avatarHeaderMessage) + return _internal_mutable_avatarheadermessage(); +} +inline void PokerTHMessage::set_allocated_avatarheadermessage(::AvatarHeaderMessage* avatarheadermessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete avatarheadermessage_; + } + if (avatarheadermessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(avatarheadermessage); + if (message_arena != submessage_arena) { + avatarheadermessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, avatarheadermessage, submessage_arena); + } + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + avatarheadermessage_ = avatarheadermessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.avatarHeaderMessage) } // optional .AvatarDataMessage avatarDataMessage = 10; +inline bool PokerTHMessage::_internal_has_avatardatamessage() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + PROTOBUF_ASSUME(!value || avatardatamessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_avatardatamessage() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -inline void PokerTHMessage::set_has_avatardatamessage() { - _has_bits_[0] |= 0x00000200u; -} -inline void PokerTHMessage::clear_has_avatardatamessage() { - _has_bits_[0] &= ~0x00000200u; + return _internal_has_avatardatamessage(); } inline void PokerTHMessage::clear_avatardatamessage() { - if (avatardatamessage_ != NULL) avatardatamessage_->::AvatarDataMessage::Clear(); - clear_has_avatardatamessage(); + if (avatardatamessage_ != nullptr) avatardatamessage_->Clear(); + _has_bits_[0] &= ~0x00000100u; +} +inline const ::AvatarDataMessage& PokerTHMessage::_internal_avatardatamessage() const { + const ::AvatarDataMessage* p = avatardatamessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_AvatarDataMessage_default_instance_); } inline const ::AvatarDataMessage& PokerTHMessage::avatardatamessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return avatardatamessage_ != NULL ? *avatardatamessage_ : *default_instance().avatardatamessage_; -#else - return avatardatamessage_ != NULL ? *avatardatamessage_ : *default_instance_->avatardatamessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.avatarDataMessage) + return _internal_avatardatamessage(); } -inline ::AvatarDataMessage* PokerTHMessage::mutable_avatardatamessage() { - set_has_avatardatamessage(); - if (avatardatamessage_ == NULL) avatardatamessage_ = new ::AvatarDataMessage; - return avatardatamessage_; -} -inline ::AvatarDataMessage* PokerTHMessage::release_avatardatamessage() { - clear_has_avatardatamessage(); - ::AvatarDataMessage* temp = avatardatamessage_; - avatardatamessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_avatardatamessage(::AvatarDataMessage* avatardatamessage) { - delete avatardatamessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_avatardatamessage( + ::AvatarDataMessage* avatardatamessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(avatardatamessage_); + } avatardatamessage_ = avatardatamessage; if (avatardatamessage) { - set_has_avatardatamessage(); + _has_bits_[0] |= 0x00000100u; } else { - clear_has_avatardatamessage(); + _has_bits_[0] &= ~0x00000100u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.avatarDataMessage) +} +inline ::AvatarDataMessage* PokerTHMessage::release_avatardatamessage() { + auto temp = unsafe_arena_release_avatardatamessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::AvatarDataMessage* PokerTHMessage::unsafe_arena_release_avatardatamessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.avatarDataMessage) + _has_bits_[0] &= ~0x00000100u; + ::AvatarDataMessage* temp = avatardatamessage_; + avatardatamessage_ = nullptr; + return temp; +} +inline ::AvatarDataMessage* PokerTHMessage::_internal_mutable_avatardatamessage() { + _has_bits_[0] |= 0x00000100u; + if (avatardatamessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AvatarDataMessage>(GetArena()); + avatardatamessage_ = p; + } + return avatardatamessage_; +} +inline ::AvatarDataMessage* PokerTHMessage::mutable_avatardatamessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.avatarDataMessage) + return _internal_mutable_avatardatamessage(); +} +inline void PokerTHMessage::set_allocated_avatardatamessage(::AvatarDataMessage* avatardatamessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete avatardatamessage_; + } + if (avatardatamessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(avatardatamessage); + if (message_arena != submessage_arena) { + avatardatamessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, avatardatamessage, submessage_arena); + } + _has_bits_[0] |= 0x00000100u; + } else { + _has_bits_[0] &= ~0x00000100u; + } + avatardatamessage_ = avatardatamessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.avatarDataMessage) } // optional .AvatarEndMessage avatarEndMessage = 11; +inline bool PokerTHMessage::_internal_has_avatarendmessage() const { + bool value = (_has_bits_[0] & 0x00000200u) != 0; + PROTOBUF_ASSUME(!value || avatarendmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_avatarendmessage() const { - return (_has_bits_[0] & 0x00000400u) != 0; -} -inline void PokerTHMessage::set_has_avatarendmessage() { - _has_bits_[0] |= 0x00000400u; -} -inline void PokerTHMessage::clear_has_avatarendmessage() { - _has_bits_[0] &= ~0x00000400u; + return _internal_has_avatarendmessage(); } inline void PokerTHMessage::clear_avatarendmessage() { - if (avatarendmessage_ != NULL) avatarendmessage_->::AvatarEndMessage::Clear(); - clear_has_avatarendmessage(); + if (avatarendmessage_ != nullptr) avatarendmessage_->Clear(); + _has_bits_[0] &= ~0x00000200u; +} +inline const ::AvatarEndMessage& PokerTHMessage::_internal_avatarendmessage() const { + const ::AvatarEndMessage* p = avatarendmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_AvatarEndMessage_default_instance_); } inline const ::AvatarEndMessage& PokerTHMessage::avatarendmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return avatarendmessage_ != NULL ? *avatarendmessage_ : *default_instance().avatarendmessage_; -#else - return avatarendmessage_ != NULL ? *avatarendmessage_ : *default_instance_->avatarendmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.avatarEndMessage) + return _internal_avatarendmessage(); } -inline ::AvatarEndMessage* PokerTHMessage::mutable_avatarendmessage() { - set_has_avatarendmessage(); - if (avatarendmessage_ == NULL) avatarendmessage_ = new ::AvatarEndMessage; - return avatarendmessage_; -} -inline ::AvatarEndMessage* PokerTHMessage::release_avatarendmessage() { - clear_has_avatarendmessage(); - ::AvatarEndMessage* temp = avatarendmessage_; - avatarendmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_avatarendmessage(::AvatarEndMessage* avatarendmessage) { - delete avatarendmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_avatarendmessage( + ::AvatarEndMessage* avatarendmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(avatarendmessage_); + } avatarendmessage_ = avatarendmessage; if (avatarendmessage) { - set_has_avatarendmessage(); + _has_bits_[0] |= 0x00000200u; } else { - clear_has_avatarendmessage(); + _has_bits_[0] &= ~0x00000200u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.avatarEndMessage) +} +inline ::AvatarEndMessage* PokerTHMessage::release_avatarendmessage() { + auto temp = unsafe_arena_release_avatarendmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::AvatarEndMessage* PokerTHMessage::unsafe_arena_release_avatarendmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.avatarEndMessage) + _has_bits_[0] &= ~0x00000200u; + ::AvatarEndMessage* temp = avatarendmessage_; + avatarendmessage_ = nullptr; + return temp; +} +inline ::AvatarEndMessage* PokerTHMessage::_internal_mutable_avatarendmessage() { + _has_bits_[0] |= 0x00000200u; + if (avatarendmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AvatarEndMessage>(GetArena()); + avatarendmessage_ = p; + } + return avatarendmessage_; +} +inline ::AvatarEndMessage* PokerTHMessage::mutable_avatarendmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.avatarEndMessage) + return _internal_mutable_avatarendmessage(); +} +inline void PokerTHMessage::set_allocated_avatarendmessage(::AvatarEndMessage* avatarendmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete avatarendmessage_; + } + if (avatarendmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(avatarendmessage); + if (message_arena != submessage_arena) { + avatarendmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, avatarendmessage, submessage_arena); + } + _has_bits_[0] |= 0x00000200u; + } else { + _has_bits_[0] &= ~0x00000200u; + } + avatarendmessage_ = avatarendmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.avatarEndMessage) } // optional .UnknownAvatarMessage unknownAvatarMessage = 12; +inline bool PokerTHMessage::_internal_has_unknownavatarmessage() const { + bool value = (_has_bits_[0] & 0x00000400u) != 0; + PROTOBUF_ASSUME(!value || unknownavatarmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_unknownavatarmessage() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -inline void PokerTHMessage::set_has_unknownavatarmessage() { - _has_bits_[0] |= 0x00000800u; -} -inline void PokerTHMessage::clear_has_unknownavatarmessage() { - _has_bits_[0] &= ~0x00000800u; + return _internal_has_unknownavatarmessage(); } inline void PokerTHMessage::clear_unknownavatarmessage() { - if (unknownavatarmessage_ != NULL) unknownavatarmessage_->::UnknownAvatarMessage::Clear(); - clear_has_unknownavatarmessage(); + if (unknownavatarmessage_ != nullptr) unknownavatarmessage_->Clear(); + _has_bits_[0] &= ~0x00000400u; +} +inline const ::UnknownAvatarMessage& PokerTHMessage::_internal_unknownavatarmessage() const { + const ::UnknownAvatarMessage* p = unknownavatarmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_UnknownAvatarMessage_default_instance_); } inline const ::UnknownAvatarMessage& PokerTHMessage::unknownavatarmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return unknownavatarmessage_ != NULL ? *unknownavatarmessage_ : *default_instance().unknownavatarmessage_; -#else - return unknownavatarmessage_ != NULL ? *unknownavatarmessage_ : *default_instance_->unknownavatarmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.unknownAvatarMessage) + return _internal_unknownavatarmessage(); } -inline ::UnknownAvatarMessage* PokerTHMessage::mutable_unknownavatarmessage() { - set_has_unknownavatarmessage(); - if (unknownavatarmessage_ == NULL) unknownavatarmessage_ = new ::UnknownAvatarMessage; - return unknownavatarmessage_; -} -inline ::UnknownAvatarMessage* PokerTHMessage::release_unknownavatarmessage() { - clear_has_unknownavatarmessage(); - ::UnknownAvatarMessage* temp = unknownavatarmessage_; - unknownavatarmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_unknownavatarmessage(::UnknownAvatarMessage* unknownavatarmessage) { - delete unknownavatarmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_unknownavatarmessage( + ::UnknownAvatarMessage* unknownavatarmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(unknownavatarmessage_); + } unknownavatarmessage_ = unknownavatarmessage; if (unknownavatarmessage) { - set_has_unknownavatarmessage(); + _has_bits_[0] |= 0x00000400u; } else { - clear_has_unknownavatarmessage(); + _has_bits_[0] &= ~0x00000400u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.unknownAvatarMessage) +} +inline ::UnknownAvatarMessage* PokerTHMessage::release_unknownavatarmessage() { + auto temp = unsafe_arena_release_unknownavatarmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::UnknownAvatarMessage* PokerTHMessage::unsafe_arena_release_unknownavatarmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.unknownAvatarMessage) + _has_bits_[0] &= ~0x00000400u; + ::UnknownAvatarMessage* temp = unknownavatarmessage_; + unknownavatarmessage_ = nullptr; + return temp; +} +inline ::UnknownAvatarMessage* PokerTHMessage::_internal_mutable_unknownavatarmessage() { + _has_bits_[0] |= 0x00000400u; + if (unknownavatarmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::UnknownAvatarMessage>(GetArena()); + unknownavatarmessage_ = p; + } + return unknownavatarmessage_; +} +inline ::UnknownAvatarMessage* PokerTHMessage::mutable_unknownavatarmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.unknownAvatarMessage) + return _internal_mutable_unknownavatarmessage(); +} +inline void PokerTHMessage::set_allocated_unknownavatarmessage(::UnknownAvatarMessage* unknownavatarmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete unknownavatarmessage_; + } + if (unknownavatarmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(unknownavatarmessage); + if (message_arena != submessage_arena) { + unknownavatarmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, unknownavatarmessage, submessage_arena); + } + _has_bits_[0] |= 0x00000400u; + } else { + _has_bits_[0] &= ~0x00000400u; + } + unknownavatarmessage_ = unknownavatarmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.unknownAvatarMessage) } // optional .PlayerListMessage playerListMessage = 13; +inline bool PokerTHMessage::_internal_has_playerlistmessage() const { + bool value = (_has_bits_[0] & 0x00000800u) != 0; + PROTOBUF_ASSUME(!value || playerlistmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_playerlistmessage() const { - return (_has_bits_[0] & 0x00001000u) != 0; -} -inline void PokerTHMessage::set_has_playerlistmessage() { - _has_bits_[0] |= 0x00001000u; -} -inline void PokerTHMessage::clear_has_playerlistmessage() { - _has_bits_[0] &= ~0x00001000u; + return _internal_has_playerlistmessage(); } inline void PokerTHMessage::clear_playerlistmessage() { - if (playerlistmessage_ != NULL) playerlistmessage_->::PlayerListMessage::Clear(); - clear_has_playerlistmessage(); + if (playerlistmessage_ != nullptr) playerlistmessage_->Clear(); + _has_bits_[0] &= ~0x00000800u; +} +inline const ::PlayerListMessage& PokerTHMessage::_internal_playerlistmessage() const { + const ::PlayerListMessage* p = playerlistmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_PlayerListMessage_default_instance_); } inline const ::PlayerListMessage& PokerTHMessage::playerlistmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return playerlistmessage_ != NULL ? *playerlistmessage_ : *default_instance().playerlistmessage_; -#else - return playerlistmessage_ != NULL ? *playerlistmessage_ : *default_instance_->playerlistmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.playerListMessage) + return _internal_playerlistmessage(); } -inline ::PlayerListMessage* PokerTHMessage::mutable_playerlistmessage() { - set_has_playerlistmessage(); - if (playerlistmessage_ == NULL) playerlistmessage_ = new ::PlayerListMessage; - return playerlistmessage_; -} -inline ::PlayerListMessage* PokerTHMessage::release_playerlistmessage() { - clear_has_playerlistmessage(); - ::PlayerListMessage* temp = playerlistmessage_; - playerlistmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_playerlistmessage(::PlayerListMessage* playerlistmessage) { - delete playerlistmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_playerlistmessage( + ::PlayerListMessage* playerlistmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(playerlistmessage_); + } playerlistmessage_ = playerlistmessage; if (playerlistmessage) { - set_has_playerlistmessage(); + _has_bits_[0] |= 0x00000800u; } else { - clear_has_playerlistmessage(); + _has_bits_[0] &= ~0x00000800u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.playerListMessage) +} +inline ::PlayerListMessage* PokerTHMessage::release_playerlistmessage() { + auto temp = unsafe_arena_release_playerlistmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::PlayerListMessage* PokerTHMessage::unsafe_arena_release_playerlistmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.playerListMessage) + _has_bits_[0] &= ~0x00000800u; + ::PlayerListMessage* temp = playerlistmessage_; + playerlistmessage_ = nullptr; + return temp; +} +inline ::PlayerListMessage* PokerTHMessage::_internal_mutable_playerlistmessage() { + _has_bits_[0] |= 0x00000800u; + if (playerlistmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::PlayerListMessage>(GetArena()); + playerlistmessage_ = p; + } + return playerlistmessage_; +} +inline ::PlayerListMessage* PokerTHMessage::mutable_playerlistmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.playerListMessage) + return _internal_mutable_playerlistmessage(); +} +inline void PokerTHMessage::set_allocated_playerlistmessage(::PlayerListMessage* playerlistmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete playerlistmessage_; + } + if (playerlistmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(playerlistmessage); + if (message_arena != submessage_arena) { + playerlistmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, playerlistmessage, submessage_arena); + } + _has_bits_[0] |= 0x00000800u; + } else { + _has_bits_[0] &= ~0x00000800u; + } + playerlistmessage_ = playerlistmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.playerListMessage) } // optional .GameListNewMessage gameListNewMessage = 14; +inline bool PokerTHMessage::_internal_has_gamelistnewmessage() const { + bool value = (_has_bits_[0] & 0x00001000u) != 0; + PROTOBUF_ASSUME(!value || gamelistnewmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_gamelistnewmessage() const { - return (_has_bits_[0] & 0x00002000u) != 0; -} -inline void PokerTHMessage::set_has_gamelistnewmessage() { - _has_bits_[0] |= 0x00002000u; -} -inline void PokerTHMessage::clear_has_gamelistnewmessage() { - _has_bits_[0] &= ~0x00002000u; + return _internal_has_gamelistnewmessage(); } inline void PokerTHMessage::clear_gamelistnewmessage() { - if (gamelistnewmessage_ != NULL) gamelistnewmessage_->::GameListNewMessage::Clear(); - clear_has_gamelistnewmessage(); + if (gamelistnewmessage_ != nullptr) gamelistnewmessage_->Clear(); + _has_bits_[0] &= ~0x00001000u; +} +inline const ::GameListNewMessage& PokerTHMessage::_internal_gamelistnewmessage() const { + const ::GameListNewMessage* p = gamelistnewmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_GameListNewMessage_default_instance_); } inline const ::GameListNewMessage& PokerTHMessage::gamelistnewmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamelistnewmessage_ != NULL ? *gamelistnewmessage_ : *default_instance().gamelistnewmessage_; -#else - return gamelistnewmessage_ != NULL ? *gamelistnewmessage_ : *default_instance_->gamelistnewmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.gameListNewMessage) + return _internal_gamelistnewmessage(); } -inline ::GameListNewMessage* PokerTHMessage::mutable_gamelistnewmessage() { - set_has_gamelistnewmessage(); - if (gamelistnewmessage_ == NULL) gamelistnewmessage_ = new ::GameListNewMessage; - return gamelistnewmessage_; -} -inline ::GameListNewMessage* PokerTHMessage::release_gamelistnewmessage() { - clear_has_gamelistnewmessage(); - ::GameListNewMessage* temp = gamelistnewmessage_; - gamelistnewmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_gamelistnewmessage(::GameListNewMessage* gamelistnewmessage) { - delete gamelistnewmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_gamelistnewmessage( + ::GameListNewMessage* gamelistnewmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(gamelistnewmessage_); + } gamelistnewmessage_ = gamelistnewmessage; if (gamelistnewmessage) { - set_has_gamelistnewmessage(); + _has_bits_[0] |= 0x00001000u; } else { - clear_has_gamelistnewmessage(); + _has_bits_[0] &= ~0x00001000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.gameListNewMessage) +} +inline ::GameListNewMessage* PokerTHMessage::release_gamelistnewmessage() { + auto temp = unsafe_arena_release_gamelistnewmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::GameListNewMessage* PokerTHMessage::unsafe_arena_release_gamelistnewmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.gameListNewMessage) + _has_bits_[0] &= ~0x00001000u; + ::GameListNewMessage* temp = gamelistnewmessage_; + gamelistnewmessage_ = nullptr; + return temp; +} +inline ::GameListNewMessage* PokerTHMessage::_internal_mutable_gamelistnewmessage() { + _has_bits_[0] |= 0x00001000u; + if (gamelistnewmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameListNewMessage>(GetArena()); + gamelistnewmessage_ = p; + } + return gamelistnewmessage_; +} +inline ::GameListNewMessage* PokerTHMessage::mutable_gamelistnewmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListNewMessage) + return _internal_mutable_gamelistnewmessage(); +} +inline void PokerTHMessage::set_allocated_gamelistnewmessage(::GameListNewMessage* gamelistnewmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete gamelistnewmessage_; + } + if (gamelistnewmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(gamelistnewmessage); + if (message_arena != submessage_arena) { + gamelistnewmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, gamelistnewmessage, submessage_arena); + } + _has_bits_[0] |= 0x00001000u; + } else { + _has_bits_[0] &= ~0x00001000u; + } + gamelistnewmessage_ = gamelistnewmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.gameListNewMessage) } // optional .GameListUpdateMessage gameListUpdateMessage = 15; +inline bool PokerTHMessage::_internal_has_gamelistupdatemessage() const { + bool value = (_has_bits_[0] & 0x00002000u) != 0; + PROTOBUF_ASSUME(!value || gamelistupdatemessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_gamelistupdatemessage() const { - return (_has_bits_[0] & 0x00004000u) != 0; -} -inline void PokerTHMessage::set_has_gamelistupdatemessage() { - _has_bits_[0] |= 0x00004000u; -} -inline void PokerTHMessage::clear_has_gamelistupdatemessage() { - _has_bits_[0] &= ~0x00004000u; + return _internal_has_gamelistupdatemessage(); } inline void PokerTHMessage::clear_gamelistupdatemessage() { - if (gamelistupdatemessage_ != NULL) gamelistupdatemessage_->::GameListUpdateMessage::Clear(); - clear_has_gamelistupdatemessage(); + if (gamelistupdatemessage_ != nullptr) gamelistupdatemessage_->Clear(); + _has_bits_[0] &= ~0x00002000u; +} +inline const ::GameListUpdateMessage& PokerTHMessage::_internal_gamelistupdatemessage() const { + const ::GameListUpdateMessage* p = gamelistupdatemessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_GameListUpdateMessage_default_instance_); } inline const ::GameListUpdateMessage& PokerTHMessage::gamelistupdatemessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamelistupdatemessage_ != NULL ? *gamelistupdatemessage_ : *default_instance().gamelistupdatemessage_; -#else - return gamelistupdatemessage_ != NULL ? *gamelistupdatemessage_ : *default_instance_->gamelistupdatemessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.gameListUpdateMessage) + return _internal_gamelistupdatemessage(); } -inline ::GameListUpdateMessage* PokerTHMessage::mutable_gamelistupdatemessage() { - set_has_gamelistupdatemessage(); - if (gamelistupdatemessage_ == NULL) gamelistupdatemessage_ = new ::GameListUpdateMessage; - return gamelistupdatemessage_; -} -inline ::GameListUpdateMessage* PokerTHMessage::release_gamelistupdatemessage() { - clear_has_gamelistupdatemessage(); - ::GameListUpdateMessage* temp = gamelistupdatemessage_; - gamelistupdatemessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_gamelistupdatemessage(::GameListUpdateMessage* gamelistupdatemessage) { - delete gamelistupdatemessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_gamelistupdatemessage( + ::GameListUpdateMessage* gamelistupdatemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(gamelistupdatemessage_); + } gamelistupdatemessage_ = gamelistupdatemessage; if (gamelistupdatemessage) { - set_has_gamelistupdatemessage(); + _has_bits_[0] |= 0x00002000u; } else { - clear_has_gamelistupdatemessage(); + _has_bits_[0] &= ~0x00002000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.gameListUpdateMessage) +} +inline ::GameListUpdateMessage* PokerTHMessage::release_gamelistupdatemessage() { + auto temp = unsafe_arena_release_gamelistupdatemessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::GameListUpdateMessage* PokerTHMessage::unsafe_arena_release_gamelistupdatemessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.gameListUpdateMessage) + _has_bits_[0] &= ~0x00002000u; + ::GameListUpdateMessage* temp = gamelistupdatemessage_; + gamelistupdatemessage_ = nullptr; + return temp; +} +inline ::GameListUpdateMessage* PokerTHMessage::_internal_mutable_gamelistupdatemessage() { + _has_bits_[0] |= 0x00002000u; + if (gamelistupdatemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameListUpdateMessage>(GetArena()); + gamelistupdatemessage_ = p; + } + return gamelistupdatemessage_; +} +inline ::GameListUpdateMessage* PokerTHMessage::mutable_gamelistupdatemessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListUpdateMessage) + return _internal_mutable_gamelistupdatemessage(); +} +inline void PokerTHMessage::set_allocated_gamelistupdatemessage(::GameListUpdateMessage* gamelistupdatemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete gamelistupdatemessage_; + } + if (gamelistupdatemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(gamelistupdatemessage); + if (message_arena != submessage_arena) { + gamelistupdatemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, gamelistupdatemessage, submessage_arena); + } + _has_bits_[0] |= 0x00002000u; + } else { + _has_bits_[0] &= ~0x00002000u; + } + gamelistupdatemessage_ = gamelistupdatemessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.gameListUpdateMessage) } // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; +inline bool PokerTHMessage::_internal_has_gamelistplayerjoinedmessage() const { + bool value = (_has_bits_[0] & 0x00004000u) != 0; + PROTOBUF_ASSUME(!value || gamelistplayerjoinedmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_gamelistplayerjoinedmessage() const { - return (_has_bits_[0] & 0x00008000u) != 0; -} -inline void PokerTHMessage::set_has_gamelistplayerjoinedmessage() { - _has_bits_[0] |= 0x00008000u; -} -inline void PokerTHMessage::clear_has_gamelistplayerjoinedmessage() { - _has_bits_[0] &= ~0x00008000u; + return _internal_has_gamelistplayerjoinedmessage(); } inline void PokerTHMessage::clear_gamelistplayerjoinedmessage() { - if (gamelistplayerjoinedmessage_ != NULL) gamelistplayerjoinedmessage_->::GameListPlayerJoinedMessage::Clear(); - clear_has_gamelistplayerjoinedmessage(); + if (gamelistplayerjoinedmessage_ != nullptr) gamelistplayerjoinedmessage_->Clear(); + _has_bits_[0] &= ~0x00004000u; +} +inline const ::GameListPlayerJoinedMessage& PokerTHMessage::_internal_gamelistplayerjoinedmessage() const { + const ::GameListPlayerJoinedMessage* p = gamelistplayerjoinedmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_GameListPlayerJoinedMessage_default_instance_); } inline const ::GameListPlayerJoinedMessage& PokerTHMessage::gamelistplayerjoinedmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamelistplayerjoinedmessage_ != NULL ? *gamelistplayerjoinedmessage_ : *default_instance().gamelistplayerjoinedmessage_; -#else - return gamelistplayerjoinedmessage_ != NULL ? *gamelistplayerjoinedmessage_ : *default_instance_->gamelistplayerjoinedmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.gameListPlayerJoinedMessage) + return _internal_gamelistplayerjoinedmessage(); } -inline ::GameListPlayerJoinedMessage* PokerTHMessage::mutable_gamelistplayerjoinedmessage() { - set_has_gamelistplayerjoinedmessage(); - if (gamelistplayerjoinedmessage_ == NULL) gamelistplayerjoinedmessage_ = new ::GameListPlayerJoinedMessage; - return gamelistplayerjoinedmessage_; -} -inline ::GameListPlayerJoinedMessage* PokerTHMessage::release_gamelistplayerjoinedmessage() { - clear_has_gamelistplayerjoinedmessage(); - ::GameListPlayerJoinedMessage* temp = gamelistplayerjoinedmessage_; - gamelistplayerjoinedmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_gamelistplayerjoinedmessage(::GameListPlayerJoinedMessage* gamelistplayerjoinedmessage) { - delete gamelistplayerjoinedmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_gamelistplayerjoinedmessage( + ::GameListPlayerJoinedMessage* gamelistplayerjoinedmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(gamelistplayerjoinedmessage_); + } gamelistplayerjoinedmessage_ = gamelistplayerjoinedmessage; if (gamelistplayerjoinedmessage) { - set_has_gamelistplayerjoinedmessage(); + _has_bits_[0] |= 0x00004000u; } else { - clear_has_gamelistplayerjoinedmessage(); + _has_bits_[0] &= ~0x00004000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.gameListPlayerJoinedMessage) +} +inline ::GameListPlayerJoinedMessage* PokerTHMessage::release_gamelistplayerjoinedmessage() { + auto temp = unsafe_arena_release_gamelistplayerjoinedmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::GameListPlayerJoinedMessage* PokerTHMessage::unsafe_arena_release_gamelistplayerjoinedmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.gameListPlayerJoinedMessage) + _has_bits_[0] &= ~0x00004000u; + ::GameListPlayerJoinedMessage* temp = gamelistplayerjoinedmessage_; + gamelistplayerjoinedmessage_ = nullptr; + return temp; +} +inline ::GameListPlayerJoinedMessage* PokerTHMessage::_internal_mutable_gamelistplayerjoinedmessage() { + _has_bits_[0] |= 0x00004000u; + if (gamelistplayerjoinedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameListPlayerJoinedMessage>(GetArena()); + gamelistplayerjoinedmessage_ = p; + } + return gamelistplayerjoinedmessage_; +} +inline ::GameListPlayerJoinedMessage* PokerTHMessage::mutable_gamelistplayerjoinedmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListPlayerJoinedMessage) + return _internal_mutable_gamelistplayerjoinedmessage(); +} +inline void PokerTHMessage::set_allocated_gamelistplayerjoinedmessage(::GameListPlayerJoinedMessage* gamelistplayerjoinedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete gamelistplayerjoinedmessage_; + } + if (gamelistplayerjoinedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(gamelistplayerjoinedmessage); + if (message_arena != submessage_arena) { + gamelistplayerjoinedmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, gamelistplayerjoinedmessage, submessage_arena); + } + _has_bits_[0] |= 0x00004000u; + } else { + _has_bits_[0] &= ~0x00004000u; + } + gamelistplayerjoinedmessage_ = gamelistplayerjoinedmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.gameListPlayerJoinedMessage) } // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; +inline bool PokerTHMessage::_internal_has_gamelistplayerleftmessage() const { + bool value = (_has_bits_[0] & 0x00008000u) != 0; + PROTOBUF_ASSUME(!value || gamelistplayerleftmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_gamelistplayerleftmessage() const { - return (_has_bits_[0] & 0x00010000u) != 0; -} -inline void PokerTHMessage::set_has_gamelistplayerleftmessage() { - _has_bits_[0] |= 0x00010000u; -} -inline void PokerTHMessage::clear_has_gamelistplayerleftmessage() { - _has_bits_[0] &= ~0x00010000u; + return _internal_has_gamelistplayerleftmessage(); } inline void PokerTHMessage::clear_gamelistplayerleftmessage() { - if (gamelistplayerleftmessage_ != NULL) gamelistplayerleftmessage_->::GameListPlayerLeftMessage::Clear(); - clear_has_gamelistplayerleftmessage(); + if (gamelistplayerleftmessage_ != nullptr) gamelistplayerleftmessage_->Clear(); + _has_bits_[0] &= ~0x00008000u; +} +inline const ::GameListPlayerLeftMessage& PokerTHMessage::_internal_gamelistplayerleftmessage() const { + const ::GameListPlayerLeftMessage* p = gamelistplayerleftmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_GameListPlayerLeftMessage_default_instance_); } inline const ::GameListPlayerLeftMessage& PokerTHMessage::gamelistplayerleftmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamelistplayerleftmessage_ != NULL ? *gamelistplayerleftmessage_ : *default_instance().gamelistplayerleftmessage_; -#else - return gamelistplayerleftmessage_ != NULL ? *gamelistplayerleftmessage_ : *default_instance_->gamelistplayerleftmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.gameListPlayerLeftMessage) + return _internal_gamelistplayerleftmessage(); } -inline ::GameListPlayerLeftMessage* PokerTHMessage::mutable_gamelistplayerleftmessage() { - set_has_gamelistplayerleftmessage(); - if (gamelistplayerleftmessage_ == NULL) gamelistplayerleftmessage_ = new ::GameListPlayerLeftMessage; - return gamelistplayerleftmessage_; -} -inline ::GameListPlayerLeftMessage* PokerTHMessage::release_gamelistplayerleftmessage() { - clear_has_gamelistplayerleftmessage(); - ::GameListPlayerLeftMessage* temp = gamelistplayerleftmessage_; - gamelistplayerleftmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_gamelistplayerleftmessage(::GameListPlayerLeftMessage* gamelistplayerleftmessage) { - delete gamelistplayerleftmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_gamelistplayerleftmessage( + ::GameListPlayerLeftMessage* gamelistplayerleftmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(gamelistplayerleftmessage_); + } gamelistplayerleftmessage_ = gamelistplayerleftmessage; if (gamelistplayerleftmessage) { - set_has_gamelistplayerleftmessage(); + _has_bits_[0] |= 0x00008000u; } else { - clear_has_gamelistplayerleftmessage(); + _has_bits_[0] &= ~0x00008000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.gameListPlayerLeftMessage) +} +inline ::GameListPlayerLeftMessage* PokerTHMessage::release_gamelistplayerleftmessage() { + auto temp = unsafe_arena_release_gamelistplayerleftmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::GameListPlayerLeftMessage* PokerTHMessage::unsafe_arena_release_gamelistplayerleftmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.gameListPlayerLeftMessage) + _has_bits_[0] &= ~0x00008000u; + ::GameListPlayerLeftMessage* temp = gamelistplayerleftmessage_; + gamelistplayerleftmessage_ = nullptr; + return temp; +} +inline ::GameListPlayerLeftMessage* PokerTHMessage::_internal_mutable_gamelistplayerleftmessage() { + _has_bits_[0] |= 0x00008000u; + if (gamelistplayerleftmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameListPlayerLeftMessage>(GetArena()); + gamelistplayerleftmessage_ = p; + } + return gamelistplayerleftmessage_; +} +inline ::GameListPlayerLeftMessage* PokerTHMessage::mutable_gamelistplayerleftmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListPlayerLeftMessage) + return _internal_mutable_gamelistplayerleftmessage(); +} +inline void PokerTHMessage::set_allocated_gamelistplayerleftmessage(::GameListPlayerLeftMessage* gamelistplayerleftmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete gamelistplayerleftmessage_; + } + if (gamelistplayerleftmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(gamelistplayerleftmessage); + if (message_arena != submessage_arena) { + gamelistplayerleftmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, gamelistplayerleftmessage, submessage_arena); + } + _has_bits_[0] |= 0x00008000u; + } else { + _has_bits_[0] &= ~0x00008000u; + } + gamelistplayerleftmessage_ = gamelistplayerleftmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.gameListPlayerLeftMessage) } // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; +inline bool PokerTHMessage::_internal_has_gamelistadminchangedmessage() const { + bool value = (_has_bits_[0] & 0x00010000u) != 0; + PROTOBUF_ASSUME(!value || gamelistadminchangedmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_gamelistadminchangedmessage() const { - return (_has_bits_[0] & 0x00020000u) != 0; -} -inline void PokerTHMessage::set_has_gamelistadminchangedmessage() { - _has_bits_[0] |= 0x00020000u; -} -inline void PokerTHMessage::clear_has_gamelistadminchangedmessage() { - _has_bits_[0] &= ~0x00020000u; + return _internal_has_gamelistadminchangedmessage(); } inline void PokerTHMessage::clear_gamelistadminchangedmessage() { - if (gamelistadminchangedmessage_ != NULL) gamelistadminchangedmessage_->::GameListAdminChangedMessage::Clear(); - clear_has_gamelistadminchangedmessage(); + if (gamelistadminchangedmessage_ != nullptr) gamelistadminchangedmessage_->Clear(); + _has_bits_[0] &= ~0x00010000u; +} +inline const ::GameListAdminChangedMessage& PokerTHMessage::_internal_gamelistadminchangedmessage() const { + const ::GameListAdminChangedMessage* p = gamelistadminchangedmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_GameListAdminChangedMessage_default_instance_); } inline const ::GameListAdminChangedMessage& PokerTHMessage::gamelistadminchangedmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamelistadminchangedmessage_ != NULL ? *gamelistadminchangedmessage_ : *default_instance().gamelistadminchangedmessage_; -#else - return gamelistadminchangedmessage_ != NULL ? *gamelistadminchangedmessage_ : *default_instance_->gamelistadminchangedmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.gameListAdminChangedMessage) + return _internal_gamelistadminchangedmessage(); } -inline ::GameListAdminChangedMessage* PokerTHMessage::mutable_gamelistadminchangedmessage() { - set_has_gamelistadminchangedmessage(); - if (gamelistadminchangedmessage_ == NULL) gamelistadminchangedmessage_ = new ::GameListAdminChangedMessage; - return gamelistadminchangedmessage_; -} -inline ::GameListAdminChangedMessage* PokerTHMessage::release_gamelistadminchangedmessage() { - clear_has_gamelistadminchangedmessage(); - ::GameListAdminChangedMessage* temp = gamelistadminchangedmessage_; - gamelistadminchangedmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_gamelistadminchangedmessage(::GameListAdminChangedMessage* gamelistadminchangedmessage) { - delete gamelistadminchangedmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_gamelistadminchangedmessage( + ::GameListAdminChangedMessage* gamelistadminchangedmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(gamelistadminchangedmessage_); + } gamelistadminchangedmessage_ = gamelistadminchangedmessage; if (gamelistadminchangedmessage) { - set_has_gamelistadminchangedmessage(); + _has_bits_[0] |= 0x00010000u; } else { - clear_has_gamelistadminchangedmessage(); + _has_bits_[0] &= ~0x00010000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.gameListAdminChangedMessage) +} +inline ::GameListAdminChangedMessage* PokerTHMessage::release_gamelistadminchangedmessage() { + auto temp = unsafe_arena_release_gamelistadminchangedmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::GameListAdminChangedMessage* PokerTHMessage::unsafe_arena_release_gamelistadminchangedmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.gameListAdminChangedMessage) + _has_bits_[0] &= ~0x00010000u; + ::GameListAdminChangedMessage* temp = gamelistadminchangedmessage_; + gamelistadminchangedmessage_ = nullptr; + return temp; +} +inline ::GameListAdminChangedMessage* PokerTHMessage::_internal_mutable_gamelistadminchangedmessage() { + _has_bits_[0] |= 0x00010000u; + if (gamelistadminchangedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameListAdminChangedMessage>(GetArena()); + gamelistadminchangedmessage_ = p; + } + return gamelistadminchangedmessage_; +} +inline ::GameListAdminChangedMessage* PokerTHMessage::mutable_gamelistadminchangedmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListAdminChangedMessage) + return _internal_mutable_gamelistadminchangedmessage(); +} +inline void PokerTHMessage::set_allocated_gamelistadminchangedmessage(::GameListAdminChangedMessage* gamelistadminchangedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete gamelistadminchangedmessage_; + } + if (gamelistadminchangedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(gamelistadminchangedmessage); + if (message_arena != submessage_arena) { + gamelistadminchangedmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, gamelistadminchangedmessage, submessage_arena); + } + _has_bits_[0] |= 0x00010000u; + } else { + _has_bits_[0] &= ~0x00010000u; + } + gamelistadminchangedmessage_ = gamelistadminchangedmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.gameListAdminChangedMessage) } // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; +inline bool PokerTHMessage::_internal_has_playerinforequestmessage() const { + bool value = (_has_bits_[0] & 0x00020000u) != 0; + PROTOBUF_ASSUME(!value || playerinforequestmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_playerinforequestmessage() const { - return (_has_bits_[0] & 0x00040000u) != 0; -} -inline void PokerTHMessage::set_has_playerinforequestmessage() { - _has_bits_[0] |= 0x00040000u; -} -inline void PokerTHMessage::clear_has_playerinforequestmessage() { - _has_bits_[0] &= ~0x00040000u; + return _internal_has_playerinforequestmessage(); } inline void PokerTHMessage::clear_playerinforequestmessage() { - if (playerinforequestmessage_ != NULL) playerinforequestmessage_->::PlayerInfoRequestMessage::Clear(); - clear_has_playerinforequestmessage(); + if (playerinforequestmessage_ != nullptr) playerinforequestmessage_->Clear(); + _has_bits_[0] &= ~0x00020000u; +} +inline const ::PlayerInfoRequestMessage& PokerTHMessage::_internal_playerinforequestmessage() const { + const ::PlayerInfoRequestMessage* p = playerinforequestmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_PlayerInfoRequestMessage_default_instance_); } inline const ::PlayerInfoRequestMessage& PokerTHMessage::playerinforequestmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return playerinforequestmessage_ != NULL ? *playerinforequestmessage_ : *default_instance().playerinforequestmessage_; -#else - return playerinforequestmessage_ != NULL ? *playerinforequestmessage_ : *default_instance_->playerinforequestmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.playerInfoRequestMessage) + return _internal_playerinforequestmessage(); } -inline ::PlayerInfoRequestMessage* PokerTHMessage::mutable_playerinforequestmessage() { - set_has_playerinforequestmessage(); - if (playerinforequestmessage_ == NULL) playerinforequestmessage_ = new ::PlayerInfoRequestMessage; - return playerinforequestmessage_; -} -inline ::PlayerInfoRequestMessage* PokerTHMessage::release_playerinforequestmessage() { - clear_has_playerinforequestmessage(); - ::PlayerInfoRequestMessage* temp = playerinforequestmessage_; - playerinforequestmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_playerinforequestmessage(::PlayerInfoRequestMessage* playerinforequestmessage) { - delete playerinforequestmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_playerinforequestmessage( + ::PlayerInfoRequestMessage* playerinforequestmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(playerinforequestmessage_); + } playerinforequestmessage_ = playerinforequestmessage; if (playerinforequestmessage) { - set_has_playerinforequestmessage(); + _has_bits_[0] |= 0x00020000u; } else { - clear_has_playerinforequestmessage(); + _has_bits_[0] &= ~0x00020000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.playerInfoRequestMessage) +} +inline ::PlayerInfoRequestMessage* PokerTHMessage::release_playerinforequestmessage() { + auto temp = unsafe_arena_release_playerinforequestmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::PlayerInfoRequestMessage* PokerTHMessage::unsafe_arena_release_playerinforequestmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.playerInfoRequestMessage) + _has_bits_[0] &= ~0x00020000u; + ::PlayerInfoRequestMessage* temp = playerinforequestmessage_; + playerinforequestmessage_ = nullptr; + return temp; +} +inline ::PlayerInfoRequestMessage* PokerTHMessage::_internal_mutable_playerinforequestmessage() { + _has_bits_[0] |= 0x00020000u; + if (playerinforequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::PlayerInfoRequestMessage>(GetArena()); + playerinforequestmessage_ = p; + } + return playerinforequestmessage_; +} +inline ::PlayerInfoRequestMessage* PokerTHMessage::mutable_playerinforequestmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.playerInfoRequestMessage) + return _internal_mutable_playerinforequestmessage(); +} +inline void PokerTHMessage::set_allocated_playerinforequestmessage(::PlayerInfoRequestMessage* playerinforequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete playerinforequestmessage_; + } + if (playerinforequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(playerinforequestmessage); + if (message_arena != submessage_arena) { + playerinforequestmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, playerinforequestmessage, submessage_arena); + } + _has_bits_[0] |= 0x00020000u; + } else { + _has_bits_[0] &= ~0x00020000u; + } + playerinforequestmessage_ = playerinforequestmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.playerInfoRequestMessage) } // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; +inline bool PokerTHMessage::_internal_has_playerinforeplymessage() const { + bool value = (_has_bits_[0] & 0x00040000u) != 0; + PROTOBUF_ASSUME(!value || playerinforeplymessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_playerinforeplymessage() const { - return (_has_bits_[0] & 0x00080000u) != 0; -} -inline void PokerTHMessage::set_has_playerinforeplymessage() { - _has_bits_[0] |= 0x00080000u; -} -inline void PokerTHMessage::clear_has_playerinforeplymessage() { - _has_bits_[0] &= ~0x00080000u; + return _internal_has_playerinforeplymessage(); } inline void PokerTHMessage::clear_playerinforeplymessage() { - if (playerinforeplymessage_ != NULL) playerinforeplymessage_->::PlayerInfoReplyMessage::Clear(); - clear_has_playerinforeplymessage(); + if (playerinforeplymessage_ != nullptr) playerinforeplymessage_->Clear(); + _has_bits_[0] &= ~0x00040000u; +} +inline const ::PlayerInfoReplyMessage& PokerTHMessage::_internal_playerinforeplymessage() const { + const ::PlayerInfoReplyMessage* p = playerinforeplymessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_PlayerInfoReplyMessage_default_instance_); } inline const ::PlayerInfoReplyMessage& PokerTHMessage::playerinforeplymessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return playerinforeplymessage_ != NULL ? *playerinforeplymessage_ : *default_instance().playerinforeplymessage_; -#else - return playerinforeplymessage_ != NULL ? *playerinforeplymessage_ : *default_instance_->playerinforeplymessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.playerInfoReplyMessage) + return _internal_playerinforeplymessage(); } -inline ::PlayerInfoReplyMessage* PokerTHMessage::mutable_playerinforeplymessage() { - set_has_playerinforeplymessage(); - if (playerinforeplymessage_ == NULL) playerinforeplymessage_ = new ::PlayerInfoReplyMessage; - return playerinforeplymessage_; -} -inline ::PlayerInfoReplyMessage* PokerTHMessage::release_playerinforeplymessage() { - clear_has_playerinforeplymessage(); - ::PlayerInfoReplyMessage* temp = playerinforeplymessage_; - playerinforeplymessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_playerinforeplymessage(::PlayerInfoReplyMessage* playerinforeplymessage) { - delete playerinforeplymessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_playerinforeplymessage( + ::PlayerInfoReplyMessage* playerinforeplymessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(playerinforeplymessage_); + } playerinforeplymessage_ = playerinforeplymessage; if (playerinforeplymessage) { - set_has_playerinforeplymessage(); + _has_bits_[0] |= 0x00040000u; } else { - clear_has_playerinforeplymessage(); + _has_bits_[0] &= ~0x00040000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.playerInfoReplyMessage) +} +inline ::PlayerInfoReplyMessage* PokerTHMessage::release_playerinforeplymessage() { + auto temp = unsafe_arena_release_playerinforeplymessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::PlayerInfoReplyMessage* PokerTHMessage::unsafe_arena_release_playerinforeplymessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.playerInfoReplyMessage) + _has_bits_[0] &= ~0x00040000u; + ::PlayerInfoReplyMessage* temp = playerinforeplymessage_; + playerinforeplymessage_ = nullptr; + return temp; +} +inline ::PlayerInfoReplyMessage* PokerTHMessage::_internal_mutable_playerinforeplymessage() { + _has_bits_[0] |= 0x00040000u; + if (playerinforeplymessage_ == nullptr) { + auto* p = CreateMaybeMessage<::PlayerInfoReplyMessage>(GetArena()); + playerinforeplymessage_ = p; + } + return playerinforeplymessage_; +} +inline ::PlayerInfoReplyMessage* PokerTHMessage::mutable_playerinforeplymessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.playerInfoReplyMessage) + return _internal_mutable_playerinforeplymessage(); +} +inline void PokerTHMessage::set_allocated_playerinforeplymessage(::PlayerInfoReplyMessage* playerinforeplymessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete playerinforeplymessage_; + } + if (playerinforeplymessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(playerinforeplymessage); + if (message_arena != submessage_arena) { + playerinforeplymessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, playerinforeplymessage, submessage_arena); + } + _has_bits_[0] |= 0x00040000u; + } else { + _has_bits_[0] &= ~0x00040000u; + } + playerinforeplymessage_ = playerinforeplymessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.playerInfoReplyMessage) } // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; +inline bool PokerTHMessage::_internal_has_subscriptionrequestmessage() const { + bool value = (_has_bits_[0] & 0x00080000u) != 0; + PROTOBUF_ASSUME(!value || subscriptionrequestmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_subscriptionrequestmessage() const { - return (_has_bits_[0] & 0x00100000u) != 0; -} -inline void PokerTHMessage::set_has_subscriptionrequestmessage() { - _has_bits_[0] |= 0x00100000u; -} -inline void PokerTHMessage::clear_has_subscriptionrequestmessage() { - _has_bits_[0] &= ~0x00100000u; + return _internal_has_subscriptionrequestmessage(); } inline void PokerTHMessage::clear_subscriptionrequestmessage() { - if (subscriptionrequestmessage_ != NULL) subscriptionrequestmessage_->::SubscriptionRequestMessage::Clear(); - clear_has_subscriptionrequestmessage(); + if (subscriptionrequestmessage_ != nullptr) subscriptionrequestmessage_->Clear(); + _has_bits_[0] &= ~0x00080000u; +} +inline const ::SubscriptionRequestMessage& PokerTHMessage::_internal_subscriptionrequestmessage() const { + const ::SubscriptionRequestMessage* p = subscriptionrequestmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_SubscriptionRequestMessage_default_instance_); } inline const ::SubscriptionRequestMessage& PokerTHMessage::subscriptionrequestmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return subscriptionrequestmessage_ != NULL ? *subscriptionrequestmessage_ : *default_instance().subscriptionrequestmessage_; -#else - return subscriptionrequestmessage_ != NULL ? *subscriptionrequestmessage_ : *default_instance_->subscriptionrequestmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.subscriptionRequestMessage) + return _internal_subscriptionrequestmessage(); } -inline ::SubscriptionRequestMessage* PokerTHMessage::mutable_subscriptionrequestmessage() { - set_has_subscriptionrequestmessage(); - if (subscriptionrequestmessage_ == NULL) subscriptionrequestmessage_ = new ::SubscriptionRequestMessage; - return subscriptionrequestmessage_; -} -inline ::SubscriptionRequestMessage* PokerTHMessage::release_subscriptionrequestmessage() { - clear_has_subscriptionrequestmessage(); - ::SubscriptionRequestMessage* temp = subscriptionrequestmessage_; - subscriptionrequestmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_subscriptionrequestmessage(::SubscriptionRequestMessage* subscriptionrequestmessage) { - delete subscriptionrequestmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_subscriptionrequestmessage( + ::SubscriptionRequestMessage* subscriptionrequestmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(subscriptionrequestmessage_); + } subscriptionrequestmessage_ = subscriptionrequestmessage; if (subscriptionrequestmessage) { - set_has_subscriptionrequestmessage(); + _has_bits_[0] |= 0x00080000u; } else { - clear_has_subscriptionrequestmessage(); + _has_bits_[0] &= ~0x00080000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.subscriptionRequestMessage) +} +inline ::SubscriptionRequestMessage* PokerTHMessage::release_subscriptionrequestmessage() { + auto temp = unsafe_arena_release_subscriptionrequestmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::SubscriptionRequestMessage* PokerTHMessage::unsafe_arena_release_subscriptionrequestmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.subscriptionRequestMessage) + _has_bits_[0] &= ~0x00080000u; + ::SubscriptionRequestMessage* temp = subscriptionrequestmessage_; + subscriptionrequestmessage_ = nullptr; + return temp; +} +inline ::SubscriptionRequestMessage* PokerTHMessage::_internal_mutable_subscriptionrequestmessage() { + _has_bits_[0] |= 0x00080000u; + if (subscriptionrequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::SubscriptionRequestMessage>(GetArena()); + subscriptionrequestmessage_ = p; + } + return subscriptionrequestmessage_; +} +inline ::SubscriptionRequestMessage* PokerTHMessage::mutable_subscriptionrequestmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.subscriptionRequestMessage) + return _internal_mutable_subscriptionrequestmessage(); +} +inline void PokerTHMessage::set_allocated_subscriptionrequestmessage(::SubscriptionRequestMessage* subscriptionrequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete subscriptionrequestmessage_; + } + if (subscriptionrequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(subscriptionrequestmessage); + if (message_arena != submessage_arena) { + subscriptionrequestmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, subscriptionrequestmessage, submessage_arena); + } + _has_bits_[0] |= 0x00080000u; + } else { + _has_bits_[0] &= ~0x00080000u; + } + subscriptionrequestmessage_ = subscriptionrequestmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.subscriptionRequestMessage) } // optional .JoinExistingGameMessage joinExistingGameMessage = 22; +inline bool PokerTHMessage::_internal_has_joinexistinggamemessage() const { + bool value = (_has_bits_[0] & 0x00100000u) != 0; + PROTOBUF_ASSUME(!value || joinexistinggamemessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_joinexistinggamemessage() const { - return (_has_bits_[0] & 0x00200000u) != 0; -} -inline void PokerTHMessage::set_has_joinexistinggamemessage() { - _has_bits_[0] |= 0x00200000u; -} -inline void PokerTHMessage::clear_has_joinexistinggamemessage() { - _has_bits_[0] &= ~0x00200000u; + return _internal_has_joinexistinggamemessage(); } inline void PokerTHMessage::clear_joinexistinggamemessage() { - if (joinexistinggamemessage_ != NULL) joinexistinggamemessage_->::JoinExistingGameMessage::Clear(); - clear_has_joinexistinggamemessage(); + if (joinexistinggamemessage_ != nullptr) joinexistinggamemessage_->Clear(); + _has_bits_[0] &= ~0x00100000u; +} +inline const ::JoinExistingGameMessage& PokerTHMessage::_internal_joinexistinggamemessage() const { + const ::JoinExistingGameMessage* p = joinexistinggamemessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_JoinExistingGameMessage_default_instance_); } inline const ::JoinExistingGameMessage& PokerTHMessage::joinexistinggamemessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return joinexistinggamemessage_ != NULL ? *joinexistinggamemessage_ : *default_instance().joinexistinggamemessage_; -#else - return joinexistinggamemessage_ != NULL ? *joinexistinggamemessage_ : *default_instance_->joinexistinggamemessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.joinExistingGameMessage) + return _internal_joinexistinggamemessage(); } -inline ::JoinExistingGameMessage* PokerTHMessage::mutable_joinexistinggamemessage() { - set_has_joinexistinggamemessage(); - if (joinexistinggamemessage_ == NULL) joinexistinggamemessage_ = new ::JoinExistingGameMessage; - return joinexistinggamemessage_; -} -inline ::JoinExistingGameMessage* PokerTHMessage::release_joinexistinggamemessage() { - clear_has_joinexistinggamemessage(); - ::JoinExistingGameMessage* temp = joinexistinggamemessage_; - joinexistinggamemessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_joinexistinggamemessage(::JoinExistingGameMessage* joinexistinggamemessage) { - delete joinexistinggamemessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_joinexistinggamemessage( + ::JoinExistingGameMessage* joinexistinggamemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(joinexistinggamemessage_); + } joinexistinggamemessage_ = joinexistinggamemessage; if (joinexistinggamemessage) { - set_has_joinexistinggamemessage(); + _has_bits_[0] |= 0x00100000u; } else { - clear_has_joinexistinggamemessage(); + _has_bits_[0] &= ~0x00100000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.joinExistingGameMessage) +} +inline ::JoinExistingGameMessage* PokerTHMessage::release_joinexistinggamemessage() { + auto temp = unsafe_arena_release_joinexistinggamemessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::JoinExistingGameMessage* PokerTHMessage::unsafe_arena_release_joinexistinggamemessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.joinExistingGameMessage) + _has_bits_[0] &= ~0x00100000u; + ::JoinExistingGameMessage* temp = joinexistinggamemessage_; + joinexistinggamemessage_ = nullptr; + return temp; +} +inline ::JoinExistingGameMessage* PokerTHMessage::_internal_mutable_joinexistinggamemessage() { + _has_bits_[0] |= 0x00100000u; + if (joinexistinggamemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::JoinExistingGameMessage>(GetArena()); + joinexistinggamemessage_ = p; + } + return joinexistinggamemessage_; +} +inline ::JoinExistingGameMessage* PokerTHMessage::mutable_joinexistinggamemessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.joinExistingGameMessage) + return _internal_mutable_joinexistinggamemessage(); +} +inline void PokerTHMessage::set_allocated_joinexistinggamemessage(::JoinExistingGameMessage* joinexistinggamemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete joinexistinggamemessage_; + } + if (joinexistinggamemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(joinexistinggamemessage); + if (message_arena != submessage_arena) { + joinexistinggamemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, joinexistinggamemessage, submessage_arena); + } + _has_bits_[0] |= 0x00100000u; + } else { + _has_bits_[0] &= ~0x00100000u; + } + joinexistinggamemessage_ = joinexistinggamemessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.joinExistingGameMessage) } // optional .JoinNewGameMessage joinNewGameMessage = 23; +inline bool PokerTHMessage::_internal_has_joinnewgamemessage() const { + bool value = (_has_bits_[0] & 0x00200000u) != 0; + PROTOBUF_ASSUME(!value || joinnewgamemessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_joinnewgamemessage() const { - return (_has_bits_[0] & 0x00400000u) != 0; -} -inline void PokerTHMessage::set_has_joinnewgamemessage() { - _has_bits_[0] |= 0x00400000u; -} -inline void PokerTHMessage::clear_has_joinnewgamemessage() { - _has_bits_[0] &= ~0x00400000u; + return _internal_has_joinnewgamemessage(); } inline void PokerTHMessage::clear_joinnewgamemessage() { - if (joinnewgamemessage_ != NULL) joinnewgamemessage_->::JoinNewGameMessage::Clear(); - clear_has_joinnewgamemessage(); + if (joinnewgamemessage_ != nullptr) joinnewgamemessage_->Clear(); + _has_bits_[0] &= ~0x00200000u; +} +inline const ::JoinNewGameMessage& PokerTHMessage::_internal_joinnewgamemessage() const { + const ::JoinNewGameMessage* p = joinnewgamemessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_JoinNewGameMessage_default_instance_); } inline const ::JoinNewGameMessage& PokerTHMessage::joinnewgamemessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return joinnewgamemessage_ != NULL ? *joinnewgamemessage_ : *default_instance().joinnewgamemessage_; -#else - return joinnewgamemessage_ != NULL ? *joinnewgamemessage_ : *default_instance_->joinnewgamemessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.joinNewGameMessage) + return _internal_joinnewgamemessage(); } -inline ::JoinNewGameMessage* PokerTHMessage::mutable_joinnewgamemessage() { - set_has_joinnewgamemessage(); - if (joinnewgamemessage_ == NULL) joinnewgamemessage_ = new ::JoinNewGameMessage; - return joinnewgamemessage_; -} -inline ::JoinNewGameMessage* PokerTHMessage::release_joinnewgamemessage() { - clear_has_joinnewgamemessage(); - ::JoinNewGameMessage* temp = joinnewgamemessage_; - joinnewgamemessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_joinnewgamemessage(::JoinNewGameMessage* joinnewgamemessage) { - delete joinnewgamemessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_joinnewgamemessage( + ::JoinNewGameMessage* joinnewgamemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(joinnewgamemessage_); + } joinnewgamemessage_ = joinnewgamemessage; if (joinnewgamemessage) { - set_has_joinnewgamemessage(); + _has_bits_[0] |= 0x00200000u; } else { - clear_has_joinnewgamemessage(); + _has_bits_[0] &= ~0x00200000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.joinNewGameMessage) +} +inline ::JoinNewGameMessage* PokerTHMessage::release_joinnewgamemessage() { + auto temp = unsafe_arena_release_joinnewgamemessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::JoinNewGameMessage* PokerTHMessage::unsafe_arena_release_joinnewgamemessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.joinNewGameMessage) + _has_bits_[0] &= ~0x00200000u; + ::JoinNewGameMessage* temp = joinnewgamemessage_; + joinnewgamemessage_ = nullptr; + return temp; +} +inline ::JoinNewGameMessage* PokerTHMessage::_internal_mutable_joinnewgamemessage() { + _has_bits_[0] |= 0x00200000u; + if (joinnewgamemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::JoinNewGameMessage>(GetArena()); + joinnewgamemessage_ = p; + } + return joinnewgamemessage_; +} +inline ::JoinNewGameMessage* PokerTHMessage::mutable_joinnewgamemessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.joinNewGameMessage) + return _internal_mutable_joinnewgamemessage(); +} +inline void PokerTHMessage::set_allocated_joinnewgamemessage(::JoinNewGameMessage* joinnewgamemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete joinnewgamemessage_; + } + if (joinnewgamemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(joinnewgamemessage); + if (message_arena != submessage_arena) { + joinnewgamemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, joinnewgamemessage, submessage_arena); + } + _has_bits_[0] |= 0x00200000u; + } else { + _has_bits_[0] &= ~0x00200000u; + } + joinnewgamemessage_ = joinnewgamemessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.joinNewGameMessage) } // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; +inline bool PokerTHMessage::_internal_has_rejoinexistinggamemessage() const { + bool value = (_has_bits_[0] & 0x00400000u) != 0; + PROTOBUF_ASSUME(!value || rejoinexistinggamemessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_rejoinexistinggamemessage() const { - return (_has_bits_[0] & 0x00800000u) != 0; -} -inline void PokerTHMessage::set_has_rejoinexistinggamemessage() { - _has_bits_[0] |= 0x00800000u; -} -inline void PokerTHMessage::clear_has_rejoinexistinggamemessage() { - _has_bits_[0] &= ~0x00800000u; + return _internal_has_rejoinexistinggamemessage(); } inline void PokerTHMessage::clear_rejoinexistinggamemessage() { - if (rejoinexistinggamemessage_ != NULL) rejoinexistinggamemessage_->::RejoinExistingGameMessage::Clear(); - clear_has_rejoinexistinggamemessage(); + if (rejoinexistinggamemessage_ != nullptr) rejoinexistinggamemessage_->Clear(); + _has_bits_[0] &= ~0x00400000u; +} +inline const ::RejoinExistingGameMessage& PokerTHMessage::_internal_rejoinexistinggamemessage() const { + const ::RejoinExistingGameMessage* p = rejoinexistinggamemessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_RejoinExistingGameMessage_default_instance_); } inline const ::RejoinExistingGameMessage& PokerTHMessage::rejoinexistinggamemessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return rejoinexistinggamemessage_ != NULL ? *rejoinexistinggamemessage_ : *default_instance().rejoinexistinggamemessage_; -#else - return rejoinexistinggamemessage_ != NULL ? *rejoinexistinggamemessage_ : *default_instance_->rejoinexistinggamemessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.rejoinExistingGameMessage) + return _internal_rejoinexistinggamemessage(); } -inline ::RejoinExistingGameMessage* PokerTHMessage::mutable_rejoinexistinggamemessage() { - set_has_rejoinexistinggamemessage(); - if (rejoinexistinggamemessage_ == NULL) rejoinexistinggamemessage_ = new ::RejoinExistingGameMessage; - return rejoinexistinggamemessage_; -} -inline ::RejoinExistingGameMessage* PokerTHMessage::release_rejoinexistinggamemessage() { - clear_has_rejoinexistinggamemessage(); - ::RejoinExistingGameMessage* temp = rejoinexistinggamemessage_; - rejoinexistinggamemessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_rejoinexistinggamemessage(::RejoinExistingGameMessage* rejoinexistinggamemessage) { - delete rejoinexistinggamemessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_rejoinexistinggamemessage( + ::RejoinExistingGameMessage* rejoinexistinggamemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(rejoinexistinggamemessage_); + } rejoinexistinggamemessage_ = rejoinexistinggamemessage; if (rejoinexistinggamemessage) { - set_has_rejoinexistinggamemessage(); + _has_bits_[0] |= 0x00400000u; } else { - clear_has_rejoinexistinggamemessage(); + _has_bits_[0] &= ~0x00400000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.rejoinExistingGameMessage) +} +inline ::RejoinExistingGameMessage* PokerTHMessage::release_rejoinexistinggamemessage() { + auto temp = unsafe_arena_release_rejoinexistinggamemessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::RejoinExistingGameMessage* PokerTHMessage::unsafe_arena_release_rejoinexistinggamemessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.rejoinExistingGameMessage) + _has_bits_[0] &= ~0x00400000u; + ::RejoinExistingGameMessage* temp = rejoinexistinggamemessage_; + rejoinexistinggamemessage_ = nullptr; + return temp; +} +inline ::RejoinExistingGameMessage* PokerTHMessage::_internal_mutable_rejoinexistinggamemessage() { + _has_bits_[0] |= 0x00400000u; + if (rejoinexistinggamemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::RejoinExistingGameMessage>(GetArena()); + rejoinexistinggamemessage_ = p; + } + return rejoinexistinggamemessage_; +} +inline ::RejoinExistingGameMessage* PokerTHMessage::mutable_rejoinexistinggamemessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.rejoinExistingGameMessage) + return _internal_mutable_rejoinexistinggamemessage(); +} +inline void PokerTHMessage::set_allocated_rejoinexistinggamemessage(::RejoinExistingGameMessage* rejoinexistinggamemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete rejoinexistinggamemessage_; + } + if (rejoinexistinggamemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(rejoinexistinggamemessage); + if (message_arena != submessage_arena) { + rejoinexistinggamemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, rejoinexistinggamemessage, submessage_arena); + } + _has_bits_[0] |= 0x00400000u; + } else { + _has_bits_[0] &= ~0x00400000u; + } + rejoinexistinggamemessage_ = rejoinexistinggamemessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.rejoinExistingGameMessage) } // optional .JoinGameAckMessage joinGameAckMessage = 25; +inline bool PokerTHMessage::_internal_has_joingameackmessage() const { + bool value = (_has_bits_[0] & 0x00800000u) != 0; + PROTOBUF_ASSUME(!value || joingameackmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_joingameackmessage() const { - return (_has_bits_[0] & 0x01000000u) != 0; -} -inline void PokerTHMessage::set_has_joingameackmessage() { - _has_bits_[0] |= 0x01000000u; -} -inline void PokerTHMessage::clear_has_joingameackmessage() { - _has_bits_[0] &= ~0x01000000u; + return _internal_has_joingameackmessage(); } inline void PokerTHMessage::clear_joingameackmessage() { - if (joingameackmessage_ != NULL) joingameackmessage_->::JoinGameAckMessage::Clear(); - clear_has_joingameackmessage(); + if (joingameackmessage_ != nullptr) joingameackmessage_->Clear(); + _has_bits_[0] &= ~0x00800000u; +} +inline const ::JoinGameAckMessage& PokerTHMessage::_internal_joingameackmessage() const { + const ::JoinGameAckMessage* p = joingameackmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_JoinGameAckMessage_default_instance_); } inline const ::JoinGameAckMessage& PokerTHMessage::joingameackmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return joingameackmessage_ != NULL ? *joingameackmessage_ : *default_instance().joingameackmessage_; -#else - return joingameackmessage_ != NULL ? *joingameackmessage_ : *default_instance_->joingameackmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.joinGameAckMessage) + return _internal_joingameackmessage(); } -inline ::JoinGameAckMessage* PokerTHMessage::mutable_joingameackmessage() { - set_has_joingameackmessage(); - if (joingameackmessage_ == NULL) joingameackmessage_ = new ::JoinGameAckMessage; - return joingameackmessage_; -} -inline ::JoinGameAckMessage* PokerTHMessage::release_joingameackmessage() { - clear_has_joingameackmessage(); - ::JoinGameAckMessage* temp = joingameackmessage_; - joingameackmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_joingameackmessage(::JoinGameAckMessage* joingameackmessage) { - delete joingameackmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_joingameackmessage( + ::JoinGameAckMessage* joingameackmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(joingameackmessage_); + } joingameackmessage_ = joingameackmessage; if (joingameackmessage) { - set_has_joingameackmessage(); + _has_bits_[0] |= 0x00800000u; } else { - clear_has_joingameackmessage(); + _has_bits_[0] &= ~0x00800000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.joinGameAckMessage) +} +inline ::JoinGameAckMessage* PokerTHMessage::release_joingameackmessage() { + auto temp = unsafe_arena_release_joingameackmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::JoinGameAckMessage* PokerTHMessage::unsafe_arena_release_joingameackmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.joinGameAckMessage) + _has_bits_[0] &= ~0x00800000u; + ::JoinGameAckMessage* temp = joingameackmessage_; + joingameackmessage_ = nullptr; + return temp; +} +inline ::JoinGameAckMessage* PokerTHMessage::_internal_mutable_joingameackmessage() { + _has_bits_[0] |= 0x00800000u; + if (joingameackmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::JoinGameAckMessage>(GetArena()); + joingameackmessage_ = p; + } + return joingameackmessage_; +} +inline ::JoinGameAckMessage* PokerTHMessage::mutable_joingameackmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.joinGameAckMessage) + return _internal_mutable_joingameackmessage(); +} +inline void PokerTHMessage::set_allocated_joingameackmessage(::JoinGameAckMessage* joingameackmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete joingameackmessage_; + } + if (joingameackmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(joingameackmessage); + if (message_arena != submessage_arena) { + joingameackmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, joingameackmessage, submessage_arena); + } + _has_bits_[0] |= 0x00800000u; + } else { + _has_bits_[0] &= ~0x00800000u; + } + joingameackmessage_ = joingameackmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.joinGameAckMessage) } // optional .JoinGameFailedMessage joinGameFailedMessage = 26; +inline bool PokerTHMessage::_internal_has_joingamefailedmessage() const { + bool value = (_has_bits_[0] & 0x01000000u) != 0; + PROTOBUF_ASSUME(!value || joingamefailedmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_joingamefailedmessage() const { - return (_has_bits_[0] & 0x02000000u) != 0; -} -inline void PokerTHMessage::set_has_joingamefailedmessage() { - _has_bits_[0] |= 0x02000000u; -} -inline void PokerTHMessage::clear_has_joingamefailedmessage() { - _has_bits_[0] &= ~0x02000000u; + return _internal_has_joingamefailedmessage(); } inline void PokerTHMessage::clear_joingamefailedmessage() { - if (joingamefailedmessage_ != NULL) joingamefailedmessage_->::JoinGameFailedMessage::Clear(); - clear_has_joingamefailedmessage(); + if (joingamefailedmessage_ != nullptr) joingamefailedmessage_->Clear(); + _has_bits_[0] &= ~0x01000000u; +} +inline const ::JoinGameFailedMessage& PokerTHMessage::_internal_joingamefailedmessage() const { + const ::JoinGameFailedMessage* p = joingamefailedmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_JoinGameFailedMessage_default_instance_); } inline const ::JoinGameFailedMessage& PokerTHMessage::joingamefailedmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return joingamefailedmessage_ != NULL ? *joingamefailedmessage_ : *default_instance().joingamefailedmessage_; -#else - return joingamefailedmessage_ != NULL ? *joingamefailedmessage_ : *default_instance_->joingamefailedmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.joinGameFailedMessage) + return _internal_joingamefailedmessage(); } -inline ::JoinGameFailedMessage* PokerTHMessage::mutable_joingamefailedmessage() { - set_has_joingamefailedmessage(); - if (joingamefailedmessage_ == NULL) joingamefailedmessage_ = new ::JoinGameFailedMessage; - return joingamefailedmessage_; -} -inline ::JoinGameFailedMessage* PokerTHMessage::release_joingamefailedmessage() { - clear_has_joingamefailedmessage(); - ::JoinGameFailedMessage* temp = joingamefailedmessage_; - joingamefailedmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_joingamefailedmessage(::JoinGameFailedMessage* joingamefailedmessage) { - delete joingamefailedmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_joingamefailedmessage( + ::JoinGameFailedMessage* joingamefailedmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(joingamefailedmessage_); + } joingamefailedmessage_ = joingamefailedmessage; if (joingamefailedmessage) { - set_has_joingamefailedmessage(); + _has_bits_[0] |= 0x01000000u; } else { - clear_has_joingamefailedmessage(); + _has_bits_[0] &= ~0x01000000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.joinGameFailedMessage) +} +inline ::JoinGameFailedMessage* PokerTHMessage::release_joingamefailedmessage() { + auto temp = unsafe_arena_release_joingamefailedmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::JoinGameFailedMessage* PokerTHMessage::unsafe_arena_release_joingamefailedmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.joinGameFailedMessage) + _has_bits_[0] &= ~0x01000000u; + ::JoinGameFailedMessage* temp = joingamefailedmessage_; + joingamefailedmessage_ = nullptr; + return temp; +} +inline ::JoinGameFailedMessage* PokerTHMessage::_internal_mutable_joingamefailedmessage() { + _has_bits_[0] |= 0x01000000u; + if (joingamefailedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::JoinGameFailedMessage>(GetArena()); + joingamefailedmessage_ = p; + } + return joingamefailedmessage_; +} +inline ::JoinGameFailedMessage* PokerTHMessage::mutable_joingamefailedmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.joinGameFailedMessage) + return _internal_mutable_joingamefailedmessage(); +} +inline void PokerTHMessage::set_allocated_joingamefailedmessage(::JoinGameFailedMessage* joingamefailedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete joingamefailedmessage_; + } + if (joingamefailedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(joingamefailedmessage); + if (message_arena != submessage_arena) { + joingamefailedmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, joingamefailedmessage, submessage_arena); + } + _has_bits_[0] |= 0x01000000u; + } else { + _has_bits_[0] &= ~0x01000000u; + } + joingamefailedmessage_ = joingamefailedmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.joinGameFailedMessage) } // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; +inline bool PokerTHMessage::_internal_has_gameplayerjoinedmessage() const { + bool value = (_has_bits_[0] & 0x02000000u) != 0; + PROTOBUF_ASSUME(!value || gameplayerjoinedmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_gameplayerjoinedmessage() const { - return (_has_bits_[0] & 0x04000000u) != 0; -} -inline void PokerTHMessage::set_has_gameplayerjoinedmessage() { - _has_bits_[0] |= 0x04000000u; -} -inline void PokerTHMessage::clear_has_gameplayerjoinedmessage() { - _has_bits_[0] &= ~0x04000000u; + return _internal_has_gameplayerjoinedmessage(); } inline void PokerTHMessage::clear_gameplayerjoinedmessage() { - if (gameplayerjoinedmessage_ != NULL) gameplayerjoinedmessage_->::GamePlayerJoinedMessage::Clear(); - clear_has_gameplayerjoinedmessage(); + if (gameplayerjoinedmessage_ != nullptr) gameplayerjoinedmessage_->Clear(); + _has_bits_[0] &= ~0x02000000u; +} +inline const ::GamePlayerJoinedMessage& PokerTHMessage::_internal_gameplayerjoinedmessage() const { + const ::GamePlayerJoinedMessage* p = gameplayerjoinedmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_GamePlayerJoinedMessage_default_instance_); } inline const ::GamePlayerJoinedMessage& PokerTHMessage::gameplayerjoinedmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gameplayerjoinedmessage_ != NULL ? *gameplayerjoinedmessage_ : *default_instance().gameplayerjoinedmessage_; -#else - return gameplayerjoinedmessage_ != NULL ? *gameplayerjoinedmessage_ : *default_instance_->gameplayerjoinedmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.gamePlayerJoinedMessage) + return _internal_gameplayerjoinedmessage(); } -inline ::GamePlayerJoinedMessage* PokerTHMessage::mutable_gameplayerjoinedmessage() { - set_has_gameplayerjoinedmessage(); - if (gameplayerjoinedmessage_ == NULL) gameplayerjoinedmessage_ = new ::GamePlayerJoinedMessage; - return gameplayerjoinedmessage_; -} -inline ::GamePlayerJoinedMessage* PokerTHMessage::release_gameplayerjoinedmessage() { - clear_has_gameplayerjoinedmessage(); - ::GamePlayerJoinedMessage* temp = gameplayerjoinedmessage_; - gameplayerjoinedmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_gameplayerjoinedmessage(::GamePlayerJoinedMessage* gameplayerjoinedmessage) { - delete gameplayerjoinedmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_gameplayerjoinedmessage( + ::GamePlayerJoinedMessage* gameplayerjoinedmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(gameplayerjoinedmessage_); + } gameplayerjoinedmessage_ = gameplayerjoinedmessage; if (gameplayerjoinedmessage) { - set_has_gameplayerjoinedmessage(); + _has_bits_[0] |= 0x02000000u; } else { - clear_has_gameplayerjoinedmessage(); + _has_bits_[0] &= ~0x02000000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.gamePlayerJoinedMessage) +} +inline ::GamePlayerJoinedMessage* PokerTHMessage::release_gameplayerjoinedmessage() { + auto temp = unsafe_arena_release_gameplayerjoinedmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::GamePlayerJoinedMessage* PokerTHMessage::unsafe_arena_release_gameplayerjoinedmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.gamePlayerJoinedMessage) + _has_bits_[0] &= ~0x02000000u; + ::GamePlayerJoinedMessage* temp = gameplayerjoinedmessage_; + gameplayerjoinedmessage_ = nullptr; + return temp; +} +inline ::GamePlayerJoinedMessage* PokerTHMessage::_internal_mutable_gameplayerjoinedmessage() { + _has_bits_[0] |= 0x02000000u; + if (gameplayerjoinedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GamePlayerJoinedMessage>(GetArena()); + gameplayerjoinedmessage_ = p; + } + return gameplayerjoinedmessage_; +} +inline ::GamePlayerJoinedMessage* PokerTHMessage::mutable_gameplayerjoinedmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.gamePlayerJoinedMessage) + return _internal_mutable_gameplayerjoinedmessage(); +} +inline void PokerTHMessage::set_allocated_gameplayerjoinedmessage(::GamePlayerJoinedMessage* gameplayerjoinedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete gameplayerjoinedmessage_; + } + if (gameplayerjoinedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(gameplayerjoinedmessage); + if (message_arena != submessage_arena) { + gameplayerjoinedmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, gameplayerjoinedmessage, submessage_arena); + } + _has_bits_[0] |= 0x02000000u; + } else { + _has_bits_[0] &= ~0x02000000u; + } + gameplayerjoinedmessage_ = gameplayerjoinedmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.gamePlayerJoinedMessage) } // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; +inline bool PokerTHMessage::_internal_has_gameplayerleftmessage() const { + bool value = (_has_bits_[0] & 0x04000000u) != 0; + PROTOBUF_ASSUME(!value || gameplayerleftmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_gameplayerleftmessage() const { - return (_has_bits_[0] & 0x08000000u) != 0; -} -inline void PokerTHMessage::set_has_gameplayerleftmessage() { - _has_bits_[0] |= 0x08000000u; -} -inline void PokerTHMessage::clear_has_gameplayerleftmessage() { - _has_bits_[0] &= ~0x08000000u; + return _internal_has_gameplayerleftmessage(); } inline void PokerTHMessage::clear_gameplayerleftmessage() { - if (gameplayerleftmessage_ != NULL) gameplayerleftmessage_->::GamePlayerLeftMessage::Clear(); - clear_has_gameplayerleftmessage(); + if (gameplayerleftmessage_ != nullptr) gameplayerleftmessage_->Clear(); + _has_bits_[0] &= ~0x04000000u; +} +inline const ::GamePlayerLeftMessage& PokerTHMessage::_internal_gameplayerleftmessage() const { + const ::GamePlayerLeftMessage* p = gameplayerleftmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_GamePlayerLeftMessage_default_instance_); } inline const ::GamePlayerLeftMessage& PokerTHMessage::gameplayerleftmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gameplayerleftmessage_ != NULL ? *gameplayerleftmessage_ : *default_instance().gameplayerleftmessage_; -#else - return gameplayerleftmessage_ != NULL ? *gameplayerleftmessage_ : *default_instance_->gameplayerleftmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.gamePlayerLeftMessage) + return _internal_gameplayerleftmessage(); } -inline ::GamePlayerLeftMessage* PokerTHMessage::mutable_gameplayerleftmessage() { - set_has_gameplayerleftmessage(); - if (gameplayerleftmessage_ == NULL) gameplayerleftmessage_ = new ::GamePlayerLeftMessage; - return gameplayerleftmessage_; -} -inline ::GamePlayerLeftMessage* PokerTHMessage::release_gameplayerleftmessage() { - clear_has_gameplayerleftmessage(); - ::GamePlayerLeftMessage* temp = gameplayerleftmessage_; - gameplayerleftmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_gameplayerleftmessage(::GamePlayerLeftMessage* gameplayerleftmessage) { - delete gameplayerleftmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_gameplayerleftmessage( + ::GamePlayerLeftMessage* gameplayerleftmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(gameplayerleftmessage_); + } gameplayerleftmessage_ = gameplayerleftmessage; if (gameplayerleftmessage) { - set_has_gameplayerleftmessage(); + _has_bits_[0] |= 0x04000000u; } else { - clear_has_gameplayerleftmessage(); + _has_bits_[0] &= ~0x04000000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.gamePlayerLeftMessage) +} +inline ::GamePlayerLeftMessage* PokerTHMessage::release_gameplayerleftmessage() { + auto temp = unsafe_arena_release_gameplayerleftmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::GamePlayerLeftMessage* PokerTHMessage::unsafe_arena_release_gameplayerleftmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.gamePlayerLeftMessage) + _has_bits_[0] &= ~0x04000000u; + ::GamePlayerLeftMessage* temp = gameplayerleftmessage_; + gameplayerleftmessage_ = nullptr; + return temp; +} +inline ::GamePlayerLeftMessage* PokerTHMessage::_internal_mutable_gameplayerleftmessage() { + _has_bits_[0] |= 0x04000000u; + if (gameplayerleftmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GamePlayerLeftMessage>(GetArena()); + gameplayerleftmessage_ = p; + } + return gameplayerleftmessage_; +} +inline ::GamePlayerLeftMessage* PokerTHMessage::mutable_gameplayerleftmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.gamePlayerLeftMessage) + return _internal_mutable_gameplayerleftmessage(); +} +inline void PokerTHMessage::set_allocated_gameplayerleftmessage(::GamePlayerLeftMessage* gameplayerleftmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete gameplayerleftmessage_; + } + if (gameplayerleftmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(gameplayerleftmessage); + if (message_arena != submessage_arena) { + gameplayerleftmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, gameplayerleftmessage, submessage_arena); + } + _has_bits_[0] |= 0x04000000u; + } else { + _has_bits_[0] &= ~0x04000000u; + } + gameplayerleftmessage_ = gameplayerleftmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.gamePlayerLeftMessage) } // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; +inline bool PokerTHMessage::_internal_has_gameadminchangedmessage() const { + bool value = (_has_bits_[0] & 0x08000000u) != 0; + PROTOBUF_ASSUME(!value || gameadminchangedmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_gameadminchangedmessage() const { - return (_has_bits_[0] & 0x10000000u) != 0; -} -inline void PokerTHMessage::set_has_gameadminchangedmessage() { - _has_bits_[0] |= 0x10000000u; -} -inline void PokerTHMessage::clear_has_gameadminchangedmessage() { - _has_bits_[0] &= ~0x10000000u; + return _internal_has_gameadminchangedmessage(); } inline void PokerTHMessage::clear_gameadminchangedmessage() { - if (gameadminchangedmessage_ != NULL) gameadminchangedmessage_->::GameAdminChangedMessage::Clear(); - clear_has_gameadminchangedmessage(); + if (gameadminchangedmessage_ != nullptr) gameadminchangedmessage_->Clear(); + _has_bits_[0] &= ~0x08000000u; +} +inline const ::GameAdminChangedMessage& PokerTHMessage::_internal_gameadminchangedmessage() const { + const ::GameAdminChangedMessage* p = gameadminchangedmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_GameAdminChangedMessage_default_instance_); } inline const ::GameAdminChangedMessage& PokerTHMessage::gameadminchangedmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gameadminchangedmessage_ != NULL ? *gameadminchangedmessage_ : *default_instance().gameadminchangedmessage_; -#else - return gameadminchangedmessage_ != NULL ? *gameadminchangedmessage_ : *default_instance_->gameadminchangedmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.gameAdminChangedMessage) + return _internal_gameadminchangedmessage(); } -inline ::GameAdminChangedMessage* PokerTHMessage::mutable_gameadminchangedmessage() { - set_has_gameadminchangedmessage(); - if (gameadminchangedmessage_ == NULL) gameadminchangedmessage_ = new ::GameAdminChangedMessage; - return gameadminchangedmessage_; -} -inline ::GameAdminChangedMessage* PokerTHMessage::release_gameadminchangedmessage() { - clear_has_gameadminchangedmessage(); - ::GameAdminChangedMessage* temp = gameadminchangedmessage_; - gameadminchangedmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_gameadminchangedmessage(::GameAdminChangedMessage* gameadminchangedmessage) { - delete gameadminchangedmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_gameadminchangedmessage( + ::GameAdminChangedMessage* gameadminchangedmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(gameadminchangedmessage_); + } gameadminchangedmessage_ = gameadminchangedmessage; if (gameadminchangedmessage) { - set_has_gameadminchangedmessage(); + _has_bits_[0] |= 0x08000000u; } else { - clear_has_gameadminchangedmessage(); + _has_bits_[0] &= ~0x08000000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.gameAdminChangedMessage) +} +inline ::GameAdminChangedMessage* PokerTHMessage::release_gameadminchangedmessage() { + auto temp = unsafe_arena_release_gameadminchangedmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::GameAdminChangedMessage* PokerTHMessage::unsafe_arena_release_gameadminchangedmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.gameAdminChangedMessage) + _has_bits_[0] &= ~0x08000000u; + ::GameAdminChangedMessage* temp = gameadminchangedmessage_; + gameadminchangedmessage_ = nullptr; + return temp; +} +inline ::GameAdminChangedMessage* PokerTHMessage::_internal_mutable_gameadminchangedmessage() { + _has_bits_[0] |= 0x08000000u; + if (gameadminchangedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameAdminChangedMessage>(GetArena()); + gameadminchangedmessage_ = p; + } + return gameadminchangedmessage_; +} +inline ::GameAdminChangedMessage* PokerTHMessage::mutable_gameadminchangedmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameAdminChangedMessage) + return _internal_mutable_gameadminchangedmessage(); +} +inline void PokerTHMessage::set_allocated_gameadminchangedmessage(::GameAdminChangedMessage* gameadminchangedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete gameadminchangedmessage_; + } + if (gameadminchangedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(gameadminchangedmessage); + if (message_arena != submessage_arena) { + gameadminchangedmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, gameadminchangedmessage, submessage_arena); + } + _has_bits_[0] |= 0x08000000u; + } else { + _has_bits_[0] &= ~0x08000000u; + } + gameadminchangedmessage_ = gameadminchangedmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.gameAdminChangedMessage) } // optional .RemovedFromGameMessage removedFromGameMessage = 30; +inline bool PokerTHMessage::_internal_has_removedfromgamemessage() const { + bool value = (_has_bits_[0] & 0x10000000u) != 0; + PROTOBUF_ASSUME(!value || removedfromgamemessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_removedfromgamemessage() const { - return (_has_bits_[0] & 0x20000000u) != 0; -} -inline void PokerTHMessage::set_has_removedfromgamemessage() { - _has_bits_[0] |= 0x20000000u; -} -inline void PokerTHMessage::clear_has_removedfromgamemessage() { - _has_bits_[0] &= ~0x20000000u; + return _internal_has_removedfromgamemessage(); } inline void PokerTHMessage::clear_removedfromgamemessage() { - if (removedfromgamemessage_ != NULL) removedfromgamemessage_->::RemovedFromGameMessage::Clear(); - clear_has_removedfromgamemessage(); + if (removedfromgamemessage_ != nullptr) removedfromgamemessage_->Clear(); + _has_bits_[0] &= ~0x10000000u; +} +inline const ::RemovedFromGameMessage& PokerTHMessage::_internal_removedfromgamemessage() const { + const ::RemovedFromGameMessage* p = removedfromgamemessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_RemovedFromGameMessage_default_instance_); } inline const ::RemovedFromGameMessage& PokerTHMessage::removedfromgamemessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return removedfromgamemessage_ != NULL ? *removedfromgamemessage_ : *default_instance().removedfromgamemessage_; -#else - return removedfromgamemessage_ != NULL ? *removedfromgamemessage_ : *default_instance_->removedfromgamemessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.removedFromGameMessage) + return _internal_removedfromgamemessage(); } -inline ::RemovedFromGameMessage* PokerTHMessage::mutable_removedfromgamemessage() { - set_has_removedfromgamemessage(); - if (removedfromgamemessage_ == NULL) removedfromgamemessage_ = new ::RemovedFromGameMessage; - return removedfromgamemessage_; -} -inline ::RemovedFromGameMessage* PokerTHMessage::release_removedfromgamemessage() { - clear_has_removedfromgamemessage(); - ::RemovedFromGameMessage* temp = removedfromgamemessage_; - removedfromgamemessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_removedfromgamemessage(::RemovedFromGameMessage* removedfromgamemessage) { - delete removedfromgamemessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_removedfromgamemessage( + ::RemovedFromGameMessage* removedfromgamemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(removedfromgamemessage_); + } removedfromgamemessage_ = removedfromgamemessage; if (removedfromgamemessage) { - set_has_removedfromgamemessage(); + _has_bits_[0] |= 0x10000000u; } else { - clear_has_removedfromgamemessage(); + _has_bits_[0] &= ~0x10000000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.removedFromGameMessage) +} +inline ::RemovedFromGameMessage* PokerTHMessage::release_removedfromgamemessage() { + auto temp = unsafe_arena_release_removedfromgamemessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::RemovedFromGameMessage* PokerTHMessage::unsafe_arena_release_removedfromgamemessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.removedFromGameMessage) + _has_bits_[0] &= ~0x10000000u; + ::RemovedFromGameMessage* temp = removedfromgamemessage_; + removedfromgamemessage_ = nullptr; + return temp; +} +inline ::RemovedFromGameMessage* PokerTHMessage::_internal_mutable_removedfromgamemessage() { + _has_bits_[0] |= 0x10000000u; + if (removedfromgamemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::RemovedFromGameMessage>(GetArena()); + removedfromgamemessage_ = p; + } + return removedfromgamemessage_; +} +inline ::RemovedFromGameMessage* PokerTHMessage::mutable_removedfromgamemessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.removedFromGameMessage) + return _internal_mutable_removedfromgamemessage(); +} +inline void PokerTHMessage::set_allocated_removedfromgamemessage(::RemovedFromGameMessage* removedfromgamemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete removedfromgamemessage_; + } + if (removedfromgamemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(removedfromgamemessage); + if (message_arena != submessage_arena) { + removedfromgamemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, removedfromgamemessage, submessage_arena); + } + _has_bits_[0] |= 0x10000000u; + } else { + _has_bits_[0] &= ~0x10000000u; + } + removedfromgamemessage_ = removedfromgamemessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.removedFromGameMessage) } // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; +inline bool PokerTHMessage::_internal_has_kickplayerrequestmessage() const { + bool value = (_has_bits_[0] & 0x20000000u) != 0; + PROTOBUF_ASSUME(!value || kickplayerrequestmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_kickplayerrequestmessage() const { - return (_has_bits_[0] & 0x40000000u) != 0; -} -inline void PokerTHMessage::set_has_kickplayerrequestmessage() { - _has_bits_[0] |= 0x40000000u; -} -inline void PokerTHMessage::clear_has_kickplayerrequestmessage() { - _has_bits_[0] &= ~0x40000000u; + return _internal_has_kickplayerrequestmessage(); } inline void PokerTHMessage::clear_kickplayerrequestmessage() { - if (kickplayerrequestmessage_ != NULL) kickplayerrequestmessage_->::KickPlayerRequestMessage::Clear(); - clear_has_kickplayerrequestmessage(); + if (kickplayerrequestmessage_ != nullptr) kickplayerrequestmessage_->Clear(); + _has_bits_[0] &= ~0x20000000u; +} +inline const ::KickPlayerRequestMessage& PokerTHMessage::_internal_kickplayerrequestmessage() const { + const ::KickPlayerRequestMessage* p = kickplayerrequestmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_KickPlayerRequestMessage_default_instance_); } inline const ::KickPlayerRequestMessage& PokerTHMessage::kickplayerrequestmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return kickplayerrequestmessage_ != NULL ? *kickplayerrequestmessage_ : *default_instance().kickplayerrequestmessage_; -#else - return kickplayerrequestmessage_ != NULL ? *kickplayerrequestmessage_ : *default_instance_->kickplayerrequestmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.kickPlayerRequestMessage) + return _internal_kickplayerrequestmessage(); } -inline ::KickPlayerRequestMessage* PokerTHMessage::mutable_kickplayerrequestmessage() { - set_has_kickplayerrequestmessage(); - if (kickplayerrequestmessage_ == NULL) kickplayerrequestmessage_ = new ::KickPlayerRequestMessage; - return kickplayerrequestmessage_; -} -inline ::KickPlayerRequestMessage* PokerTHMessage::release_kickplayerrequestmessage() { - clear_has_kickplayerrequestmessage(); - ::KickPlayerRequestMessage* temp = kickplayerrequestmessage_; - kickplayerrequestmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_kickplayerrequestmessage(::KickPlayerRequestMessage* kickplayerrequestmessage) { - delete kickplayerrequestmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_kickplayerrequestmessage( + ::KickPlayerRequestMessage* kickplayerrequestmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(kickplayerrequestmessage_); + } kickplayerrequestmessage_ = kickplayerrequestmessage; if (kickplayerrequestmessage) { - set_has_kickplayerrequestmessage(); + _has_bits_[0] |= 0x20000000u; } else { - clear_has_kickplayerrequestmessage(); + _has_bits_[0] &= ~0x20000000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.kickPlayerRequestMessage) +} +inline ::KickPlayerRequestMessage* PokerTHMessage::release_kickplayerrequestmessage() { + auto temp = unsafe_arena_release_kickplayerrequestmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::KickPlayerRequestMessage* PokerTHMessage::unsafe_arena_release_kickplayerrequestmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.kickPlayerRequestMessage) + _has_bits_[0] &= ~0x20000000u; + ::KickPlayerRequestMessage* temp = kickplayerrequestmessage_; + kickplayerrequestmessage_ = nullptr; + return temp; +} +inline ::KickPlayerRequestMessage* PokerTHMessage::_internal_mutable_kickplayerrequestmessage() { + _has_bits_[0] |= 0x20000000u; + if (kickplayerrequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::KickPlayerRequestMessage>(GetArena()); + kickplayerrequestmessage_ = p; + } + return kickplayerrequestmessage_; +} +inline ::KickPlayerRequestMessage* PokerTHMessage::mutable_kickplayerrequestmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.kickPlayerRequestMessage) + return _internal_mutable_kickplayerrequestmessage(); +} +inline void PokerTHMessage::set_allocated_kickplayerrequestmessage(::KickPlayerRequestMessage* kickplayerrequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete kickplayerrequestmessage_; + } + if (kickplayerrequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(kickplayerrequestmessage); + if (message_arena != submessage_arena) { + kickplayerrequestmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, kickplayerrequestmessage, submessage_arena); + } + _has_bits_[0] |= 0x20000000u; + } else { + _has_bits_[0] &= ~0x20000000u; + } + kickplayerrequestmessage_ = kickplayerrequestmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.kickPlayerRequestMessage) } // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; +inline bool PokerTHMessage::_internal_has_leavegamerequestmessage() const { + bool value = (_has_bits_[0] & 0x40000000u) != 0; + PROTOBUF_ASSUME(!value || leavegamerequestmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_leavegamerequestmessage() const { - return (_has_bits_[0] & 0x80000000u) != 0; -} -inline void PokerTHMessage::set_has_leavegamerequestmessage() { - _has_bits_[0] |= 0x80000000u; -} -inline void PokerTHMessage::clear_has_leavegamerequestmessage() { - _has_bits_[0] &= ~0x80000000u; + return _internal_has_leavegamerequestmessage(); } inline void PokerTHMessage::clear_leavegamerequestmessage() { - if (leavegamerequestmessage_ != NULL) leavegamerequestmessage_->::LeaveGameRequestMessage::Clear(); - clear_has_leavegamerequestmessage(); + if (leavegamerequestmessage_ != nullptr) leavegamerequestmessage_->Clear(); + _has_bits_[0] &= ~0x40000000u; +} +inline const ::LeaveGameRequestMessage& PokerTHMessage::_internal_leavegamerequestmessage() const { + const ::LeaveGameRequestMessage* p = leavegamerequestmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_LeaveGameRequestMessage_default_instance_); } inline const ::LeaveGameRequestMessage& PokerTHMessage::leavegamerequestmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return leavegamerequestmessage_ != NULL ? *leavegamerequestmessage_ : *default_instance().leavegamerequestmessage_; -#else - return leavegamerequestmessage_ != NULL ? *leavegamerequestmessage_ : *default_instance_->leavegamerequestmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.leaveGameRequestMessage) + return _internal_leavegamerequestmessage(); } -inline ::LeaveGameRequestMessage* PokerTHMessage::mutable_leavegamerequestmessage() { - set_has_leavegamerequestmessage(); - if (leavegamerequestmessage_ == NULL) leavegamerequestmessage_ = new ::LeaveGameRequestMessage; - return leavegamerequestmessage_; -} -inline ::LeaveGameRequestMessage* PokerTHMessage::release_leavegamerequestmessage() { - clear_has_leavegamerequestmessage(); - ::LeaveGameRequestMessage* temp = leavegamerequestmessage_; - leavegamerequestmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_leavegamerequestmessage(::LeaveGameRequestMessage* leavegamerequestmessage) { - delete leavegamerequestmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_leavegamerequestmessage( + ::LeaveGameRequestMessage* leavegamerequestmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(leavegamerequestmessage_); + } leavegamerequestmessage_ = leavegamerequestmessage; if (leavegamerequestmessage) { - set_has_leavegamerequestmessage(); + _has_bits_[0] |= 0x40000000u; } else { - clear_has_leavegamerequestmessage(); + _has_bits_[0] &= ~0x40000000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.leaveGameRequestMessage) +} +inline ::LeaveGameRequestMessage* PokerTHMessage::release_leavegamerequestmessage() { + auto temp = unsafe_arena_release_leavegamerequestmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::LeaveGameRequestMessage* PokerTHMessage::unsafe_arena_release_leavegamerequestmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.leaveGameRequestMessage) + _has_bits_[0] &= ~0x40000000u; + ::LeaveGameRequestMessage* temp = leavegamerequestmessage_; + leavegamerequestmessage_ = nullptr; + return temp; +} +inline ::LeaveGameRequestMessage* PokerTHMessage::_internal_mutable_leavegamerequestmessage() { + _has_bits_[0] |= 0x40000000u; + if (leavegamerequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::LeaveGameRequestMessage>(GetArena()); + leavegamerequestmessage_ = p; + } + return leavegamerequestmessage_; +} +inline ::LeaveGameRequestMessage* PokerTHMessage::mutable_leavegamerequestmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.leaveGameRequestMessage) + return _internal_mutable_leavegamerequestmessage(); +} +inline void PokerTHMessage::set_allocated_leavegamerequestmessage(::LeaveGameRequestMessage* leavegamerequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete leavegamerequestmessage_; + } + if (leavegamerequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(leavegamerequestmessage); + if (message_arena != submessage_arena) { + leavegamerequestmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, leavegamerequestmessage, submessage_arena); + } + _has_bits_[0] |= 0x40000000u; + } else { + _has_bits_[0] &= ~0x40000000u; + } + leavegamerequestmessage_ = leavegamerequestmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.leaveGameRequestMessage) } // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; +inline bool PokerTHMessage::_internal_has_inviteplayertogamemessage() const { + bool value = (_has_bits_[0] & 0x80000000u) != 0; + PROTOBUF_ASSUME(!value || inviteplayertogamemessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_inviteplayertogamemessage() const { - return (_has_bits_[1] & 0x00000001u) != 0; -} -inline void PokerTHMessage::set_has_inviteplayertogamemessage() { - _has_bits_[1] |= 0x00000001u; -} -inline void PokerTHMessage::clear_has_inviteplayertogamemessage() { - _has_bits_[1] &= ~0x00000001u; + return _internal_has_inviteplayertogamemessage(); } inline void PokerTHMessage::clear_inviteplayertogamemessage() { - if (inviteplayertogamemessage_ != NULL) inviteplayertogamemessage_->::InvitePlayerToGameMessage::Clear(); - clear_has_inviteplayertogamemessage(); + if (inviteplayertogamemessage_ != nullptr) inviteplayertogamemessage_->Clear(); + _has_bits_[0] &= ~0x80000000u; +} +inline const ::InvitePlayerToGameMessage& PokerTHMessage::_internal_inviteplayertogamemessage() const { + const ::InvitePlayerToGameMessage* p = inviteplayertogamemessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_InvitePlayerToGameMessage_default_instance_); } inline const ::InvitePlayerToGameMessage& PokerTHMessage::inviteplayertogamemessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return inviteplayertogamemessage_ != NULL ? *inviteplayertogamemessage_ : *default_instance().inviteplayertogamemessage_; -#else - return inviteplayertogamemessage_ != NULL ? *inviteplayertogamemessage_ : *default_instance_->inviteplayertogamemessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.invitePlayerToGameMessage) + return _internal_inviteplayertogamemessage(); } -inline ::InvitePlayerToGameMessage* PokerTHMessage::mutable_inviteplayertogamemessage() { - set_has_inviteplayertogamemessage(); - if (inviteplayertogamemessage_ == NULL) inviteplayertogamemessage_ = new ::InvitePlayerToGameMessage; - return inviteplayertogamemessage_; -} -inline ::InvitePlayerToGameMessage* PokerTHMessage::release_inviteplayertogamemessage() { - clear_has_inviteplayertogamemessage(); - ::InvitePlayerToGameMessage* temp = inviteplayertogamemessage_; - inviteplayertogamemessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_inviteplayertogamemessage(::InvitePlayerToGameMessage* inviteplayertogamemessage) { - delete inviteplayertogamemessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_inviteplayertogamemessage( + ::InvitePlayerToGameMessage* inviteplayertogamemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(inviteplayertogamemessage_); + } inviteplayertogamemessage_ = inviteplayertogamemessage; if (inviteplayertogamemessage) { - set_has_inviteplayertogamemessage(); + _has_bits_[0] |= 0x80000000u; } else { - clear_has_inviteplayertogamemessage(); + _has_bits_[0] &= ~0x80000000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.invitePlayerToGameMessage) +} +inline ::InvitePlayerToGameMessage* PokerTHMessage::release_inviteplayertogamemessage() { + auto temp = unsafe_arena_release_inviteplayertogamemessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::InvitePlayerToGameMessage* PokerTHMessage::unsafe_arena_release_inviteplayertogamemessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.invitePlayerToGameMessage) + _has_bits_[0] &= ~0x80000000u; + ::InvitePlayerToGameMessage* temp = inviteplayertogamemessage_; + inviteplayertogamemessage_ = nullptr; + return temp; +} +inline ::InvitePlayerToGameMessage* PokerTHMessage::_internal_mutable_inviteplayertogamemessage() { + _has_bits_[0] |= 0x80000000u; + if (inviteplayertogamemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::InvitePlayerToGameMessage>(GetArena()); + inviteplayertogamemessage_ = p; + } + return inviteplayertogamemessage_; +} +inline ::InvitePlayerToGameMessage* PokerTHMessage::mutable_inviteplayertogamemessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.invitePlayerToGameMessage) + return _internal_mutable_inviteplayertogamemessage(); +} +inline void PokerTHMessage::set_allocated_inviteplayertogamemessage(::InvitePlayerToGameMessage* inviteplayertogamemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete inviteplayertogamemessage_; + } + if (inviteplayertogamemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(inviteplayertogamemessage); + if (message_arena != submessage_arena) { + inviteplayertogamemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, inviteplayertogamemessage, submessage_arena); + } + _has_bits_[0] |= 0x80000000u; + } else { + _has_bits_[0] &= ~0x80000000u; + } + inviteplayertogamemessage_ = inviteplayertogamemessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.invitePlayerToGameMessage) } // optional .InviteNotifyMessage inviteNotifyMessage = 34; +inline bool PokerTHMessage::_internal_has_invitenotifymessage() const { + bool value = (_has_bits_[1] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || invitenotifymessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_invitenotifymessage() const { - return (_has_bits_[1] & 0x00000002u) != 0; -} -inline void PokerTHMessage::set_has_invitenotifymessage() { - _has_bits_[1] |= 0x00000002u; -} -inline void PokerTHMessage::clear_has_invitenotifymessage() { - _has_bits_[1] &= ~0x00000002u; + return _internal_has_invitenotifymessage(); } inline void PokerTHMessage::clear_invitenotifymessage() { - if (invitenotifymessage_ != NULL) invitenotifymessage_->::InviteNotifyMessage::Clear(); - clear_has_invitenotifymessage(); + if (invitenotifymessage_ != nullptr) invitenotifymessage_->Clear(); + _has_bits_[1] &= ~0x00000001u; +} +inline const ::InviteNotifyMessage& PokerTHMessage::_internal_invitenotifymessage() const { + const ::InviteNotifyMessage* p = invitenotifymessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_InviteNotifyMessage_default_instance_); } inline const ::InviteNotifyMessage& PokerTHMessage::invitenotifymessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return invitenotifymessage_ != NULL ? *invitenotifymessage_ : *default_instance().invitenotifymessage_; -#else - return invitenotifymessage_ != NULL ? *invitenotifymessage_ : *default_instance_->invitenotifymessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.inviteNotifyMessage) + return _internal_invitenotifymessage(); } -inline ::InviteNotifyMessage* PokerTHMessage::mutable_invitenotifymessage() { - set_has_invitenotifymessage(); - if (invitenotifymessage_ == NULL) invitenotifymessage_ = new ::InviteNotifyMessage; - return invitenotifymessage_; -} -inline ::InviteNotifyMessage* PokerTHMessage::release_invitenotifymessage() { - clear_has_invitenotifymessage(); - ::InviteNotifyMessage* temp = invitenotifymessage_; - invitenotifymessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_invitenotifymessage(::InviteNotifyMessage* invitenotifymessage) { - delete invitenotifymessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_invitenotifymessage( + ::InviteNotifyMessage* invitenotifymessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(invitenotifymessage_); + } invitenotifymessage_ = invitenotifymessage; if (invitenotifymessage) { - set_has_invitenotifymessage(); + _has_bits_[1] |= 0x00000001u; } else { - clear_has_invitenotifymessage(); + _has_bits_[1] &= ~0x00000001u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.inviteNotifyMessage) +} +inline ::InviteNotifyMessage* PokerTHMessage::release_invitenotifymessage() { + auto temp = unsafe_arena_release_invitenotifymessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::InviteNotifyMessage* PokerTHMessage::unsafe_arena_release_invitenotifymessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.inviteNotifyMessage) + _has_bits_[1] &= ~0x00000001u; + ::InviteNotifyMessage* temp = invitenotifymessage_; + invitenotifymessage_ = nullptr; + return temp; +} +inline ::InviteNotifyMessage* PokerTHMessage::_internal_mutable_invitenotifymessage() { + _has_bits_[1] |= 0x00000001u; + if (invitenotifymessage_ == nullptr) { + auto* p = CreateMaybeMessage<::InviteNotifyMessage>(GetArena()); + invitenotifymessage_ = p; + } + return invitenotifymessage_; +} +inline ::InviteNotifyMessage* PokerTHMessage::mutable_invitenotifymessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.inviteNotifyMessage) + return _internal_mutable_invitenotifymessage(); +} +inline void PokerTHMessage::set_allocated_invitenotifymessage(::InviteNotifyMessage* invitenotifymessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete invitenotifymessage_; + } + if (invitenotifymessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(invitenotifymessage); + if (message_arena != submessage_arena) { + invitenotifymessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, invitenotifymessage, submessage_arena); + } + _has_bits_[1] |= 0x00000001u; + } else { + _has_bits_[1] &= ~0x00000001u; + } + invitenotifymessage_ = invitenotifymessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.inviteNotifyMessage) } // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; +inline bool PokerTHMessage::_internal_has_rejectgameinvitationmessage() const { + bool value = (_has_bits_[1] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || rejectgameinvitationmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_rejectgameinvitationmessage() const { - return (_has_bits_[1] & 0x00000004u) != 0; -} -inline void PokerTHMessage::set_has_rejectgameinvitationmessage() { - _has_bits_[1] |= 0x00000004u; -} -inline void PokerTHMessage::clear_has_rejectgameinvitationmessage() { - _has_bits_[1] &= ~0x00000004u; + return _internal_has_rejectgameinvitationmessage(); } inline void PokerTHMessage::clear_rejectgameinvitationmessage() { - if (rejectgameinvitationmessage_ != NULL) rejectgameinvitationmessage_->::RejectGameInvitationMessage::Clear(); - clear_has_rejectgameinvitationmessage(); + if (rejectgameinvitationmessage_ != nullptr) rejectgameinvitationmessage_->Clear(); + _has_bits_[1] &= ~0x00000002u; +} +inline const ::RejectGameInvitationMessage& PokerTHMessage::_internal_rejectgameinvitationmessage() const { + const ::RejectGameInvitationMessage* p = rejectgameinvitationmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_RejectGameInvitationMessage_default_instance_); } inline const ::RejectGameInvitationMessage& PokerTHMessage::rejectgameinvitationmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return rejectgameinvitationmessage_ != NULL ? *rejectgameinvitationmessage_ : *default_instance().rejectgameinvitationmessage_; -#else - return rejectgameinvitationmessage_ != NULL ? *rejectgameinvitationmessage_ : *default_instance_->rejectgameinvitationmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.rejectGameInvitationMessage) + return _internal_rejectgameinvitationmessage(); } -inline ::RejectGameInvitationMessage* PokerTHMessage::mutable_rejectgameinvitationmessage() { - set_has_rejectgameinvitationmessage(); - if (rejectgameinvitationmessage_ == NULL) rejectgameinvitationmessage_ = new ::RejectGameInvitationMessage; - return rejectgameinvitationmessage_; -} -inline ::RejectGameInvitationMessage* PokerTHMessage::release_rejectgameinvitationmessage() { - clear_has_rejectgameinvitationmessage(); - ::RejectGameInvitationMessage* temp = rejectgameinvitationmessage_; - rejectgameinvitationmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_rejectgameinvitationmessage(::RejectGameInvitationMessage* rejectgameinvitationmessage) { - delete rejectgameinvitationmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_rejectgameinvitationmessage( + ::RejectGameInvitationMessage* rejectgameinvitationmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(rejectgameinvitationmessage_); + } rejectgameinvitationmessage_ = rejectgameinvitationmessage; if (rejectgameinvitationmessage) { - set_has_rejectgameinvitationmessage(); + _has_bits_[1] |= 0x00000002u; } else { - clear_has_rejectgameinvitationmessage(); + _has_bits_[1] &= ~0x00000002u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.rejectGameInvitationMessage) +} +inline ::RejectGameInvitationMessage* PokerTHMessage::release_rejectgameinvitationmessage() { + auto temp = unsafe_arena_release_rejectgameinvitationmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::RejectGameInvitationMessage* PokerTHMessage::unsafe_arena_release_rejectgameinvitationmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.rejectGameInvitationMessage) + _has_bits_[1] &= ~0x00000002u; + ::RejectGameInvitationMessage* temp = rejectgameinvitationmessage_; + rejectgameinvitationmessage_ = nullptr; + return temp; +} +inline ::RejectGameInvitationMessage* PokerTHMessage::_internal_mutable_rejectgameinvitationmessage() { + _has_bits_[1] |= 0x00000002u; + if (rejectgameinvitationmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::RejectGameInvitationMessage>(GetArena()); + rejectgameinvitationmessage_ = p; + } + return rejectgameinvitationmessage_; +} +inline ::RejectGameInvitationMessage* PokerTHMessage::mutable_rejectgameinvitationmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.rejectGameInvitationMessage) + return _internal_mutable_rejectgameinvitationmessage(); +} +inline void PokerTHMessage::set_allocated_rejectgameinvitationmessage(::RejectGameInvitationMessage* rejectgameinvitationmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete rejectgameinvitationmessage_; + } + if (rejectgameinvitationmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(rejectgameinvitationmessage); + if (message_arena != submessage_arena) { + rejectgameinvitationmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, rejectgameinvitationmessage, submessage_arena); + } + _has_bits_[1] |= 0x00000002u; + } else { + _has_bits_[1] &= ~0x00000002u; + } + rejectgameinvitationmessage_ = rejectgameinvitationmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.rejectGameInvitationMessage) } // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; +inline bool PokerTHMessage::_internal_has_rejectinvnotifymessage() const { + bool value = (_has_bits_[1] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || rejectinvnotifymessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_rejectinvnotifymessage() const { - return (_has_bits_[1] & 0x00000008u) != 0; -} -inline void PokerTHMessage::set_has_rejectinvnotifymessage() { - _has_bits_[1] |= 0x00000008u; -} -inline void PokerTHMessage::clear_has_rejectinvnotifymessage() { - _has_bits_[1] &= ~0x00000008u; + return _internal_has_rejectinvnotifymessage(); } inline void PokerTHMessage::clear_rejectinvnotifymessage() { - if (rejectinvnotifymessage_ != NULL) rejectinvnotifymessage_->::RejectInvNotifyMessage::Clear(); - clear_has_rejectinvnotifymessage(); + if (rejectinvnotifymessage_ != nullptr) rejectinvnotifymessage_->Clear(); + _has_bits_[1] &= ~0x00000004u; +} +inline const ::RejectInvNotifyMessage& PokerTHMessage::_internal_rejectinvnotifymessage() const { + const ::RejectInvNotifyMessage* p = rejectinvnotifymessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_RejectInvNotifyMessage_default_instance_); } inline const ::RejectInvNotifyMessage& PokerTHMessage::rejectinvnotifymessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return rejectinvnotifymessage_ != NULL ? *rejectinvnotifymessage_ : *default_instance().rejectinvnotifymessage_; -#else - return rejectinvnotifymessage_ != NULL ? *rejectinvnotifymessage_ : *default_instance_->rejectinvnotifymessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.rejectInvNotifyMessage) + return _internal_rejectinvnotifymessage(); } -inline ::RejectInvNotifyMessage* PokerTHMessage::mutable_rejectinvnotifymessage() { - set_has_rejectinvnotifymessage(); - if (rejectinvnotifymessage_ == NULL) rejectinvnotifymessage_ = new ::RejectInvNotifyMessage; - return rejectinvnotifymessage_; -} -inline ::RejectInvNotifyMessage* PokerTHMessage::release_rejectinvnotifymessage() { - clear_has_rejectinvnotifymessage(); - ::RejectInvNotifyMessage* temp = rejectinvnotifymessage_; - rejectinvnotifymessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_rejectinvnotifymessage(::RejectInvNotifyMessage* rejectinvnotifymessage) { - delete rejectinvnotifymessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_rejectinvnotifymessage( + ::RejectInvNotifyMessage* rejectinvnotifymessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(rejectinvnotifymessage_); + } rejectinvnotifymessage_ = rejectinvnotifymessage; if (rejectinvnotifymessage) { - set_has_rejectinvnotifymessage(); + _has_bits_[1] |= 0x00000004u; } else { - clear_has_rejectinvnotifymessage(); + _has_bits_[1] &= ~0x00000004u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.rejectInvNotifyMessage) +} +inline ::RejectInvNotifyMessage* PokerTHMessage::release_rejectinvnotifymessage() { + auto temp = unsafe_arena_release_rejectinvnotifymessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::RejectInvNotifyMessage* PokerTHMessage::unsafe_arena_release_rejectinvnotifymessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.rejectInvNotifyMessage) + _has_bits_[1] &= ~0x00000004u; + ::RejectInvNotifyMessage* temp = rejectinvnotifymessage_; + rejectinvnotifymessage_ = nullptr; + return temp; +} +inline ::RejectInvNotifyMessage* PokerTHMessage::_internal_mutable_rejectinvnotifymessage() { + _has_bits_[1] |= 0x00000004u; + if (rejectinvnotifymessage_ == nullptr) { + auto* p = CreateMaybeMessage<::RejectInvNotifyMessage>(GetArena()); + rejectinvnotifymessage_ = p; + } + return rejectinvnotifymessage_; +} +inline ::RejectInvNotifyMessage* PokerTHMessage::mutable_rejectinvnotifymessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.rejectInvNotifyMessage) + return _internal_mutable_rejectinvnotifymessage(); +} +inline void PokerTHMessage::set_allocated_rejectinvnotifymessage(::RejectInvNotifyMessage* rejectinvnotifymessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete rejectinvnotifymessage_; + } + if (rejectinvnotifymessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(rejectinvnotifymessage); + if (message_arena != submessage_arena) { + rejectinvnotifymessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, rejectinvnotifymessage, submessage_arena); + } + _has_bits_[1] |= 0x00000004u; + } else { + _has_bits_[1] &= ~0x00000004u; + } + rejectinvnotifymessage_ = rejectinvnotifymessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.rejectInvNotifyMessage) } // optional .StartEventMessage startEventMessage = 37; +inline bool PokerTHMessage::_internal_has_starteventmessage() const { + bool value = (_has_bits_[1] & 0x00000008u) != 0; + PROTOBUF_ASSUME(!value || starteventmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_starteventmessage() const { - return (_has_bits_[1] & 0x00000010u) != 0; -} -inline void PokerTHMessage::set_has_starteventmessage() { - _has_bits_[1] |= 0x00000010u; -} -inline void PokerTHMessage::clear_has_starteventmessage() { - _has_bits_[1] &= ~0x00000010u; + return _internal_has_starteventmessage(); } inline void PokerTHMessage::clear_starteventmessage() { - if (starteventmessage_ != NULL) starteventmessage_->::StartEventMessage::Clear(); - clear_has_starteventmessage(); + if (starteventmessage_ != nullptr) starteventmessage_->Clear(); + _has_bits_[1] &= ~0x00000008u; +} +inline const ::StartEventMessage& PokerTHMessage::_internal_starteventmessage() const { + const ::StartEventMessage* p = starteventmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_StartEventMessage_default_instance_); } inline const ::StartEventMessage& PokerTHMessage::starteventmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return starteventmessage_ != NULL ? *starteventmessage_ : *default_instance().starteventmessage_; -#else - return starteventmessage_ != NULL ? *starteventmessage_ : *default_instance_->starteventmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.startEventMessage) + return _internal_starteventmessage(); } -inline ::StartEventMessage* PokerTHMessage::mutable_starteventmessage() { - set_has_starteventmessage(); - if (starteventmessage_ == NULL) starteventmessage_ = new ::StartEventMessage; - return starteventmessage_; -} -inline ::StartEventMessage* PokerTHMessage::release_starteventmessage() { - clear_has_starteventmessage(); - ::StartEventMessage* temp = starteventmessage_; - starteventmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_starteventmessage(::StartEventMessage* starteventmessage) { - delete starteventmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_starteventmessage( + ::StartEventMessage* starteventmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(starteventmessage_); + } starteventmessage_ = starteventmessage; if (starteventmessage) { - set_has_starteventmessage(); + _has_bits_[1] |= 0x00000008u; } else { - clear_has_starteventmessage(); + _has_bits_[1] &= ~0x00000008u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.startEventMessage) +} +inline ::StartEventMessage* PokerTHMessage::release_starteventmessage() { + auto temp = unsafe_arena_release_starteventmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::StartEventMessage* PokerTHMessage::unsafe_arena_release_starteventmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.startEventMessage) + _has_bits_[1] &= ~0x00000008u; + ::StartEventMessage* temp = starteventmessage_; + starteventmessage_ = nullptr; + return temp; +} +inline ::StartEventMessage* PokerTHMessage::_internal_mutable_starteventmessage() { + _has_bits_[1] |= 0x00000008u; + if (starteventmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::StartEventMessage>(GetArena()); + starteventmessage_ = p; + } + return starteventmessage_; +} +inline ::StartEventMessage* PokerTHMessage::mutable_starteventmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.startEventMessage) + return _internal_mutable_starteventmessage(); +} +inline void PokerTHMessage::set_allocated_starteventmessage(::StartEventMessage* starteventmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete starteventmessage_; + } + if (starteventmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(starteventmessage); + if (message_arena != submessage_arena) { + starteventmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, starteventmessage, submessage_arena); + } + _has_bits_[1] |= 0x00000008u; + } else { + _has_bits_[1] &= ~0x00000008u; + } + starteventmessage_ = starteventmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.startEventMessage) } // optional .StartEventAckMessage startEventAckMessage = 38; +inline bool PokerTHMessage::_internal_has_starteventackmessage() const { + bool value = (_has_bits_[1] & 0x00000010u) != 0; + PROTOBUF_ASSUME(!value || starteventackmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_starteventackmessage() const { - return (_has_bits_[1] & 0x00000020u) != 0; -} -inline void PokerTHMessage::set_has_starteventackmessage() { - _has_bits_[1] |= 0x00000020u; -} -inline void PokerTHMessage::clear_has_starteventackmessage() { - _has_bits_[1] &= ~0x00000020u; + return _internal_has_starteventackmessage(); } inline void PokerTHMessage::clear_starteventackmessage() { - if (starteventackmessage_ != NULL) starteventackmessage_->::StartEventAckMessage::Clear(); - clear_has_starteventackmessage(); + if (starteventackmessage_ != nullptr) starteventackmessage_->Clear(); + _has_bits_[1] &= ~0x00000010u; +} +inline const ::StartEventAckMessage& PokerTHMessage::_internal_starteventackmessage() const { + const ::StartEventAckMessage* p = starteventackmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_StartEventAckMessage_default_instance_); } inline const ::StartEventAckMessage& PokerTHMessage::starteventackmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return starteventackmessage_ != NULL ? *starteventackmessage_ : *default_instance().starteventackmessage_; -#else - return starteventackmessage_ != NULL ? *starteventackmessage_ : *default_instance_->starteventackmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.startEventAckMessage) + return _internal_starteventackmessage(); } -inline ::StartEventAckMessage* PokerTHMessage::mutable_starteventackmessage() { - set_has_starteventackmessage(); - if (starteventackmessage_ == NULL) starteventackmessage_ = new ::StartEventAckMessage; - return starteventackmessage_; -} -inline ::StartEventAckMessage* PokerTHMessage::release_starteventackmessage() { - clear_has_starteventackmessage(); - ::StartEventAckMessage* temp = starteventackmessage_; - starteventackmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_starteventackmessage(::StartEventAckMessage* starteventackmessage) { - delete starteventackmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_starteventackmessage( + ::StartEventAckMessage* starteventackmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(starteventackmessage_); + } starteventackmessage_ = starteventackmessage; if (starteventackmessage) { - set_has_starteventackmessage(); + _has_bits_[1] |= 0x00000010u; } else { - clear_has_starteventackmessage(); + _has_bits_[1] &= ~0x00000010u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.startEventAckMessage) +} +inline ::StartEventAckMessage* PokerTHMessage::release_starteventackmessage() { + auto temp = unsafe_arena_release_starteventackmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::StartEventAckMessage* PokerTHMessage::unsafe_arena_release_starteventackmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.startEventAckMessage) + _has_bits_[1] &= ~0x00000010u; + ::StartEventAckMessage* temp = starteventackmessage_; + starteventackmessage_ = nullptr; + return temp; +} +inline ::StartEventAckMessage* PokerTHMessage::_internal_mutable_starteventackmessage() { + _has_bits_[1] |= 0x00000010u; + if (starteventackmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::StartEventAckMessage>(GetArena()); + starteventackmessage_ = p; + } + return starteventackmessage_; +} +inline ::StartEventAckMessage* PokerTHMessage::mutable_starteventackmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.startEventAckMessage) + return _internal_mutable_starteventackmessage(); +} +inline void PokerTHMessage::set_allocated_starteventackmessage(::StartEventAckMessage* starteventackmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete starteventackmessage_; + } + if (starteventackmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(starteventackmessage); + if (message_arena != submessage_arena) { + starteventackmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, starteventackmessage, submessage_arena); + } + _has_bits_[1] |= 0x00000010u; + } else { + _has_bits_[1] &= ~0x00000010u; + } + starteventackmessage_ = starteventackmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.startEventAckMessage) } // optional .GameStartInitialMessage gameStartInitialMessage = 39; +inline bool PokerTHMessage::_internal_has_gamestartinitialmessage() const { + bool value = (_has_bits_[1] & 0x00000020u) != 0; + PROTOBUF_ASSUME(!value || gamestartinitialmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_gamestartinitialmessage() const { - return (_has_bits_[1] & 0x00000040u) != 0; -} -inline void PokerTHMessage::set_has_gamestartinitialmessage() { - _has_bits_[1] |= 0x00000040u; -} -inline void PokerTHMessage::clear_has_gamestartinitialmessage() { - _has_bits_[1] &= ~0x00000040u; + return _internal_has_gamestartinitialmessage(); } inline void PokerTHMessage::clear_gamestartinitialmessage() { - if (gamestartinitialmessage_ != NULL) gamestartinitialmessage_->::GameStartInitialMessage::Clear(); - clear_has_gamestartinitialmessage(); + if (gamestartinitialmessage_ != nullptr) gamestartinitialmessage_->Clear(); + _has_bits_[1] &= ~0x00000020u; +} +inline const ::GameStartInitialMessage& PokerTHMessage::_internal_gamestartinitialmessage() const { + const ::GameStartInitialMessage* p = gamestartinitialmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_GameStartInitialMessage_default_instance_); } inline const ::GameStartInitialMessage& PokerTHMessage::gamestartinitialmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamestartinitialmessage_ != NULL ? *gamestartinitialmessage_ : *default_instance().gamestartinitialmessage_; -#else - return gamestartinitialmessage_ != NULL ? *gamestartinitialmessage_ : *default_instance_->gamestartinitialmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.gameStartInitialMessage) + return _internal_gamestartinitialmessage(); } -inline ::GameStartInitialMessage* PokerTHMessage::mutable_gamestartinitialmessage() { - set_has_gamestartinitialmessage(); - if (gamestartinitialmessage_ == NULL) gamestartinitialmessage_ = new ::GameStartInitialMessage; - return gamestartinitialmessage_; -} -inline ::GameStartInitialMessage* PokerTHMessage::release_gamestartinitialmessage() { - clear_has_gamestartinitialmessage(); - ::GameStartInitialMessage* temp = gamestartinitialmessage_; - gamestartinitialmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_gamestartinitialmessage(::GameStartInitialMessage* gamestartinitialmessage) { - delete gamestartinitialmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_gamestartinitialmessage( + ::GameStartInitialMessage* gamestartinitialmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(gamestartinitialmessage_); + } gamestartinitialmessage_ = gamestartinitialmessage; if (gamestartinitialmessage) { - set_has_gamestartinitialmessage(); + _has_bits_[1] |= 0x00000020u; } else { - clear_has_gamestartinitialmessage(); + _has_bits_[1] &= ~0x00000020u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.gameStartInitialMessage) +} +inline ::GameStartInitialMessage* PokerTHMessage::release_gamestartinitialmessage() { + auto temp = unsafe_arena_release_gamestartinitialmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::GameStartInitialMessage* PokerTHMessage::unsafe_arena_release_gamestartinitialmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.gameStartInitialMessage) + _has_bits_[1] &= ~0x00000020u; + ::GameStartInitialMessage* temp = gamestartinitialmessage_; + gamestartinitialmessage_ = nullptr; + return temp; +} +inline ::GameStartInitialMessage* PokerTHMessage::_internal_mutable_gamestartinitialmessage() { + _has_bits_[1] |= 0x00000020u; + if (gamestartinitialmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameStartInitialMessage>(GetArena()); + gamestartinitialmessage_ = p; + } + return gamestartinitialmessage_; +} +inline ::GameStartInitialMessage* PokerTHMessage::mutable_gamestartinitialmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameStartInitialMessage) + return _internal_mutable_gamestartinitialmessage(); +} +inline void PokerTHMessage::set_allocated_gamestartinitialmessage(::GameStartInitialMessage* gamestartinitialmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete gamestartinitialmessage_; + } + if (gamestartinitialmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(gamestartinitialmessage); + if (message_arena != submessage_arena) { + gamestartinitialmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, gamestartinitialmessage, submessage_arena); + } + _has_bits_[1] |= 0x00000020u; + } else { + _has_bits_[1] &= ~0x00000020u; + } + gamestartinitialmessage_ = gamestartinitialmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.gameStartInitialMessage) } // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; +inline bool PokerTHMessage::_internal_has_gamestartrejoinmessage() const { + bool value = (_has_bits_[1] & 0x00000040u) != 0; + PROTOBUF_ASSUME(!value || gamestartrejoinmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_gamestartrejoinmessage() const { - return (_has_bits_[1] & 0x00000080u) != 0; -} -inline void PokerTHMessage::set_has_gamestartrejoinmessage() { - _has_bits_[1] |= 0x00000080u; -} -inline void PokerTHMessage::clear_has_gamestartrejoinmessage() { - _has_bits_[1] &= ~0x00000080u; + return _internal_has_gamestartrejoinmessage(); } inline void PokerTHMessage::clear_gamestartrejoinmessage() { - if (gamestartrejoinmessage_ != NULL) gamestartrejoinmessage_->::GameStartRejoinMessage::Clear(); - clear_has_gamestartrejoinmessage(); + if (gamestartrejoinmessage_ != nullptr) gamestartrejoinmessage_->Clear(); + _has_bits_[1] &= ~0x00000040u; +} +inline const ::GameStartRejoinMessage& PokerTHMessage::_internal_gamestartrejoinmessage() const { + const ::GameStartRejoinMessage* p = gamestartrejoinmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_GameStartRejoinMessage_default_instance_); } inline const ::GameStartRejoinMessage& PokerTHMessage::gamestartrejoinmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamestartrejoinmessage_ != NULL ? *gamestartrejoinmessage_ : *default_instance().gamestartrejoinmessage_; -#else - return gamestartrejoinmessage_ != NULL ? *gamestartrejoinmessage_ : *default_instance_->gamestartrejoinmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.gameStartRejoinMessage) + return _internal_gamestartrejoinmessage(); } -inline ::GameStartRejoinMessage* PokerTHMessage::mutable_gamestartrejoinmessage() { - set_has_gamestartrejoinmessage(); - if (gamestartrejoinmessage_ == NULL) gamestartrejoinmessage_ = new ::GameStartRejoinMessage; - return gamestartrejoinmessage_; -} -inline ::GameStartRejoinMessage* PokerTHMessage::release_gamestartrejoinmessage() { - clear_has_gamestartrejoinmessage(); - ::GameStartRejoinMessage* temp = gamestartrejoinmessage_; - gamestartrejoinmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_gamestartrejoinmessage(::GameStartRejoinMessage* gamestartrejoinmessage) { - delete gamestartrejoinmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_gamestartrejoinmessage( + ::GameStartRejoinMessage* gamestartrejoinmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(gamestartrejoinmessage_); + } gamestartrejoinmessage_ = gamestartrejoinmessage; if (gamestartrejoinmessage) { - set_has_gamestartrejoinmessage(); + _has_bits_[1] |= 0x00000040u; } else { - clear_has_gamestartrejoinmessage(); + _has_bits_[1] &= ~0x00000040u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.gameStartRejoinMessage) +} +inline ::GameStartRejoinMessage* PokerTHMessage::release_gamestartrejoinmessage() { + auto temp = unsafe_arena_release_gamestartrejoinmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::GameStartRejoinMessage* PokerTHMessage::unsafe_arena_release_gamestartrejoinmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.gameStartRejoinMessage) + _has_bits_[1] &= ~0x00000040u; + ::GameStartRejoinMessage* temp = gamestartrejoinmessage_; + gamestartrejoinmessage_ = nullptr; + return temp; +} +inline ::GameStartRejoinMessage* PokerTHMessage::_internal_mutable_gamestartrejoinmessage() { + _has_bits_[1] |= 0x00000040u; + if (gamestartrejoinmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameStartRejoinMessage>(GetArena()); + gamestartrejoinmessage_ = p; + } + return gamestartrejoinmessage_; +} +inline ::GameStartRejoinMessage* PokerTHMessage::mutable_gamestartrejoinmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameStartRejoinMessage) + return _internal_mutable_gamestartrejoinmessage(); +} +inline void PokerTHMessage::set_allocated_gamestartrejoinmessage(::GameStartRejoinMessage* gamestartrejoinmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete gamestartrejoinmessage_; + } + if (gamestartrejoinmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(gamestartrejoinmessage); + if (message_arena != submessage_arena) { + gamestartrejoinmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, gamestartrejoinmessage, submessage_arena); + } + _has_bits_[1] |= 0x00000040u; + } else { + _has_bits_[1] &= ~0x00000040u; + } + gamestartrejoinmessage_ = gamestartrejoinmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.gameStartRejoinMessage) } // optional .HandStartMessage handStartMessage = 41; +inline bool PokerTHMessage::_internal_has_handstartmessage() const { + bool value = (_has_bits_[1] & 0x00000080u) != 0; + PROTOBUF_ASSUME(!value || handstartmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_handstartmessage() const { - return (_has_bits_[1] & 0x00000100u) != 0; -} -inline void PokerTHMessage::set_has_handstartmessage() { - _has_bits_[1] |= 0x00000100u; -} -inline void PokerTHMessage::clear_has_handstartmessage() { - _has_bits_[1] &= ~0x00000100u; + return _internal_has_handstartmessage(); } inline void PokerTHMessage::clear_handstartmessage() { - if (handstartmessage_ != NULL) handstartmessage_->::HandStartMessage::Clear(); - clear_has_handstartmessage(); + if (handstartmessage_ != nullptr) handstartmessage_->Clear(); + _has_bits_[1] &= ~0x00000080u; +} +inline const ::HandStartMessage& PokerTHMessage::_internal_handstartmessage() const { + const ::HandStartMessage* p = handstartmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_HandStartMessage_default_instance_); } inline const ::HandStartMessage& PokerTHMessage::handstartmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return handstartmessage_ != NULL ? *handstartmessage_ : *default_instance().handstartmessage_; -#else - return handstartmessage_ != NULL ? *handstartmessage_ : *default_instance_->handstartmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.handStartMessage) + return _internal_handstartmessage(); } -inline ::HandStartMessage* PokerTHMessage::mutable_handstartmessage() { - set_has_handstartmessage(); - if (handstartmessage_ == NULL) handstartmessage_ = new ::HandStartMessage; - return handstartmessage_; -} -inline ::HandStartMessage* PokerTHMessage::release_handstartmessage() { - clear_has_handstartmessage(); - ::HandStartMessage* temp = handstartmessage_; - handstartmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_handstartmessage(::HandStartMessage* handstartmessage) { - delete handstartmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_handstartmessage( + ::HandStartMessage* handstartmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(handstartmessage_); + } handstartmessage_ = handstartmessage; if (handstartmessage) { - set_has_handstartmessage(); + _has_bits_[1] |= 0x00000080u; } else { - clear_has_handstartmessage(); + _has_bits_[1] &= ~0x00000080u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.handStartMessage) +} +inline ::HandStartMessage* PokerTHMessage::release_handstartmessage() { + auto temp = unsafe_arena_release_handstartmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::HandStartMessage* PokerTHMessage::unsafe_arena_release_handstartmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.handStartMessage) + _has_bits_[1] &= ~0x00000080u; + ::HandStartMessage* temp = handstartmessage_; + handstartmessage_ = nullptr; + return temp; +} +inline ::HandStartMessage* PokerTHMessage::_internal_mutable_handstartmessage() { + _has_bits_[1] |= 0x00000080u; + if (handstartmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::HandStartMessage>(GetArena()); + handstartmessage_ = p; + } + return handstartmessage_; +} +inline ::HandStartMessage* PokerTHMessage::mutable_handstartmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.handStartMessage) + return _internal_mutable_handstartmessage(); +} +inline void PokerTHMessage::set_allocated_handstartmessage(::HandStartMessage* handstartmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete handstartmessage_; + } + if (handstartmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(handstartmessage); + if (message_arena != submessage_arena) { + handstartmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, handstartmessage, submessage_arena); + } + _has_bits_[1] |= 0x00000080u; + } else { + _has_bits_[1] &= ~0x00000080u; + } + handstartmessage_ = handstartmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.handStartMessage) } // optional .PlayersTurnMessage playersTurnMessage = 42; +inline bool PokerTHMessage::_internal_has_playersturnmessage() const { + bool value = (_has_bits_[1] & 0x00000100u) != 0; + PROTOBUF_ASSUME(!value || playersturnmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_playersturnmessage() const { - return (_has_bits_[1] & 0x00000200u) != 0; -} -inline void PokerTHMessage::set_has_playersturnmessage() { - _has_bits_[1] |= 0x00000200u; -} -inline void PokerTHMessage::clear_has_playersturnmessage() { - _has_bits_[1] &= ~0x00000200u; + return _internal_has_playersturnmessage(); } inline void PokerTHMessage::clear_playersturnmessage() { - if (playersturnmessage_ != NULL) playersturnmessage_->::PlayersTurnMessage::Clear(); - clear_has_playersturnmessage(); + if (playersturnmessage_ != nullptr) playersturnmessage_->Clear(); + _has_bits_[1] &= ~0x00000100u; +} +inline const ::PlayersTurnMessage& PokerTHMessage::_internal_playersturnmessage() const { + const ::PlayersTurnMessage* p = playersturnmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_PlayersTurnMessage_default_instance_); } inline const ::PlayersTurnMessage& PokerTHMessage::playersturnmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return playersturnmessage_ != NULL ? *playersturnmessage_ : *default_instance().playersturnmessage_; -#else - return playersturnmessage_ != NULL ? *playersturnmessage_ : *default_instance_->playersturnmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.playersTurnMessage) + return _internal_playersturnmessage(); } -inline ::PlayersTurnMessage* PokerTHMessage::mutable_playersturnmessage() { - set_has_playersturnmessage(); - if (playersturnmessage_ == NULL) playersturnmessage_ = new ::PlayersTurnMessage; - return playersturnmessage_; -} -inline ::PlayersTurnMessage* PokerTHMessage::release_playersturnmessage() { - clear_has_playersturnmessage(); - ::PlayersTurnMessage* temp = playersturnmessage_; - playersturnmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_playersturnmessage(::PlayersTurnMessage* playersturnmessage) { - delete playersturnmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_playersturnmessage( + ::PlayersTurnMessage* playersturnmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(playersturnmessage_); + } playersturnmessage_ = playersturnmessage; if (playersturnmessage) { - set_has_playersturnmessage(); + _has_bits_[1] |= 0x00000100u; } else { - clear_has_playersturnmessage(); + _has_bits_[1] &= ~0x00000100u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.playersTurnMessage) +} +inline ::PlayersTurnMessage* PokerTHMessage::release_playersturnmessage() { + auto temp = unsafe_arena_release_playersturnmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::PlayersTurnMessage* PokerTHMessage::unsafe_arena_release_playersturnmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.playersTurnMessage) + _has_bits_[1] &= ~0x00000100u; + ::PlayersTurnMessage* temp = playersturnmessage_; + playersturnmessage_ = nullptr; + return temp; +} +inline ::PlayersTurnMessage* PokerTHMessage::_internal_mutable_playersturnmessage() { + _has_bits_[1] |= 0x00000100u; + if (playersturnmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::PlayersTurnMessage>(GetArena()); + playersturnmessage_ = p; + } + return playersturnmessage_; +} +inline ::PlayersTurnMessage* PokerTHMessage::mutable_playersturnmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.playersTurnMessage) + return _internal_mutable_playersturnmessage(); +} +inline void PokerTHMessage::set_allocated_playersturnmessage(::PlayersTurnMessage* playersturnmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete playersturnmessage_; + } + if (playersturnmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(playersturnmessage); + if (message_arena != submessage_arena) { + playersturnmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, playersturnmessage, submessage_arena); + } + _has_bits_[1] |= 0x00000100u; + } else { + _has_bits_[1] &= ~0x00000100u; + } + playersturnmessage_ = playersturnmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.playersTurnMessage) } // optional .MyActionRequestMessage myActionRequestMessage = 43; +inline bool PokerTHMessage::_internal_has_myactionrequestmessage() const { + bool value = (_has_bits_[1] & 0x00000200u) != 0; + PROTOBUF_ASSUME(!value || myactionrequestmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_myactionrequestmessage() const { - return (_has_bits_[1] & 0x00000400u) != 0; -} -inline void PokerTHMessage::set_has_myactionrequestmessage() { - _has_bits_[1] |= 0x00000400u; -} -inline void PokerTHMessage::clear_has_myactionrequestmessage() { - _has_bits_[1] &= ~0x00000400u; + return _internal_has_myactionrequestmessage(); } inline void PokerTHMessage::clear_myactionrequestmessage() { - if (myactionrequestmessage_ != NULL) myactionrequestmessage_->::MyActionRequestMessage::Clear(); - clear_has_myactionrequestmessage(); + if (myactionrequestmessage_ != nullptr) myactionrequestmessage_->Clear(); + _has_bits_[1] &= ~0x00000200u; +} +inline const ::MyActionRequestMessage& PokerTHMessage::_internal_myactionrequestmessage() const { + const ::MyActionRequestMessage* p = myactionrequestmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_MyActionRequestMessage_default_instance_); } inline const ::MyActionRequestMessage& PokerTHMessage::myactionrequestmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return myactionrequestmessage_ != NULL ? *myactionrequestmessage_ : *default_instance().myactionrequestmessage_; -#else - return myactionrequestmessage_ != NULL ? *myactionrequestmessage_ : *default_instance_->myactionrequestmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.myActionRequestMessage) + return _internal_myactionrequestmessage(); } -inline ::MyActionRequestMessage* PokerTHMessage::mutable_myactionrequestmessage() { - set_has_myactionrequestmessage(); - if (myactionrequestmessage_ == NULL) myactionrequestmessage_ = new ::MyActionRequestMessage; - return myactionrequestmessage_; -} -inline ::MyActionRequestMessage* PokerTHMessage::release_myactionrequestmessage() { - clear_has_myactionrequestmessage(); - ::MyActionRequestMessage* temp = myactionrequestmessage_; - myactionrequestmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_myactionrequestmessage(::MyActionRequestMessage* myactionrequestmessage) { - delete myactionrequestmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_myactionrequestmessage( + ::MyActionRequestMessage* myactionrequestmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(myactionrequestmessage_); + } myactionrequestmessage_ = myactionrequestmessage; if (myactionrequestmessage) { - set_has_myactionrequestmessage(); + _has_bits_[1] |= 0x00000200u; } else { - clear_has_myactionrequestmessage(); + _has_bits_[1] &= ~0x00000200u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.myActionRequestMessage) +} +inline ::MyActionRequestMessage* PokerTHMessage::release_myactionrequestmessage() { + auto temp = unsafe_arena_release_myactionrequestmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::MyActionRequestMessage* PokerTHMessage::unsafe_arena_release_myactionrequestmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.myActionRequestMessage) + _has_bits_[1] &= ~0x00000200u; + ::MyActionRequestMessage* temp = myactionrequestmessage_; + myactionrequestmessage_ = nullptr; + return temp; +} +inline ::MyActionRequestMessage* PokerTHMessage::_internal_mutable_myactionrequestmessage() { + _has_bits_[1] |= 0x00000200u; + if (myactionrequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::MyActionRequestMessage>(GetArena()); + myactionrequestmessage_ = p; + } + return myactionrequestmessage_; +} +inline ::MyActionRequestMessage* PokerTHMessage::mutable_myactionrequestmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.myActionRequestMessage) + return _internal_mutable_myactionrequestmessage(); +} +inline void PokerTHMessage::set_allocated_myactionrequestmessage(::MyActionRequestMessage* myactionrequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete myactionrequestmessage_; + } + if (myactionrequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(myactionrequestmessage); + if (message_arena != submessage_arena) { + myactionrequestmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, myactionrequestmessage, submessage_arena); + } + _has_bits_[1] |= 0x00000200u; + } else { + _has_bits_[1] &= ~0x00000200u; + } + myactionrequestmessage_ = myactionrequestmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.myActionRequestMessage) } // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; +inline bool PokerTHMessage::_internal_has_youractionrejectedmessage() const { + bool value = (_has_bits_[1] & 0x00000400u) != 0; + PROTOBUF_ASSUME(!value || youractionrejectedmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_youractionrejectedmessage() const { - return (_has_bits_[1] & 0x00000800u) != 0; -} -inline void PokerTHMessage::set_has_youractionrejectedmessage() { - _has_bits_[1] |= 0x00000800u; -} -inline void PokerTHMessage::clear_has_youractionrejectedmessage() { - _has_bits_[1] &= ~0x00000800u; + return _internal_has_youractionrejectedmessage(); } inline void PokerTHMessage::clear_youractionrejectedmessage() { - if (youractionrejectedmessage_ != NULL) youractionrejectedmessage_->::YourActionRejectedMessage::Clear(); - clear_has_youractionrejectedmessage(); + if (youractionrejectedmessage_ != nullptr) youractionrejectedmessage_->Clear(); + _has_bits_[1] &= ~0x00000400u; +} +inline const ::YourActionRejectedMessage& PokerTHMessage::_internal_youractionrejectedmessage() const { + const ::YourActionRejectedMessage* p = youractionrejectedmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_YourActionRejectedMessage_default_instance_); } inline const ::YourActionRejectedMessage& PokerTHMessage::youractionrejectedmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return youractionrejectedmessage_ != NULL ? *youractionrejectedmessage_ : *default_instance().youractionrejectedmessage_; -#else - return youractionrejectedmessage_ != NULL ? *youractionrejectedmessage_ : *default_instance_->youractionrejectedmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.yourActionRejectedMessage) + return _internal_youractionrejectedmessage(); } -inline ::YourActionRejectedMessage* PokerTHMessage::mutable_youractionrejectedmessage() { - set_has_youractionrejectedmessage(); - if (youractionrejectedmessage_ == NULL) youractionrejectedmessage_ = new ::YourActionRejectedMessage; - return youractionrejectedmessage_; -} -inline ::YourActionRejectedMessage* PokerTHMessage::release_youractionrejectedmessage() { - clear_has_youractionrejectedmessage(); - ::YourActionRejectedMessage* temp = youractionrejectedmessage_; - youractionrejectedmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_youractionrejectedmessage(::YourActionRejectedMessage* youractionrejectedmessage) { - delete youractionrejectedmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_youractionrejectedmessage( + ::YourActionRejectedMessage* youractionrejectedmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(youractionrejectedmessage_); + } youractionrejectedmessage_ = youractionrejectedmessage; if (youractionrejectedmessage) { - set_has_youractionrejectedmessage(); + _has_bits_[1] |= 0x00000400u; } else { - clear_has_youractionrejectedmessage(); + _has_bits_[1] &= ~0x00000400u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.yourActionRejectedMessage) +} +inline ::YourActionRejectedMessage* PokerTHMessage::release_youractionrejectedmessage() { + auto temp = unsafe_arena_release_youractionrejectedmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::YourActionRejectedMessage* PokerTHMessage::unsafe_arena_release_youractionrejectedmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.yourActionRejectedMessage) + _has_bits_[1] &= ~0x00000400u; + ::YourActionRejectedMessage* temp = youractionrejectedmessage_; + youractionrejectedmessage_ = nullptr; + return temp; +} +inline ::YourActionRejectedMessage* PokerTHMessage::_internal_mutable_youractionrejectedmessage() { + _has_bits_[1] |= 0x00000400u; + if (youractionrejectedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::YourActionRejectedMessage>(GetArena()); + youractionrejectedmessage_ = p; + } + return youractionrejectedmessage_; +} +inline ::YourActionRejectedMessage* PokerTHMessage::mutable_youractionrejectedmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.yourActionRejectedMessage) + return _internal_mutable_youractionrejectedmessage(); +} +inline void PokerTHMessage::set_allocated_youractionrejectedmessage(::YourActionRejectedMessage* youractionrejectedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete youractionrejectedmessage_; + } + if (youractionrejectedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(youractionrejectedmessage); + if (message_arena != submessage_arena) { + youractionrejectedmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, youractionrejectedmessage, submessage_arena); + } + _has_bits_[1] |= 0x00000400u; + } else { + _has_bits_[1] &= ~0x00000400u; + } + youractionrejectedmessage_ = youractionrejectedmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.yourActionRejectedMessage) } // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; +inline bool PokerTHMessage::_internal_has_playersactiondonemessage() const { + bool value = (_has_bits_[1] & 0x00000800u) != 0; + PROTOBUF_ASSUME(!value || playersactiondonemessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_playersactiondonemessage() const { - return (_has_bits_[1] & 0x00001000u) != 0; -} -inline void PokerTHMessage::set_has_playersactiondonemessage() { - _has_bits_[1] |= 0x00001000u; -} -inline void PokerTHMessage::clear_has_playersactiondonemessage() { - _has_bits_[1] &= ~0x00001000u; + return _internal_has_playersactiondonemessage(); } inline void PokerTHMessage::clear_playersactiondonemessage() { - if (playersactiondonemessage_ != NULL) playersactiondonemessage_->::PlayersActionDoneMessage::Clear(); - clear_has_playersactiondonemessage(); + if (playersactiondonemessage_ != nullptr) playersactiondonemessage_->Clear(); + _has_bits_[1] &= ~0x00000800u; +} +inline const ::PlayersActionDoneMessage& PokerTHMessage::_internal_playersactiondonemessage() const { + const ::PlayersActionDoneMessage* p = playersactiondonemessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_PlayersActionDoneMessage_default_instance_); } inline const ::PlayersActionDoneMessage& PokerTHMessage::playersactiondonemessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return playersactiondonemessage_ != NULL ? *playersactiondonemessage_ : *default_instance().playersactiondonemessage_; -#else - return playersactiondonemessage_ != NULL ? *playersactiondonemessage_ : *default_instance_->playersactiondonemessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.playersActionDoneMessage) + return _internal_playersactiondonemessage(); } -inline ::PlayersActionDoneMessage* PokerTHMessage::mutable_playersactiondonemessage() { - set_has_playersactiondonemessage(); - if (playersactiondonemessage_ == NULL) playersactiondonemessage_ = new ::PlayersActionDoneMessage; - return playersactiondonemessage_; -} -inline ::PlayersActionDoneMessage* PokerTHMessage::release_playersactiondonemessage() { - clear_has_playersactiondonemessage(); - ::PlayersActionDoneMessage* temp = playersactiondonemessage_; - playersactiondonemessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_playersactiondonemessage(::PlayersActionDoneMessage* playersactiondonemessage) { - delete playersactiondonemessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_playersactiondonemessage( + ::PlayersActionDoneMessage* playersactiondonemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(playersactiondonemessage_); + } playersactiondonemessage_ = playersactiondonemessage; if (playersactiondonemessage) { - set_has_playersactiondonemessage(); + _has_bits_[1] |= 0x00000800u; } else { - clear_has_playersactiondonemessage(); + _has_bits_[1] &= ~0x00000800u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.playersActionDoneMessage) +} +inline ::PlayersActionDoneMessage* PokerTHMessage::release_playersactiondonemessage() { + auto temp = unsafe_arena_release_playersactiondonemessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::PlayersActionDoneMessage* PokerTHMessage::unsafe_arena_release_playersactiondonemessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.playersActionDoneMessage) + _has_bits_[1] &= ~0x00000800u; + ::PlayersActionDoneMessage* temp = playersactiondonemessage_; + playersactiondonemessage_ = nullptr; + return temp; +} +inline ::PlayersActionDoneMessage* PokerTHMessage::_internal_mutable_playersactiondonemessage() { + _has_bits_[1] |= 0x00000800u; + if (playersactiondonemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::PlayersActionDoneMessage>(GetArena()); + playersactiondonemessage_ = p; + } + return playersactiondonemessage_; +} +inline ::PlayersActionDoneMessage* PokerTHMessage::mutable_playersactiondonemessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.playersActionDoneMessage) + return _internal_mutable_playersactiondonemessage(); +} +inline void PokerTHMessage::set_allocated_playersactiondonemessage(::PlayersActionDoneMessage* playersactiondonemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete playersactiondonemessage_; + } + if (playersactiondonemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(playersactiondonemessage); + if (message_arena != submessage_arena) { + playersactiondonemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, playersactiondonemessage, submessage_arena); + } + _has_bits_[1] |= 0x00000800u; + } else { + _has_bits_[1] &= ~0x00000800u; + } + playersactiondonemessage_ = playersactiondonemessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.playersActionDoneMessage) } // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; +inline bool PokerTHMessage::_internal_has_dealflopcardsmessage() const { + bool value = (_has_bits_[1] & 0x00001000u) != 0; + PROTOBUF_ASSUME(!value || dealflopcardsmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_dealflopcardsmessage() const { - return (_has_bits_[1] & 0x00002000u) != 0; -} -inline void PokerTHMessage::set_has_dealflopcardsmessage() { - _has_bits_[1] |= 0x00002000u; -} -inline void PokerTHMessage::clear_has_dealflopcardsmessage() { - _has_bits_[1] &= ~0x00002000u; + return _internal_has_dealflopcardsmessage(); } inline void PokerTHMessage::clear_dealflopcardsmessage() { - if (dealflopcardsmessage_ != NULL) dealflopcardsmessage_->::DealFlopCardsMessage::Clear(); - clear_has_dealflopcardsmessage(); + if (dealflopcardsmessage_ != nullptr) dealflopcardsmessage_->Clear(); + _has_bits_[1] &= ~0x00001000u; +} +inline const ::DealFlopCardsMessage& PokerTHMessage::_internal_dealflopcardsmessage() const { + const ::DealFlopCardsMessage* p = dealflopcardsmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_DealFlopCardsMessage_default_instance_); } inline const ::DealFlopCardsMessage& PokerTHMessage::dealflopcardsmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return dealflopcardsmessage_ != NULL ? *dealflopcardsmessage_ : *default_instance().dealflopcardsmessage_; -#else - return dealflopcardsmessage_ != NULL ? *dealflopcardsmessage_ : *default_instance_->dealflopcardsmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.dealFlopCardsMessage) + return _internal_dealflopcardsmessage(); } -inline ::DealFlopCardsMessage* PokerTHMessage::mutable_dealflopcardsmessage() { - set_has_dealflopcardsmessage(); - if (dealflopcardsmessage_ == NULL) dealflopcardsmessage_ = new ::DealFlopCardsMessage; - return dealflopcardsmessage_; -} -inline ::DealFlopCardsMessage* PokerTHMessage::release_dealflopcardsmessage() { - clear_has_dealflopcardsmessage(); - ::DealFlopCardsMessage* temp = dealflopcardsmessage_; - dealflopcardsmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_dealflopcardsmessage(::DealFlopCardsMessage* dealflopcardsmessage) { - delete dealflopcardsmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_dealflopcardsmessage( + ::DealFlopCardsMessage* dealflopcardsmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(dealflopcardsmessage_); + } dealflopcardsmessage_ = dealflopcardsmessage; if (dealflopcardsmessage) { - set_has_dealflopcardsmessage(); + _has_bits_[1] |= 0x00001000u; } else { - clear_has_dealflopcardsmessage(); + _has_bits_[1] &= ~0x00001000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.dealFlopCardsMessage) +} +inline ::DealFlopCardsMessage* PokerTHMessage::release_dealflopcardsmessage() { + auto temp = unsafe_arena_release_dealflopcardsmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::DealFlopCardsMessage* PokerTHMessage::unsafe_arena_release_dealflopcardsmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.dealFlopCardsMessage) + _has_bits_[1] &= ~0x00001000u; + ::DealFlopCardsMessage* temp = dealflopcardsmessage_; + dealflopcardsmessage_ = nullptr; + return temp; +} +inline ::DealFlopCardsMessage* PokerTHMessage::_internal_mutable_dealflopcardsmessage() { + _has_bits_[1] |= 0x00001000u; + if (dealflopcardsmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::DealFlopCardsMessage>(GetArena()); + dealflopcardsmessage_ = p; + } + return dealflopcardsmessage_; +} +inline ::DealFlopCardsMessage* PokerTHMessage::mutable_dealflopcardsmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.dealFlopCardsMessage) + return _internal_mutable_dealflopcardsmessage(); +} +inline void PokerTHMessage::set_allocated_dealflopcardsmessage(::DealFlopCardsMessage* dealflopcardsmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete dealflopcardsmessage_; + } + if (dealflopcardsmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(dealflopcardsmessage); + if (message_arena != submessage_arena) { + dealflopcardsmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, dealflopcardsmessage, submessage_arena); + } + _has_bits_[1] |= 0x00001000u; + } else { + _has_bits_[1] &= ~0x00001000u; + } + dealflopcardsmessage_ = dealflopcardsmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.dealFlopCardsMessage) } // optional .DealTurnCardMessage dealTurnCardMessage = 47; +inline bool PokerTHMessage::_internal_has_dealturncardmessage() const { + bool value = (_has_bits_[1] & 0x00002000u) != 0; + PROTOBUF_ASSUME(!value || dealturncardmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_dealturncardmessage() const { - return (_has_bits_[1] & 0x00004000u) != 0; -} -inline void PokerTHMessage::set_has_dealturncardmessage() { - _has_bits_[1] |= 0x00004000u; -} -inline void PokerTHMessage::clear_has_dealturncardmessage() { - _has_bits_[1] &= ~0x00004000u; + return _internal_has_dealturncardmessage(); } inline void PokerTHMessage::clear_dealturncardmessage() { - if (dealturncardmessage_ != NULL) dealturncardmessage_->::DealTurnCardMessage::Clear(); - clear_has_dealturncardmessage(); + if (dealturncardmessage_ != nullptr) dealturncardmessage_->Clear(); + _has_bits_[1] &= ~0x00002000u; +} +inline const ::DealTurnCardMessage& PokerTHMessage::_internal_dealturncardmessage() const { + const ::DealTurnCardMessage* p = dealturncardmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_DealTurnCardMessage_default_instance_); } inline const ::DealTurnCardMessage& PokerTHMessage::dealturncardmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return dealturncardmessage_ != NULL ? *dealturncardmessage_ : *default_instance().dealturncardmessage_; -#else - return dealturncardmessage_ != NULL ? *dealturncardmessage_ : *default_instance_->dealturncardmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.dealTurnCardMessage) + return _internal_dealturncardmessage(); } -inline ::DealTurnCardMessage* PokerTHMessage::mutable_dealturncardmessage() { - set_has_dealturncardmessage(); - if (dealturncardmessage_ == NULL) dealturncardmessage_ = new ::DealTurnCardMessage; - return dealturncardmessage_; -} -inline ::DealTurnCardMessage* PokerTHMessage::release_dealturncardmessage() { - clear_has_dealturncardmessage(); - ::DealTurnCardMessage* temp = dealturncardmessage_; - dealturncardmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_dealturncardmessage(::DealTurnCardMessage* dealturncardmessage) { - delete dealturncardmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_dealturncardmessage( + ::DealTurnCardMessage* dealturncardmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(dealturncardmessage_); + } dealturncardmessage_ = dealturncardmessage; if (dealturncardmessage) { - set_has_dealturncardmessage(); + _has_bits_[1] |= 0x00002000u; } else { - clear_has_dealturncardmessage(); + _has_bits_[1] &= ~0x00002000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.dealTurnCardMessage) +} +inline ::DealTurnCardMessage* PokerTHMessage::release_dealturncardmessage() { + auto temp = unsafe_arena_release_dealturncardmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::DealTurnCardMessage* PokerTHMessage::unsafe_arena_release_dealturncardmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.dealTurnCardMessage) + _has_bits_[1] &= ~0x00002000u; + ::DealTurnCardMessage* temp = dealturncardmessage_; + dealturncardmessage_ = nullptr; + return temp; +} +inline ::DealTurnCardMessage* PokerTHMessage::_internal_mutable_dealturncardmessage() { + _has_bits_[1] |= 0x00002000u; + if (dealturncardmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::DealTurnCardMessage>(GetArena()); + dealturncardmessage_ = p; + } + return dealturncardmessage_; +} +inline ::DealTurnCardMessage* PokerTHMessage::mutable_dealturncardmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.dealTurnCardMessage) + return _internal_mutable_dealturncardmessage(); +} +inline void PokerTHMessage::set_allocated_dealturncardmessage(::DealTurnCardMessage* dealturncardmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete dealturncardmessage_; + } + if (dealturncardmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(dealturncardmessage); + if (message_arena != submessage_arena) { + dealturncardmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, dealturncardmessage, submessage_arena); + } + _has_bits_[1] |= 0x00002000u; + } else { + _has_bits_[1] &= ~0x00002000u; + } + dealturncardmessage_ = dealturncardmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.dealTurnCardMessage) } // optional .DealRiverCardMessage dealRiverCardMessage = 48; +inline bool PokerTHMessage::_internal_has_dealrivercardmessage() const { + bool value = (_has_bits_[1] & 0x00004000u) != 0; + PROTOBUF_ASSUME(!value || dealrivercardmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_dealrivercardmessage() const { - return (_has_bits_[1] & 0x00008000u) != 0; -} -inline void PokerTHMessage::set_has_dealrivercardmessage() { - _has_bits_[1] |= 0x00008000u; -} -inline void PokerTHMessage::clear_has_dealrivercardmessage() { - _has_bits_[1] &= ~0x00008000u; + return _internal_has_dealrivercardmessage(); } inline void PokerTHMessage::clear_dealrivercardmessage() { - if (dealrivercardmessage_ != NULL) dealrivercardmessage_->::DealRiverCardMessage::Clear(); - clear_has_dealrivercardmessage(); + if (dealrivercardmessage_ != nullptr) dealrivercardmessage_->Clear(); + _has_bits_[1] &= ~0x00004000u; +} +inline const ::DealRiverCardMessage& PokerTHMessage::_internal_dealrivercardmessage() const { + const ::DealRiverCardMessage* p = dealrivercardmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_DealRiverCardMessage_default_instance_); } inline const ::DealRiverCardMessage& PokerTHMessage::dealrivercardmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return dealrivercardmessage_ != NULL ? *dealrivercardmessage_ : *default_instance().dealrivercardmessage_; -#else - return dealrivercardmessage_ != NULL ? *dealrivercardmessage_ : *default_instance_->dealrivercardmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.dealRiverCardMessage) + return _internal_dealrivercardmessage(); } -inline ::DealRiverCardMessage* PokerTHMessage::mutable_dealrivercardmessage() { - set_has_dealrivercardmessage(); - if (dealrivercardmessage_ == NULL) dealrivercardmessage_ = new ::DealRiverCardMessage; - return dealrivercardmessage_; -} -inline ::DealRiverCardMessage* PokerTHMessage::release_dealrivercardmessage() { - clear_has_dealrivercardmessage(); - ::DealRiverCardMessage* temp = dealrivercardmessage_; - dealrivercardmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_dealrivercardmessage(::DealRiverCardMessage* dealrivercardmessage) { - delete dealrivercardmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_dealrivercardmessage( + ::DealRiverCardMessage* dealrivercardmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(dealrivercardmessage_); + } dealrivercardmessage_ = dealrivercardmessage; if (dealrivercardmessage) { - set_has_dealrivercardmessage(); + _has_bits_[1] |= 0x00004000u; } else { - clear_has_dealrivercardmessage(); + _has_bits_[1] &= ~0x00004000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.dealRiverCardMessage) +} +inline ::DealRiverCardMessage* PokerTHMessage::release_dealrivercardmessage() { + auto temp = unsafe_arena_release_dealrivercardmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::DealRiverCardMessage* PokerTHMessage::unsafe_arena_release_dealrivercardmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.dealRiverCardMessage) + _has_bits_[1] &= ~0x00004000u; + ::DealRiverCardMessage* temp = dealrivercardmessage_; + dealrivercardmessage_ = nullptr; + return temp; +} +inline ::DealRiverCardMessage* PokerTHMessage::_internal_mutable_dealrivercardmessage() { + _has_bits_[1] |= 0x00004000u; + if (dealrivercardmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::DealRiverCardMessage>(GetArena()); + dealrivercardmessage_ = p; + } + return dealrivercardmessage_; +} +inline ::DealRiverCardMessage* PokerTHMessage::mutable_dealrivercardmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.dealRiverCardMessage) + return _internal_mutable_dealrivercardmessage(); +} +inline void PokerTHMessage::set_allocated_dealrivercardmessage(::DealRiverCardMessage* dealrivercardmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete dealrivercardmessage_; + } + if (dealrivercardmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(dealrivercardmessage); + if (message_arena != submessage_arena) { + dealrivercardmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, dealrivercardmessage, submessage_arena); + } + _has_bits_[1] |= 0x00004000u; + } else { + _has_bits_[1] &= ~0x00004000u; + } + dealrivercardmessage_ = dealrivercardmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.dealRiverCardMessage) } // optional .AllInShowCardsMessage allInShowCardsMessage = 49; +inline bool PokerTHMessage::_internal_has_allinshowcardsmessage() const { + bool value = (_has_bits_[1] & 0x00008000u) != 0; + PROTOBUF_ASSUME(!value || allinshowcardsmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_allinshowcardsmessage() const { - return (_has_bits_[1] & 0x00010000u) != 0; -} -inline void PokerTHMessage::set_has_allinshowcardsmessage() { - _has_bits_[1] |= 0x00010000u; -} -inline void PokerTHMessage::clear_has_allinshowcardsmessage() { - _has_bits_[1] &= ~0x00010000u; + return _internal_has_allinshowcardsmessage(); } inline void PokerTHMessage::clear_allinshowcardsmessage() { - if (allinshowcardsmessage_ != NULL) allinshowcardsmessage_->::AllInShowCardsMessage::Clear(); - clear_has_allinshowcardsmessage(); + if (allinshowcardsmessage_ != nullptr) allinshowcardsmessage_->Clear(); + _has_bits_[1] &= ~0x00008000u; +} +inline const ::AllInShowCardsMessage& PokerTHMessage::_internal_allinshowcardsmessage() const { + const ::AllInShowCardsMessage* p = allinshowcardsmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_AllInShowCardsMessage_default_instance_); } inline const ::AllInShowCardsMessage& PokerTHMessage::allinshowcardsmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return allinshowcardsmessage_ != NULL ? *allinshowcardsmessage_ : *default_instance().allinshowcardsmessage_; -#else - return allinshowcardsmessage_ != NULL ? *allinshowcardsmessage_ : *default_instance_->allinshowcardsmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.allInShowCardsMessage) + return _internal_allinshowcardsmessage(); } -inline ::AllInShowCardsMessage* PokerTHMessage::mutable_allinshowcardsmessage() { - set_has_allinshowcardsmessage(); - if (allinshowcardsmessage_ == NULL) allinshowcardsmessage_ = new ::AllInShowCardsMessage; - return allinshowcardsmessage_; -} -inline ::AllInShowCardsMessage* PokerTHMessage::release_allinshowcardsmessage() { - clear_has_allinshowcardsmessage(); - ::AllInShowCardsMessage* temp = allinshowcardsmessage_; - allinshowcardsmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_allinshowcardsmessage(::AllInShowCardsMessage* allinshowcardsmessage) { - delete allinshowcardsmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_allinshowcardsmessage( + ::AllInShowCardsMessage* allinshowcardsmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(allinshowcardsmessage_); + } allinshowcardsmessage_ = allinshowcardsmessage; if (allinshowcardsmessage) { - set_has_allinshowcardsmessage(); + _has_bits_[1] |= 0x00008000u; } else { - clear_has_allinshowcardsmessage(); + _has_bits_[1] &= ~0x00008000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.allInShowCardsMessage) +} +inline ::AllInShowCardsMessage* PokerTHMessage::release_allinshowcardsmessage() { + auto temp = unsafe_arena_release_allinshowcardsmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::AllInShowCardsMessage* PokerTHMessage::unsafe_arena_release_allinshowcardsmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.allInShowCardsMessage) + _has_bits_[1] &= ~0x00008000u; + ::AllInShowCardsMessage* temp = allinshowcardsmessage_; + allinshowcardsmessage_ = nullptr; + return temp; +} +inline ::AllInShowCardsMessage* PokerTHMessage::_internal_mutable_allinshowcardsmessage() { + _has_bits_[1] |= 0x00008000u; + if (allinshowcardsmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AllInShowCardsMessage>(GetArena()); + allinshowcardsmessage_ = p; + } + return allinshowcardsmessage_; +} +inline ::AllInShowCardsMessage* PokerTHMessage::mutable_allinshowcardsmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.allInShowCardsMessage) + return _internal_mutable_allinshowcardsmessage(); +} +inline void PokerTHMessage::set_allocated_allinshowcardsmessage(::AllInShowCardsMessage* allinshowcardsmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete allinshowcardsmessage_; + } + if (allinshowcardsmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(allinshowcardsmessage); + if (message_arena != submessage_arena) { + allinshowcardsmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, allinshowcardsmessage, submessage_arena); + } + _has_bits_[1] |= 0x00008000u; + } else { + _has_bits_[1] &= ~0x00008000u; + } + allinshowcardsmessage_ = allinshowcardsmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.allInShowCardsMessage) } // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; +inline bool PokerTHMessage::_internal_has_endofhandshowcardsmessage() const { + bool value = (_has_bits_[1] & 0x00010000u) != 0; + PROTOBUF_ASSUME(!value || endofhandshowcardsmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_endofhandshowcardsmessage() const { - return (_has_bits_[1] & 0x00020000u) != 0; -} -inline void PokerTHMessage::set_has_endofhandshowcardsmessage() { - _has_bits_[1] |= 0x00020000u; -} -inline void PokerTHMessage::clear_has_endofhandshowcardsmessage() { - _has_bits_[1] &= ~0x00020000u; + return _internal_has_endofhandshowcardsmessage(); } inline void PokerTHMessage::clear_endofhandshowcardsmessage() { - if (endofhandshowcardsmessage_ != NULL) endofhandshowcardsmessage_->::EndOfHandShowCardsMessage::Clear(); - clear_has_endofhandshowcardsmessage(); + if (endofhandshowcardsmessage_ != nullptr) endofhandshowcardsmessage_->Clear(); + _has_bits_[1] &= ~0x00010000u; +} +inline const ::EndOfHandShowCardsMessage& PokerTHMessage::_internal_endofhandshowcardsmessage() const { + const ::EndOfHandShowCardsMessage* p = endofhandshowcardsmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_EndOfHandShowCardsMessage_default_instance_); } inline const ::EndOfHandShowCardsMessage& PokerTHMessage::endofhandshowcardsmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return endofhandshowcardsmessage_ != NULL ? *endofhandshowcardsmessage_ : *default_instance().endofhandshowcardsmessage_; -#else - return endofhandshowcardsmessage_ != NULL ? *endofhandshowcardsmessage_ : *default_instance_->endofhandshowcardsmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.endOfHandShowCardsMessage) + return _internal_endofhandshowcardsmessage(); } -inline ::EndOfHandShowCardsMessage* PokerTHMessage::mutable_endofhandshowcardsmessage() { - set_has_endofhandshowcardsmessage(); - if (endofhandshowcardsmessage_ == NULL) endofhandshowcardsmessage_ = new ::EndOfHandShowCardsMessage; - return endofhandshowcardsmessage_; -} -inline ::EndOfHandShowCardsMessage* PokerTHMessage::release_endofhandshowcardsmessage() { - clear_has_endofhandshowcardsmessage(); - ::EndOfHandShowCardsMessage* temp = endofhandshowcardsmessage_; - endofhandshowcardsmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_endofhandshowcardsmessage(::EndOfHandShowCardsMessage* endofhandshowcardsmessage) { - delete endofhandshowcardsmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_endofhandshowcardsmessage( + ::EndOfHandShowCardsMessage* endofhandshowcardsmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(endofhandshowcardsmessage_); + } endofhandshowcardsmessage_ = endofhandshowcardsmessage; if (endofhandshowcardsmessage) { - set_has_endofhandshowcardsmessage(); + _has_bits_[1] |= 0x00010000u; } else { - clear_has_endofhandshowcardsmessage(); + _has_bits_[1] &= ~0x00010000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.endOfHandShowCardsMessage) +} +inline ::EndOfHandShowCardsMessage* PokerTHMessage::release_endofhandshowcardsmessage() { + auto temp = unsafe_arena_release_endofhandshowcardsmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::EndOfHandShowCardsMessage* PokerTHMessage::unsafe_arena_release_endofhandshowcardsmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.endOfHandShowCardsMessage) + _has_bits_[1] &= ~0x00010000u; + ::EndOfHandShowCardsMessage* temp = endofhandshowcardsmessage_; + endofhandshowcardsmessage_ = nullptr; + return temp; +} +inline ::EndOfHandShowCardsMessage* PokerTHMessage::_internal_mutable_endofhandshowcardsmessage() { + _has_bits_[1] |= 0x00010000u; + if (endofhandshowcardsmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::EndOfHandShowCardsMessage>(GetArena()); + endofhandshowcardsmessage_ = p; + } + return endofhandshowcardsmessage_; +} +inline ::EndOfHandShowCardsMessage* PokerTHMessage::mutable_endofhandshowcardsmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.endOfHandShowCardsMessage) + return _internal_mutable_endofhandshowcardsmessage(); +} +inline void PokerTHMessage::set_allocated_endofhandshowcardsmessage(::EndOfHandShowCardsMessage* endofhandshowcardsmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete endofhandshowcardsmessage_; + } + if (endofhandshowcardsmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(endofhandshowcardsmessage); + if (message_arena != submessage_arena) { + endofhandshowcardsmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, endofhandshowcardsmessage, submessage_arena); + } + _has_bits_[1] |= 0x00010000u; + } else { + _has_bits_[1] &= ~0x00010000u; + } + endofhandshowcardsmessage_ = endofhandshowcardsmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.endOfHandShowCardsMessage) } // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; +inline bool PokerTHMessage::_internal_has_endofhandhidecardsmessage() const { + bool value = (_has_bits_[1] & 0x00020000u) != 0; + PROTOBUF_ASSUME(!value || endofhandhidecardsmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_endofhandhidecardsmessage() const { - return (_has_bits_[1] & 0x00040000u) != 0; -} -inline void PokerTHMessage::set_has_endofhandhidecardsmessage() { - _has_bits_[1] |= 0x00040000u; -} -inline void PokerTHMessage::clear_has_endofhandhidecardsmessage() { - _has_bits_[1] &= ~0x00040000u; + return _internal_has_endofhandhidecardsmessage(); } inline void PokerTHMessage::clear_endofhandhidecardsmessage() { - if (endofhandhidecardsmessage_ != NULL) endofhandhidecardsmessage_->::EndOfHandHideCardsMessage::Clear(); - clear_has_endofhandhidecardsmessage(); + if (endofhandhidecardsmessage_ != nullptr) endofhandhidecardsmessage_->Clear(); + _has_bits_[1] &= ~0x00020000u; +} +inline const ::EndOfHandHideCardsMessage& PokerTHMessage::_internal_endofhandhidecardsmessage() const { + const ::EndOfHandHideCardsMessage* p = endofhandhidecardsmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_EndOfHandHideCardsMessage_default_instance_); } inline const ::EndOfHandHideCardsMessage& PokerTHMessage::endofhandhidecardsmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return endofhandhidecardsmessage_ != NULL ? *endofhandhidecardsmessage_ : *default_instance().endofhandhidecardsmessage_; -#else - return endofhandhidecardsmessage_ != NULL ? *endofhandhidecardsmessage_ : *default_instance_->endofhandhidecardsmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.endOfHandHideCardsMessage) + return _internal_endofhandhidecardsmessage(); } -inline ::EndOfHandHideCardsMessage* PokerTHMessage::mutable_endofhandhidecardsmessage() { - set_has_endofhandhidecardsmessage(); - if (endofhandhidecardsmessage_ == NULL) endofhandhidecardsmessage_ = new ::EndOfHandHideCardsMessage; - return endofhandhidecardsmessage_; -} -inline ::EndOfHandHideCardsMessage* PokerTHMessage::release_endofhandhidecardsmessage() { - clear_has_endofhandhidecardsmessage(); - ::EndOfHandHideCardsMessage* temp = endofhandhidecardsmessage_; - endofhandhidecardsmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_endofhandhidecardsmessage(::EndOfHandHideCardsMessage* endofhandhidecardsmessage) { - delete endofhandhidecardsmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_endofhandhidecardsmessage( + ::EndOfHandHideCardsMessage* endofhandhidecardsmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(endofhandhidecardsmessage_); + } endofhandhidecardsmessage_ = endofhandhidecardsmessage; if (endofhandhidecardsmessage) { - set_has_endofhandhidecardsmessage(); + _has_bits_[1] |= 0x00020000u; } else { - clear_has_endofhandhidecardsmessage(); + _has_bits_[1] &= ~0x00020000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.endOfHandHideCardsMessage) +} +inline ::EndOfHandHideCardsMessage* PokerTHMessage::release_endofhandhidecardsmessage() { + auto temp = unsafe_arena_release_endofhandhidecardsmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::EndOfHandHideCardsMessage* PokerTHMessage::unsafe_arena_release_endofhandhidecardsmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.endOfHandHideCardsMessage) + _has_bits_[1] &= ~0x00020000u; + ::EndOfHandHideCardsMessage* temp = endofhandhidecardsmessage_; + endofhandhidecardsmessage_ = nullptr; + return temp; +} +inline ::EndOfHandHideCardsMessage* PokerTHMessage::_internal_mutable_endofhandhidecardsmessage() { + _has_bits_[1] |= 0x00020000u; + if (endofhandhidecardsmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::EndOfHandHideCardsMessage>(GetArena()); + endofhandhidecardsmessage_ = p; + } + return endofhandhidecardsmessage_; +} +inline ::EndOfHandHideCardsMessage* PokerTHMessage::mutable_endofhandhidecardsmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.endOfHandHideCardsMessage) + return _internal_mutable_endofhandhidecardsmessage(); +} +inline void PokerTHMessage::set_allocated_endofhandhidecardsmessage(::EndOfHandHideCardsMessage* endofhandhidecardsmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete endofhandhidecardsmessage_; + } + if (endofhandhidecardsmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(endofhandhidecardsmessage); + if (message_arena != submessage_arena) { + endofhandhidecardsmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, endofhandhidecardsmessage, submessage_arena); + } + _has_bits_[1] |= 0x00020000u; + } else { + _has_bits_[1] &= ~0x00020000u; + } + endofhandhidecardsmessage_ = endofhandhidecardsmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.endOfHandHideCardsMessage) } // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; +inline bool PokerTHMessage::_internal_has_showmycardsrequestmessage() const { + bool value = (_has_bits_[1] & 0x00040000u) != 0; + PROTOBUF_ASSUME(!value || showmycardsrequestmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_showmycardsrequestmessage() const { - return (_has_bits_[1] & 0x00080000u) != 0; -} -inline void PokerTHMessage::set_has_showmycardsrequestmessage() { - _has_bits_[1] |= 0x00080000u; -} -inline void PokerTHMessage::clear_has_showmycardsrequestmessage() { - _has_bits_[1] &= ~0x00080000u; + return _internal_has_showmycardsrequestmessage(); } inline void PokerTHMessage::clear_showmycardsrequestmessage() { - if (showmycardsrequestmessage_ != NULL) showmycardsrequestmessage_->::ShowMyCardsRequestMessage::Clear(); - clear_has_showmycardsrequestmessage(); + if (showmycardsrequestmessage_ != nullptr) showmycardsrequestmessage_->Clear(); + _has_bits_[1] &= ~0x00040000u; +} +inline const ::ShowMyCardsRequestMessage& PokerTHMessage::_internal_showmycardsrequestmessage() const { + const ::ShowMyCardsRequestMessage* p = showmycardsrequestmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_ShowMyCardsRequestMessage_default_instance_); } inline const ::ShowMyCardsRequestMessage& PokerTHMessage::showmycardsrequestmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return showmycardsrequestmessage_ != NULL ? *showmycardsrequestmessage_ : *default_instance().showmycardsrequestmessage_; -#else - return showmycardsrequestmessage_ != NULL ? *showmycardsrequestmessage_ : *default_instance_->showmycardsrequestmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.showMyCardsRequestMessage) + return _internal_showmycardsrequestmessage(); } -inline ::ShowMyCardsRequestMessage* PokerTHMessage::mutable_showmycardsrequestmessage() { - set_has_showmycardsrequestmessage(); - if (showmycardsrequestmessage_ == NULL) showmycardsrequestmessage_ = new ::ShowMyCardsRequestMessage; - return showmycardsrequestmessage_; -} -inline ::ShowMyCardsRequestMessage* PokerTHMessage::release_showmycardsrequestmessage() { - clear_has_showmycardsrequestmessage(); - ::ShowMyCardsRequestMessage* temp = showmycardsrequestmessage_; - showmycardsrequestmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_showmycardsrequestmessage(::ShowMyCardsRequestMessage* showmycardsrequestmessage) { - delete showmycardsrequestmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_showmycardsrequestmessage( + ::ShowMyCardsRequestMessage* showmycardsrequestmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(showmycardsrequestmessage_); + } showmycardsrequestmessage_ = showmycardsrequestmessage; if (showmycardsrequestmessage) { - set_has_showmycardsrequestmessage(); + _has_bits_[1] |= 0x00040000u; } else { - clear_has_showmycardsrequestmessage(); + _has_bits_[1] &= ~0x00040000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.showMyCardsRequestMessage) +} +inline ::ShowMyCardsRequestMessage* PokerTHMessage::release_showmycardsrequestmessage() { + auto temp = unsafe_arena_release_showmycardsrequestmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::ShowMyCardsRequestMessage* PokerTHMessage::unsafe_arena_release_showmycardsrequestmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.showMyCardsRequestMessage) + _has_bits_[1] &= ~0x00040000u; + ::ShowMyCardsRequestMessage* temp = showmycardsrequestmessage_; + showmycardsrequestmessage_ = nullptr; + return temp; +} +inline ::ShowMyCardsRequestMessage* PokerTHMessage::_internal_mutable_showmycardsrequestmessage() { + _has_bits_[1] |= 0x00040000u; + if (showmycardsrequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::ShowMyCardsRequestMessage>(GetArena()); + showmycardsrequestmessage_ = p; + } + return showmycardsrequestmessage_; +} +inline ::ShowMyCardsRequestMessage* PokerTHMessage::mutable_showmycardsrequestmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.showMyCardsRequestMessage) + return _internal_mutable_showmycardsrequestmessage(); +} +inline void PokerTHMessage::set_allocated_showmycardsrequestmessage(::ShowMyCardsRequestMessage* showmycardsrequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete showmycardsrequestmessage_; + } + if (showmycardsrequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(showmycardsrequestmessage); + if (message_arena != submessage_arena) { + showmycardsrequestmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, showmycardsrequestmessage, submessage_arena); + } + _has_bits_[1] |= 0x00040000u; + } else { + _has_bits_[1] &= ~0x00040000u; + } + showmycardsrequestmessage_ = showmycardsrequestmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.showMyCardsRequestMessage) } // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; +inline bool PokerTHMessage::_internal_has_afterhandshowcardsmessage() const { + bool value = (_has_bits_[1] & 0x00080000u) != 0; + PROTOBUF_ASSUME(!value || afterhandshowcardsmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_afterhandshowcardsmessage() const { - return (_has_bits_[1] & 0x00100000u) != 0; -} -inline void PokerTHMessage::set_has_afterhandshowcardsmessage() { - _has_bits_[1] |= 0x00100000u; -} -inline void PokerTHMessage::clear_has_afterhandshowcardsmessage() { - _has_bits_[1] &= ~0x00100000u; + return _internal_has_afterhandshowcardsmessage(); } inline void PokerTHMessage::clear_afterhandshowcardsmessage() { - if (afterhandshowcardsmessage_ != NULL) afterhandshowcardsmessage_->::AfterHandShowCardsMessage::Clear(); - clear_has_afterhandshowcardsmessage(); + if (afterhandshowcardsmessage_ != nullptr) afterhandshowcardsmessage_->Clear(); + _has_bits_[1] &= ~0x00080000u; +} +inline const ::AfterHandShowCardsMessage& PokerTHMessage::_internal_afterhandshowcardsmessage() const { + const ::AfterHandShowCardsMessage* p = afterhandshowcardsmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_AfterHandShowCardsMessage_default_instance_); } inline const ::AfterHandShowCardsMessage& PokerTHMessage::afterhandshowcardsmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return afterhandshowcardsmessage_ != NULL ? *afterhandshowcardsmessage_ : *default_instance().afterhandshowcardsmessage_; -#else - return afterhandshowcardsmessage_ != NULL ? *afterhandshowcardsmessage_ : *default_instance_->afterhandshowcardsmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.afterHandShowCardsMessage) + return _internal_afterhandshowcardsmessage(); } -inline ::AfterHandShowCardsMessage* PokerTHMessage::mutable_afterhandshowcardsmessage() { - set_has_afterhandshowcardsmessage(); - if (afterhandshowcardsmessage_ == NULL) afterhandshowcardsmessage_ = new ::AfterHandShowCardsMessage; - return afterhandshowcardsmessage_; -} -inline ::AfterHandShowCardsMessage* PokerTHMessage::release_afterhandshowcardsmessage() { - clear_has_afterhandshowcardsmessage(); - ::AfterHandShowCardsMessage* temp = afterhandshowcardsmessage_; - afterhandshowcardsmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_afterhandshowcardsmessage(::AfterHandShowCardsMessage* afterhandshowcardsmessage) { - delete afterhandshowcardsmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_afterhandshowcardsmessage( + ::AfterHandShowCardsMessage* afterhandshowcardsmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(afterhandshowcardsmessage_); + } afterhandshowcardsmessage_ = afterhandshowcardsmessage; if (afterhandshowcardsmessage) { - set_has_afterhandshowcardsmessage(); + _has_bits_[1] |= 0x00080000u; } else { - clear_has_afterhandshowcardsmessage(); + _has_bits_[1] &= ~0x00080000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.afterHandShowCardsMessage) +} +inline ::AfterHandShowCardsMessage* PokerTHMessage::release_afterhandshowcardsmessage() { + auto temp = unsafe_arena_release_afterhandshowcardsmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::AfterHandShowCardsMessage* PokerTHMessage::unsafe_arena_release_afterhandshowcardsmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.afterHandShowCardsMessage) + _has_bits_[1] &= ~0x00080000u; + ::AfterHandShowCardsMessage* temp = afterhandshowcardsmessage_; + afterhandshowcardsmessage_ = nullptr; + return temp; +} +inline ::AfterHandShowCardsMessage* PokerTHMessage::_internal_mutable_afterhandshowcardsmessage() { + _has_bits_[1] |= 0x00080000u; + if (afterhandshowcardsmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AfterHandShowCardsMessage>(GetArena()); + afterhandshowcardsmessage_ = p; + } + return afterhandshowcardsmessage_; +} +inline ::AfterHandShowCardsMessage* PokerTHMessage::mutable_afterhandshowcardsmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.afterHandShowCardsMessage) + return _internal_mutable_afterhandshowcardsmessage(); +} +inline void PokerTHMessage::set_allocated_afterhandshowcardsmessage(::AfterHandShowCardsMessage* afterhandshowcardsmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete afterhandshowcardsmessage_; + } + if (afterhandshowcardsmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(afterhandshowcardsmessage); + if (message_arena != submessage_arena) { + afterhandshowcardsmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, afterhandshowcardsmessage, submessage_arena); + } + _has_bits_[1] |= 0x00080000u; + } else { + _has_bits_[1] &= ~0x00080000u; + } + afterhandshowcardsmessage_ = afterhandshowcardsmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.afterHandShowCardsMessage) } // optional .EndOfGameMessage endOfGameMessage = 54; +inline bool PokerTHMessage::_internal_has_endofgamemessage() const { + bool value = (_has_bits_[1] & 0x00100000u) != 0; + PROTOBUF_ASSUME(!value || endofgamemessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_endofgamemessage() const { - return (_has_bits_[1] & 0x00200000u) != 0; -} -inline void PokerTHMessage::set_has_endofgamemessage() { - _has_bits_[1] |= 0x00200000u; -} -inline void PokerTHMessage::clear_has_endofgamemessage() { - _has_bits_[1] &= ~0x00200000u; + return _internal_has_endofgamemessage(); } inline void PokerTHMessage::clear_endofgamemessage() { - if (endofgamemessage_ != NULL) endofgamemessage_->::EndOfGameMessage::Clear(); - clear_has_endofgamemessage(); + if (endofgamemessage_ != nullptr) endofgamemessage_->Clear(); + _has_bits_[1] &= ~0x00100000u; +} +inline const ::EndOfGameMessage& PokerTHMessage::_internal_endofgamemessage() const { + const ::EndOfGameMessage* p = endofgamemessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_EndOfGameMessage_default_instance_); } inline const ::EndOfGameMessage& PokerTHMessage::endofgamemessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return endofgamemessage_ != NULL ? *endofgamemessage_ : *default_instance().endofgamemessage_; -#else - return endofgamemessage_ != NULL ? *endofgamemessage_ : *default_instance_->endofgamemessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.endOfGameMessage) + return _internal_endofgamemessage(); } -inline ::EndOfGameMessage* PokerTHMessage::mutable_endofgamemessage() { - set_has_endofgamemessage(); - if (endofgamemessage_ == NULL) endofgamemessage_ = new ::EndOfGameMessage; - return endofgamemessage_; -} -inline ::EndOfGameMessage* PokerTHMessage::release_endofgamemessage() { - clear_has_endofgamemessage(); - ::EndOfGameMessage* temp = endofgamemessage_; - endofgamemessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_endofgamemessage(::EndOfGameMessage* endofgamemessage) { - delete endofgamemessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_endofgamemessage( + ::EndOfGameMessage* endofgamemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(endofgamemessage_); + } endofgamemessage_ = endofgamemessage; if (endofgamemessage) { - set_has_endofgamemessage(); + _has_bits_[1] |= 0x00100000u; } else { - clear_has_endofgamemessage(); + _has_bits_[1] &= ~0x00100000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.endOfGameMessage) +} +inline ::EndOfGameMessage* PokerTHMessage::release_endofgamemessage() { + auto temp = unsafe_arena_release_endofgamemessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::EndOfGameMessage* PokerTHMessage::unsafe_arena_release_endofgamemessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.endOfGameMessage) + _has_bits_[1] &= ~0x00100000u; + ::EndOfGameMessage* temp = endofgamemessage_; + endofgamemessage_ = nullptr; + return temp; +} +inline ::EndOfGameMessage* PokerTHMessage::_internal_mutable_endofgamemessage() { + _has_bits_[1] |= 0x00100000u; + if (endofgamemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::EndOfGameMessage>(GetArena()); + endofgamemessage_ = p; + } + return endofgamemessage_; +} +inline ::EndOfGameMessage* PokerTHMessage::mutable_endofgamemessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.endOfGameMessage) + return _internal_mutable_endofgamemessage(); +} +inline void PokerTHMessage::set_allocated_endofgamemessage(::EndOfGameMessage* endofgamemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete endofgamemessage_; + } + if (endofgamemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(endofgamemessage); + if (message_arena != submessage_arena) { + endofgamemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, endofgamemessage, submessage_arena); + } + _has_bits_[1] |= 0x00100000u; + } else { + _has_bits_[1] &= ~0x00100000u; + } + endofgamemessage_ = endofgamemessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.endOfGameMessage) } // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; +inline bool PokerTHMessage::_internal_has_playeridchangedmessage() const { + bool value = (_has_bits_[1] & 0x00200000u) != 0; + PROTOBUF_ASSUME(!value || playeridchangedmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_playeridchangedmessage() const { - return (_has_bits_[1] & 0x00400000u) != 0; -} -inline void PokerTHMessage::set_has_playeridchangedmessage() { - _has_bits_[1] |= 0x00400000u; -} -inline void PokerTHMessage::clear_has_playeridchangedmessage() { - _has_bits_[1] &= ~0x00400000u; + return _internal_has_playeridchangedmessage(); } inline void PokerTHMessage::clear_playeridchangedmessage() { - if (playeridchangedmessage_ != NULL) playeridchangedmessage_->::PlayerIdChangedMessage::Clear(); - clear_has_playeridchangedmessage(); + if (playeridchangedmessage_ != nullptr) playeridchangedmessage_->Clear(); + _has_bits_[1] &= ~0x00200000u; +} +inline const ::PlayerIdChangedMessage& PokerTHMessage::_internal_playeridchangedmessage() const { + const ::PlayerIdChangedMessage* p = playeridchangedmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_PlayerIdChangedMessage_default_instance_); } inline const ::PlayerIdChangedMessage& PokerTHMessage::playeridchangedmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return playeridchangedmessage_ != NULL ? *playeridchangedmessage_ : *default_instance().playeridchangedmessage_; -#else - return playeridchangedmessage_ != NULL ? *playeridchangedmessage_ : *default_instance_->playeridchangedmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.playerIdChangedMessage) + return _internal_playeridchangedmessage(); } -inline ::PlayerIdChangedMessage* PokerTHMessage::mutable_playeridchangedmessage() { - set_has_playeridchangedmessage(); - if (playeridchangedmessage_ == NULL) playeridchangedmessage_ = new ::PlayerIdChangedMessage; - return playeridchangedmessage_; -} -inline ::PlayerIdChangedMessage* PokerTHMessage::release_playeridchangedmessage() { - clear_has_playeridchangedmessage(); - ::PlayerIdChangedMessage* temp = playeridchangedmessage_; - playeridchangedmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_playeridchangedmessage(::PlayerIdChangedMessage* playeridchangedmessage) { - delete playeridchangedmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_playeridchangedmessage( + ::PlayerIdChangedMessage* playeridchangedmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(playeridchangedmessage_); + } playeridchangedmessage_ = playeridchangedmessage; if (playeridchangedmessage) { - set_has_playeridchangedmessage(); + _has_bits_[1] |= 0x00200000u; } else { - clear_has_playeridchangedmessage(); + _has_bits_[1] &= ~0x00200000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.playerIdChangedMessage) +} +inline ::PlayerIdChangedMessage* PokerTHMessage::release_playeridchangedmessage() { + auto temp = unsafe_arena_release_playeridchangedmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::PlayerIdChangedMessage* PokerTHMessage::unsafe_arena_release_playeridchangedmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.playerIdChangedMessage) + _has_bits_[1] &= ~0x00200000u; + ::PlayerIdChangedMessage* temp = playeridchangedmessage_; + playeridchangedmessage_ = nullptr; + return temp; +} +inline ::PlayerIdChangedMessage* PokerTHMessage::_internal_mutable_playeridchangedmessage() { + _has_bits_[1] |= 0x00200000u; + if (playeridchangedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::PlayerIdChangedMessage>(GetArena()); + playeridchangedmessage_ = p; + } + return playeridchangedmessage_; +} +inline ::PlayerIdChangedMessage* PokerTHMessage::mutable_playeridchangedmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.playerIdChangedMessage) + return _internal_mutable_playeridchangedmessage(); +} +inline void PokerTHMessage::set_allocated_playeridchangedmessage(::PlayerIdChangedMessage* playeridchangedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete playeridchangedmessage_; + } + if (playeridchangedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(playeridchangedmessage); + if (message_arena != submessage_arena) { + playeridchangedmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, playeridchangedmessage, submessage_arena); + } + _has_bits_[1] |= 0x00200000u; + } else { + _has_bits_[1] &= ~0x00200000u; + } + playeridchangedmessage_ = playeridchangedmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.playerIdChangedMessage) } // optional .AskKickPlayerMessage askKickPlayerMessage = 56; +inline bool PokerTHMessage::_internal_has_askkickplayermessage() const { + bool value = (_has_bits_[1] & 0x00400000u) != 0; + PROTOBUF_ASSUME(!value || askkickplayermessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_askkickplayermessage() const { - return (_has_bits_[1] & 0x00800000u) != 0; -} -inline void PokerTHMessage::set_has_askkickplayermessage() { - _has_bits_[1] |= 0x00800000u; -} -inline void PokerTHMessage::clear_has_askkickplayermessage() { - _has_bits_[1] &= ~0x00800000u; + return _internal_has_askkickplayermessage(); } inline void PokerTHMessage::clear_askkickplayermessage() { - if (askkickplayermessage_ != NULL) askkickplayermessage_->::AskKickPlayerMessage::Clear(); - clear_has_askkickplayermessage(); + if (askkickplayermessage_ != nullptr) askkickplayermessage_->Clear(); + _has_bits_[1] &= ~0x00400000u; +} +inline const ::AskKickPlayerMessage& PokerTHMessage::_internal_askkickplayermessage() const { + const ::AskKickPlayerMessage* p = askkickplayermessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_AskKickPlayerMessage_default_instance_); } inline const ::AskKickPlayerMessage& PokerTHMessage::askkickplayermessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return askkickplayermessage_ != NULL ? *askkickplayermessage_ : *default_instance().askkickplayermessage_; -#else - return askkickplayermessage_ != NULL ? *askkickplayermessage_ : *default_instance_->askkickplayermessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.askKickPlayerMessage) + return _internal_askkickplayermessage(); } -inline ::AskKickPlayerMessage* PokerTHMessage::mutable_askkickplayermessage() { - set_has_askkickplayermessage(); - if (askkickplayermessage_ == NULL) askkickplayermessage_ = new ::AskKickPlayerMessage; - return askkickplayermessage_; -} -inline ::AskKickPlayerMessage* PokerTHMessage::release_askkickplayermessage() { - clear_has_askkickplayermessage(); - ::AskKickPlayerMessage* temp = askkickplayermessage_; - askkickplayermessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_askkickplayermessage(::AskKickPlayerMessage* askkickplayermessage) { - delete askkickplayermessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_askkickplayermessage( + ::AskKickPlayerMessage* askkickplayermessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(askkickplayermessage_); + } askkickplayermessage_ = askkickplayermessage; if (askkickplayermessage) { - set_has_askkickplayermessage(); + _has_bits_[1] |= 0x00400000u; } else { - clear_has_askkickplayermessage(); + _has_bits_[1] &= ~0x00400000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.askKickPlayerMessage) +} +inline ::AskKickPlayerMessage* PokerTHMessage::release_askkickplayermessage() { + auto temp = unsafe_arena_release_askkickplayermessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::AskKickPlayerMessage* PokerTHMessage::unsafe_arena_release_askkickplayermessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.askKickPlayerMessage) + _has_bits_[1] &= ~0x00400000u; + ::AskKickPlayerMessage* temp = askkickplayermessage_; + askkickplayermessage_ = nullptr; + return temp; +} +inline ::AskKickPlayerMessage* PokerTHMessage::_internal_mutable_askkickplayermessage() { + _has_bits_[1] |= 0x00400000u; + if (askkickplayermessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AskKickPlayerMessage>(GetArena()); + askkickplayermessage_ = p; + } + return askkickplayermessage_; +} +inline ::AskKickPlayerMessage* PokerTHMessage::mutable_askkickplayermessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.askKickPlayerMessage) + return _internal_mutable_askkickplayermessage(); +} +inline void PokerTHMessage::set_allocated_askkickplayermessage(::AskKickPlayerMessage* askkickplayermessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete askkickplayermessage_; + } + if (askkickplayermessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(askkickplayermessage); + if (message_arena != submessage_arena) { + askkickplayermessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, askkickplayermessage, submessage_arena); + } + _has_bits_[1] |= 0x00400000u; + } else { + _has_bits_[1] &= ~0x00400000u; + } + askkickplayermessage_ = askkickplayermessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.askKickPlayerMessage) } // optional .AskKickDeniedMessage askKickDeniedMessage = 57; +inline bool PokerTHMessage::_internal_has_askkickdeniedmessage() const { + bool value = (_has_bits_[1] & 0x00800000u) != 0; + PROTOBUF_ASSUME(!value || askkickdeniedmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_askkickdeniedmessage() const { - return (_has_bits_[1] & 0x01000000u) != 0; -} -inline void PokerTHMessage::set_has_askkickdeniedmessage() { - _has_bits_[1] |= 0x01000000u; -} -inline void PokerTHMessage::clear_has_askkickdeniedmessage() { - _has_bits_[1] &= ~0x01000000u; + return _internal_has_askkickdeniedmessage(); } inline void PokerTHMessage::clear_askkickdeniedmessage() { - if (askkickdeniedmessage_ != NULL) askkickdeniedmessage_->::AskKickDeniedMessage::Clear(); - clear_has_askkickdeniedmessage(); + if (askkickdeniedmessage_ != nullptr) askkickdeniedmessage_->Clear(); + _has_bits_[1] &= ~0x00800000u; +} +inline const ::AskKickDeniedMessage& PokerTHMessage::_internal_askkickdeniedmessage() const { + const ::AskKickDeniedMessage* p = askkickdeniedmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_AskKickDeniedMessage_default_instance_); } inline const ::AskKickDeniedMessage& PokerTHMessage::askkickdeniedmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return askkickdeniedmessage_ != NULL ? *askkickdeniedmessage_ : *default_instance().askkickdeniedmessage_; -#else - return askkickdeniedmessage_ != NULL ? *askkickdeniedmessage_ : *default_instance_->askkickdeniedmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.askKickDeniedMessage) + return _internal_askkickdeniedmessage(); } -inline ::AskKickDeniedMessage* PokerTHMessage::mutable_askkickdeniedmessage() { - set_has_askkickdeniedmessage(); - if (askkickdeniedmessage_ == NULL) askkickdeniedmessage_ = new ::AskKickDeniedMessage; - return askkickdeniedmessage_; -} -inline ::AskKickDeniedMessage* PokerTHMessage::release_askkickdeniedmessage() { - clear_has_askkickdeniedmessage(); - ::AskKickDeniedMessage* temp = askkickdeniedmessage_; - askkickdeniedmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_askkickdeniedmessage(::AskKickDeniedMessage* askkickdeniedmessage) { - delete askkickdeniedmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_askkickdeniedmessage( + ::AskKickDeniedMessage* askkickdeniedmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(askkickdeniedmessage_); + } askkickdeniedmessage_ = askkickdeniedmessage; if (askkickdeniedmessage) { - set_has_askkickdeniedmessage(); + _has_bits_[1] |= 0x00800000u; } else { - clear_has_askkickdeniedmessage(); + _has_bits_[1] &= ~0x00800000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.askKickDeniedMessage) +} +inline ::AskKickDeniedMessage* PokerTHMessage::release_askkickdeniedmessage() { + auto temp = unsafe_arena_release_askkickdeniedmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::AskKickDeniedMessage* PokerTHMessage::unsafe_arena_release_askkickdeniedmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.askKickDeniedMessage) + _has_bits_[1] &= ~0x00800000u; + ::AskKickDeniedMessage* temp = askkickdeniedmessage_; + askkickdeniedmessage_ = nullptr; + return temp; +} +inline ::AskKickDeniedMessage* PokerTHMessage::_internal_mutable_askkickdeniedmessage() { + _has_bits_[1] |= 0x00800000u; + if (askkickdeniedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AskKickDeniedMessage>(GetArena()); + askkickdeniedmessage_ = p; + } + return askkickdeniedmessage_; +} +inline ::AskKickDeniedMessage* PokerTHMessage::mutable_askkickdeniedmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.askKickDeniedMessage) + return _internal_mutable_askkickdeniedmessage(); +} +inline void PokerTHMessage::set_allocated_askkickdeniedmessage(::AskKickDeniedMessage* askkickdeniedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete askkickdeniedmessage_; + } + if (askkickdeniedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(askkickdeniedmessage); + if (message_arena != submessage_arena) { + askkickdeniedmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, askkickdeniedmessage, submessage_arena); + } + _has_bits_[1] |= 0x00800000u; + } else { + _has_bits_[1] &= ~0x00800000u; + } + askkickdeniedmessage_ = askkickdeniedmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.askKickDeniedMessage) } // optional .StartKickPetitionMessage startKickPetitionMessage = 58; +inline bool PokerTHMessage::_internal_has_startkickpetitionmessage() const { + bool value = (_has_bits_[1] & 0x01000000u) != 0; + PROTOBUF_ASSUME(!value || startkickpetitionmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_startkickpetitionmessage() const { - return (_has_bits_[1] & 0x02000000u) != 0; -} -inline void PokerTHMessage::set_has_startkickpetitionmessage() { - _has_bits_[1] |= 0x02000000u; -} -inline void PokerTHMessage::clear_has_startkickpetitionmessage() { - _has_bits_[1] &= ~0x02000000u; + return _internal_has_startkickpetitionmessage(); } inline void PokerTHMessage::clear_startkickpetitionmessage() { - if (startkickpetitionmessage_ != NULL) startkickpetitionmessage_->::StartKickPetitionMessage::Clear(); - clear_has_startkickpetitionmessage(); + if (startkickpetitionmessage_ != nullptr) startkickpetitionmessage_->Clear(); + _has_bits_[1] &= ~0x01000000u; +} +inline const ::StartKickPetitionMessage& PokerTHMessage::_internal_startkickpetitionmessage() const { + const ::StartKickPetitionMessage* p = startkickpetitionmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_StartKickPetitionMessage_default_instance_); } inline const ::StartKickPetitionMessage& PokerTHMessage::startkickpetitionmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return startkickpetitionmessage_ != NULL ? *startkickpetitionmessage_ : *default_instance().startkickpetitionmessage_; -#else - return startkickpetitionmessage_ != NULL ? *startkickpetitionmessage_ : *default_instance_->startkickpetitionmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.startKickPetitionMessage) + return _internal_startkickpetitionmessage(); } -inline ::StartKickPetitionMessage* PokerTHMessage::mutable_startkickpetitionmessage() { - set_has_startkickpetitionmessage(); - if (startkickpetitionmessage_ == NULL) startkickpetitionmessage_ = new ::StartKickPetitionMessage; - return startkickpetitionmessage_; -} -inline ::StartKickPetitionMessage* PokerTHMessage::release_startkickpetitionmessage() { - clear_has_startkickpetitionmessage(); - ::StartKickPetitionMessage* temp = startkickpetitionmessage_; - startkickpetitionmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_startkickpetitionmessage(::StartKickPetitionMessage* startkickpetitionmessage) { - delete startkickpetitionmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_startkickpetitionmessage( + ::StartKickPetitionMessage* startkickpetitionmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(startkickpetitionmessage_); + } startkickpetitionmessage_ = startkickpetitionmessage; if (startkickpetitionmessage) { - set_has_startkickpetitionmessage(); + _has_bits_[1] |= 0x01000000u; } else { - clear_has_startkickpetitionmessage(); + _has_bits_[1] &= ~0x01000000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.startKickPetitionMessage) +} +inline ::StartKickPetitionMessage* PokerTHMessage::release_startkickpetitionmessage() { + auto temp = unsafe_arena_release_startkickpetitionmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::StartKickPetitionMessage* PokerTHMessage::unsafe_arena_release_startkickpetitionmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.startKickPetitionMessage) + _has_bits_[1] &= ~0x01000000u; + ::StartKickPetitionMessage* temp = startkickpetitionmessage_; + startkickpetitionmessage_ = nullptr; + return temp; +} +inline ::StartKickPetitionMessage* PokerTHMessage::_internal_mutable_startkickpetitionmessage() { + _has_bits_[1] |= 0x01000000u; + if (startkickpetitionmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::StartKickPetitionMessage>(GetArena()); + startkickpetitionmessage_ = p; + } + return startkickpetitionmessage_; +} +inline ::StartKickPetitionMessage* PokerTHMessage::mutable_startkickpetitionmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.startKickPetitionMessage) + return _internal_mutable_startkickpetitionmessage(); +} +inline void PokerTHMessage::set_allocated_startkickpetitionmessage(::StartKickPetitionMessage* startkickpetitionmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete startkickpetitionmessage_; + } + if (startkickpetitionmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(startkickpetitionmessage); + if (message_arena != submessage_arena) { + startkickpetitionmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, startkickpetitionmessage, submessage_arena); + } + _has_bits_[1] |= 0x01000000u; + } else { + _has_bits_[1] &= ~0x01000000u; + } + startkickpetitionmessage_ = startkickpetitionmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.startKickPetitionMessage) } // optional .VoteKickRequestMessage voteKickRequestMessage = 59; +inline bool PokerTHMessage::_internal_has_votekickrequestmessage() const { + bool value = (_has_bits_[1] & 0x02000000u) != 0; + PROTOBUF_ASSUME(!value || votekickrequestmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_votekickrequestmessage() const { - return (_has_bits_[1] & 0x04000000u) != 0; -} -inline void PokerTHMessage::set_has_votekickrequestmessage() { - _has_bits_[1] |= 0x04000000u; -} -inline void PokerTHMessage::clear_has_votekickrequestmessage() { - _has_bits_[1] &= ~0x04000000u; + return _internal_has_votekickrequestmessage(); } inline void PokerTHMessage::clear_votekickrequestmessage() { - if (votekickrequestmessage_ != NULL) votekickrequestmessage_->::VoteKickRequestMessage::Clear(); - clear_has_votekickrequestmessage(); + if (votekickrequestmessage_ != nullptr) votekickrequestmessage_->Clear(); + _has_bits_[1] &= ~0x02000000u; +} +inline const ::VoteKickRequestMessage& PokerTHMessage::_internal_votekickrequestmessage() const { + const ::VoteKickRequestMessage* p = votekickrequestmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_VoteKickRequestMessage_default_instance_); } inline const ::VoteKickRequestMessage& PokerTHMessage::votekickrequestmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return votekickrequestmessage_ != NULL ? *votekickrequestmessage_ : *default_instance().votekickrequestmessage_; -#else - return votekickrequestmessage_ != NULL ? *votekickrequestmessage_ : *default_instance_->votekickrequestmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.voteKickRequestMessage) + return _internal_votekickrequestmessage(); } -inline ::VoteKickRequestMessage* PokerTHMessage::mutable_votekickrequestmessage() { - set_has_votekickrequestmessage(); - if (votekickrequestmessage_ == NULL) votekickrequestmessage_ = new ::VoteKickRequestMessage; - return votekickrequestmessage_; -} -inline ::VoteKickRequestMessage* PokerTHMessage::release_votekickrequestmessage() { - clear_has_votekickrequestmessage(); - ::VoteKickRequestMessage* temp = votekickrequestmessage_; - votekickrequestmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_votekickrequestmessage(::VoteKickRequestMessage* votekickrequestmessage) { - delete votekickrequestmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_votekickrequestmessage( + ::VoteKickRequestMessage* votekickrequestmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(votekickrequestmessage_); + } votekickrequestmessage_ = votekickrequestmessage; if (votekickrequestmessage) { - set_has_votekickrequestmessage(); + _has_bits_[1] |= 0x02000000u; } else { - clear_has_votekickrequestmessage(); + _has_bits_[1] &= ~0x02000000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.voteKickRequestMessage) +} +inline ::VoteKickRequestMessage* PokerTHMessage::release_votekickrequestmessage() { + auto temp = unsafe_arena_release_votekickrequestmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::VoteKickRequestMessage* PokerTHMessage::unsafe_arena_release_votekickrequestmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.voteKickRequestMessage) + _has_bits_[1] &= ~0x02000000u; + ::VoteKickRequestMessage* temp = votekickrequestmessage_; + votekickrequestmessage_ = nullptr; + return temp; +} +inline ::VoteKickRequestMessage* PokerTHMessage::_internal_mutable_votekickrequestmessage() { + _has_bits_[1] |= 0x02000000u; + if (votekickrequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::VoteKickRequestMessage>(GetArena()); + votekickrequestmessage_ = p; + } + return votekickrequestmessage_; +} +inline ::VoteKickRequestMessage* PokerTHMessage::mutable_votekickrequestmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.voteKickRequestMessage) + return _internal_mutable_votekickrequestmessage(); +} +inline void PokerTHMessage::set_allocated_votekickrequestmessage(::VoteKickRequestMessage* votekickrequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete votekickrequestmessage_; + } + if (votekickrequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(votekickrequestmessage); + if (message_arena != submessage_arena) { + votekickrequestmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, votekickrequestmessage, submessage_arena); + } + _has_bits_[1] |= 0x02000000u; + } else { + _has_bits_[1] &= ~0x02000000u; + } + votekickrequestmessage_ = votekickrequestmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.voteKickRequestMessage) } // optional .VoteKickReplyMessage voteKickReplyMessage = 60; +inline bool PokerTHMessage::_internal_has_votekickreplymessage() const { + bool value = (_has_bits_[1] & 0x04000000u) != 0; + PROTOBUF_ASSUME(!value || votekickreplymessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_votekickreplymessage() const { - return (_has_bits_[1] & 0x08000000u) != 0; -} -inline void PokerTHMessage::set_has_votekickreplymessage() { - _has_bits_[1] |= 0x08000000u; -} -inline void PokerTHMessage::clear_has_votekickreplymessage() { - _has_bits_[1] &= ~0x08000000u; + return _internal_has_votekickreplymessage(); } inline void PokerTHMessage::clear_votekickreplymessage() { - if (votekickreplymessage_ != NULL) votekickreplymessage_->::VoteKickReplyMessage::Clear(); - clear_has_votekickreplymessage(); + if (votekickreplymessage_ != nullptr) votekickreplymessage_->Clear(); + _has_bits_[1] &= ~0x04000000u; +} +inline const ::VoteKickReplyMessage& PokerTHMessage::_internal_votekickreplymessage() const { + const ::VoteKickReplyMessage* p = votekickreplymessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_VoteKickReplyMessage_default_instance_); } inline const ::VoteKickReplyMessage& PokerTHMessage::votekickreplymessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return votekickreplymessage_ != NULL ? *votekickreplymessage_ : *default_instance().votekickreplymessage_; -#else - return votekickreplymessage_ != NULL ? *votekickreplymessage_ : *default_instance_->votekickreplymessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.voteKickReplyMessage) + return _internal_votekickreplymessage(); } -inline ::VoteKickReplyMessage* PokerTHMessage::mutable_votekickreplymessage() { - set_has_votekickreplymessage(); - if (votekickreplymessage_ == NULL) votekickreplymessage_ = new ::VoteKickReplyMessage; - return votekickreplymessage_; -} -inline ::VoteKickReplyMessage* PokerTHMessage::release_votekickreplymessage() { - clear_has_votekickreplymessage(); - ::VoteKickReplyMessage* temp = votekickreplymessage_; - votekickreplymessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_votekickreplymessage(::VoteKickReplyMessage* votekickreplymessage) { - delete votekickreplymessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_votekickreplymessage( + ::VoteKickReplyMessage* votekickreplymessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(votekickreplymessage_); + } votekickreplymessage_ = votekickreplymessage; if (votekickreplymessage) { - set_has_votekickreplymessage(); + _has_bits_[1] |= 0x04000000u; } else { - clear_has_votekickreplymessage(); + _has_bits_[1] &= ~0x04000000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.voteKickReplyMessage) +} +inline ::VoteKickReplyMessage* PokerTHMessage::release_votekickreplymessage() { + auto temp = unsafe_arena_release_votekickreplymessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::VoteKickReplyMessage* PokerTHMessage::unsafe_arena_release_votekickreplymessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.voteKickReplyMessage) + _has_bits_[1] &= ~0x04000000u; + ::VoteKickReplyMessage* temp = votekickreplymessage_; + votekickreplymessage_ = nullptr; + return temp; +} +inline ::VoteKickReplyMessage* PokerTHMessage::_internal_mutable_votekickreplymessage() { + _has_bits_[1] |= 0x04000000u; + if (votekickreplymessage_ == nullptr) { + auto* p = CreateMaybeMessage<::VoteKickReplyMessage>(GetArena()); + votekickreplymessage_ = p; + } + return votekickreplymessage_; +} +inline ::VoteKickReplyMessage* PokerTHMessage::mutable_votekickreplymessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.voteKickReplyMessage) + return _internal_mutable_votekickreplymessage(); +} +inline void PokerTHMessage::set_allocated_votekickreplymessage(::VoteKickReplyMessage* votekickreplymessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete votekickreplymessage_; + } + if (votekickreplymessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(votekickreplymessage); + if (message_arena != submessage_arena) { + votekickreplymessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, votekickreplymessage, submessage_arena); + } + _has_bits_[1] |= 0x04000000u; + } else { + _has_bits_[1] &= ~0x04000000u; + } + votekickreplymessage_ = votekickreplymessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.voteKickReplyMessage) } // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; +inline bool PokerTHMessage::_internal_has_kickpetitionupdatemessage() const { + bool value = (_has_bits_[1] & 0x08000000u) != 0; + PROTOBUF_ASSUME(!value || kickpetitionupdatemessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_kickpetitionupdatemessage() const { - return (_has_bits_[1] & 0x10000000u) != 0; -} -inline void PokerTHMessage::set_has_kickpetitionupdatemessage() { - _has_bits_[1] |= 0x10000000u; -} -inline void PokerTHMessage::clear_has_kickpetitionupdatemessage() { - _has_bits_[1] &= ~0x10000000u; + return _internal_has_kickpetitionupdatemessage(); } inline void PokerTHMessage::clear_kickpetitionupdatemessage() { - if (kickpetitionupdatemessage_ != NULL) kickpetitionupdatemessage_->::KickPetitionUpdateMessage::Clear(); - clear_has_kickpetitionupdatemessage(); + if (kickpetitionupdatemessage_ != nullptr) kickpetitionupdatemessage_->Clear(); + _has_bits_[1] &= ~0x08000000u; +} +inline const ::KickPetitionUpdateMessage& PokerTHMessage::_internal_kickpetitionupdatemessage() const { + const ::KickPetitionUpdateMessage* p = kickpetitionupdatemessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_KickPetitionUpdateMessage_default_instance_); } inline const ::KickPetitionUpdateMessage& PokerTHMessage::kickpetitionupdatemessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return kickpetitionupdatemessage_ != NULL ? *kickpetitionupdatemessage_ : *default_instance().kickpetitionupdatemessage_; -#else - return kickpetitionupdatemessage_ != NULL ? *kickpetitionupdatemessage_ : *default_instance_->kickpetitionupdatemessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.kickPetitionUpdateMessage) + return _internal_kickpetitionupdatemessage(); } -inline ::KickPetitionUpdateMessage* PokerTHMessage::mutable_kickpetitionupdatemessage() { - set_has_kickpetitionupdatemessage(); - if (kickpetitionupdatemessage_ == NULL) kickpetitionupdatemessage_ = new ::KickPetitionUpdateMessage; - return kickpetitionupdatemessage_; -} -inline ::KickPetitionUpdateMessage* PokerTHMessage::release_kickpetitionupdatemessage() { - clear_has_kickpetitionupdatemessage(); - ::KickPetitionUpdateMessage* temp = kickpetitionupdatemessage_; - kickpetitionupdatemessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_kickpetitionupdatemessage(::KickPetitionUpdateMessage* kickpetitionupdatemessage) { - delete kickpetitionupdatemessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_kickpetitionupdatemessage( + ::KickPetitionUpdateMessage* kickpetitionupdatemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(kickpetitionupdatemessage_); + } kickpetitionupdatemessage_ = kickpetitionupdatemessage; if (kickpetitionupdatemessage) { - set_has_kickpetitionupdatemessage(); + _has_bits_[1] |= 0x08000000u; } else { - clear_has_kickpetitionupdatemessage(); + _has_bits_[1] &= ~0x08000000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.kickPetitionUpdateMessage) +} +inline ::KickPetitionUpdateMessage* PokerTHMessage::release_kickpetitionupdatemessage() { + auto temp = unsafe_arena_release_kickpetitionupdatemessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::KickPetitionUpdateMessage* PokerTHMessage::unsafe_arena_release_kickpetitionupdatemessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.kickPetitionUpdateMessage) + _has_bits_[1] &= ~0x08000000u; + ::KickPetitionUpdateMessage* temp = kickpetitionupdatemessage_; + kickpetitionupdatemessage_ = nullptr; + return temp; +} +inline ::KickPetitionUpdateMessage* PokerTHMessage::_internal_mutable_kickpetitionupdatemessage() { + _has_bits_[1] |= 0x08000000u; + if (kickpetitionupdatemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::KickPetitionUpdateMessage>(GetArena()); + kickpetitionupdatemessage_ = p; + } + return kickpetitionupdatemessage_; +} +inline ::KickPetitionUpdateMessage* PokerTHMessage::mutable_kickpetitionupdatemessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.kickPetitionUpdateMessage) + return _internal_mutable_kickpetitionupdatemessage(); +} +inline void PokerTHMessage::set_allocated_kickpetitionupdatemessage(::KickPetitionUpdateMessage* kickpetitionupdatemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete kickpetitionupdatemessage_; + } + if (kickpetitionupdatemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(kickpetitionupdatemessage); + if (message_arena != submessage_arena) { + kickpetitionupdatemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, kickpetitionupdatemessage, submessage_arena); + } + _has_bits_[1] |= 0x08000000u; + } else { + _has_bits_[1] &= ~0x08000000u; + } + kickpetitionupdatemessage_ = kickpetitionupdatemessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.kickPetitionUpdateMessage) } // optional .EndKickPetitionMessage endKickPetitionMessage = 62; +inline bool PokerTHMessage::_internal_has_endkickpetitionmessage() const { + bool value = (_has_bits_[1] & 0x10000000u) != 0; + PROTOBUF_ASSUME(!value || endkickpetitionmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_endkickpetitionmessage() const { - return (_has_bits_[1] & 0x20000000u) != 0; -} -inline void PokerTHMessage::set_has_endkickpetitionmessage() { - _has_bits_[1] |= 0x20000000u; -} -inline void PokerTHMessage::clear_has_endkickpetitionmessage() { - _has_bits_[1] &= ~0x20000000u; + return _internal_has_endkickpetitionmessage(); } inline void PokerTHMessage::clear_endkickpetitionmessage() { - if (endkickpetitionmessage_ != NULL) endkickpetitionmessage_->::EndKickPetitionMessage::Clear(); - clear_has_endkickpetitionmessage(); + if (endkickpetitionmessage_ != nullptr) endkickpetitionmessage_->Clear(); + _has_bits_[1] &= ~0x10000000u; +} +inline const ::EndKickPetitionMessage& PokerTHMessage::_internal_endkickpetitionmessage() const { + const ::EndKickPetitionMessage* p = endkickpetitionmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_EndKickPetitionMessage_default_instance_); } inline const ::EndKickPetitionMessage& PokerTHMessage::endkickpetitionmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return endkickpetitionmessage_ != NULL ? *endkickpetitionmessage_ : *default_instance().endkickpetitionmessage_; -#else - return endkickpetitionmessage_ != NULL ? *endkickpetitionmessage_ : *default_instance_->endkickpetitionmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.endKickPetitionMessage) + return _internal_endkickpetitionmessage(); } -inline ::EndKickPetitionMessage* PokerTHMessage::mutable_endkickpetitionmessage() { - set_has_endkickpetitionmessage(); - if (endkickpetitionmessage_ == NULL) endkickpetitionmessage_ = new ::EndKickPetitionMessage; - return endkickpetitionmessage_; -} -inline ::EndKickPetitionMessage* PokerTHMessage::release_endkickpetitionmessage() { - clear_has_endkickpetitionmessage(); - ::EndKickPetitionMessage* temp = endkickpetitionmessage_; - endkickpetitionmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_endkickpetitionmessage(::EndKickPetitionMessage* endkickpetitionmessage) { - delete endkickpetitionmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_endkickpetitionmessage( + ::EndKickPetitionMessage* endkickpetitionmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(endkickpetitionmessage_); + } endkickpetitionmessage_ = endkickpetitionmessage; if (endkickpetitionmessage) { - set_has_endkickpetitionmessage(); + _has_bits_[1] |= 0x10000000u; } else { - clear_has_endkickpetitionmessage(); + _has_bits_[1] &= ~0x10000000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.endKickPetitionMessage) +} +inline ::EndKickPetitionMessage* PokerTHMessage::release_endkickpetitionmessage() { + auto temp = unsafe_arena_release_endkickpetitionmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::EndKickPetitionMessage* PokerTHMessage::unsafe_arena_release_endkickpetitionmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.endKickPetitionMessage) + _has_bits_[1] &= ~0x10000000u; + ::EndKickPetitionMessage* temp = endkickpetitionmessage_; + endkickpetitionmessage_ = nullptr; + return temp; +} +inline ::EndKickPetitionMessage* PokerTHMessage::_internal_mutable_endkickpetitionmessage() { + _has_bits_[1] |= 0x10000000u; + if (endkickpetitionmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::EndKickPetitionMessage>(GetArena()); + endkickpetitionmessage_ = p; + } + return endkickpetitionmessage_; +} +inline ::EndKickPetitionMessage* PokerTHMessage::mutable_endkickpetitionmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.endKickPetitionMessage) + return _internal_mutable_endkickpetitionmessage(); +} +inline void PokerTHMessage::set_allocated_endkickpetitionmessage(::EndKickPetitionMessage* endkickpetitionmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete endkickpetitionmessage_; + } + if (endkickpetitionmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(endkickpetitionmessage); + if (message_arena != submessage_arena) { + endkickpetitionmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, endkickpetitionmessage, submessage_arena); + } + _has_bits_[1] |= 0x10000000u; + } else { + _has_bits_[1] &= ~0x10000000u; + } + endkickpetitionmessage_ = endkickpetitionmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.endKickPetitionMessage) } // optional .StatisticsMessage statisticsMessage = 63; +inline bool PokerTHMessage::_internal_has_statisticsmessage() const { + bool value = (_has_bits_[1] & 0x20000000u) != 0; + PROTOBUF_ASSUME(!value || statisticsmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_statisticsmessage() const { - return (_has_bits_[1] & 0x40000000u) != 0; -} -inline void PokerTHMessage::set_has_statisticsmessage() { - _has_bits_[1] |= 0x40000000u; -} -inline void PokerTHMessage::clear_has_statisticsmessage() { - _has_bits_[1] &= ~0x40000000u; + return _internal_has_statisticsmessage(); } inline void PokerTHMessage::clear_statisticsmessage() { - if (statisticsmessage_ != NULL) statisticsmessage_->::StatisticsMessage::Clear(); - clear_has_statisticsmessage(); + if (statisticsmessage_ != nullptr) statisticsmessage_->Clear(); + _has_bits_[1] &= ~0x20000000u; +} +inline const ::StatisticsMessage& PokerTHMessage::_internal_statisticsmessage() const { + const ::StatisticsMessage* p = statisticsmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_StatisticsMessage_default_instance_); } inline const ::StatisticsMessage& PokerTHMessage::statisticsmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return statisticsmessage_ != NULL ? *statisticsmessage_ : *default_instance().statisticsmessage_; -#else - return statisticsmessage_ != NULL ? *statisticsmessage_ : *default_instance_->statisticsmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.statisticsMessage) + return _internal_statisticsmessage(); } -inline ::StatisticsMessage* PokerTHMessage::mutable_statisticsmessage() { - set_has_statisticsmessage(); - if (statisticsmessage_ == NULL) statisticsmessage_ = new ::StatisticsMessage; - return statisticsmessage_; -} -inline ::StatisticsMessage* PokerTHMessage::release_statisticsmessage() { - clear_has_statisticsmessage(); - ::StatisticsMessage* temp = statisticsmessage_; - statisticsmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_statisticsmessage(::StatisticsMessage* statisticsmessage) { - delete statisticsmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_statisticsmessage( + ::StatisticsMessage* statisticsmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(statisticsmessage_); + } statisticsmessage_ = statisticsmessage; if (statisticsmessage) { - set_has_statisticsmessage(); + _has_bits_[1] |= 0x20000000u; } else { - clear_has_statisticsmessage(); + _has_bits_[1] &= ~0x20000000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.statisticsMessage) +} +inline ::StatisticsMessage* PokerTHMessage::release_statisticsmessage() { + auto temp = unsafe_arena_release_statisticsmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::StatisticsMessage* PokerTHMessage::unsafe_arena_release_statisticsmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.statisticsMessage) + _has_bits_[1] &= ~0x20000000u; + ::StatisticsMessage* temp = statisticsmessage_; + statisticsmessage_ = nullptr; + return temp; +} +inline ::StatisticsMessage* PokerTHMessage::_internal_mutable_statisticsmessage() { + _has_bits_[1] |= 0x20000000u; + if (statisticsmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::StatisticsMessage>(GetArena()); + statisticsmessage_ = p; + } + return statisticsmessage_; +} +inline ::StatisticsMessage* PokerTHMessage::mutable_statisticsmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.statisticsMessage) + return _internal_mutable_statisticsmessage(); +} +inline void PokerTHMessage::set_allocated_statisticsmessage(::StatisticsMessage* statisticsmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete statisticsmessage_; + } + if (statisticsmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(statisticsmessage); + if (message_arena != submessage_arena) { + statisticsmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, statisticsmessage, submessage_arena); + } + _has_bits_[1] |= 0x20000000u; + } else { + _has_bits_[1] &= ~0x20000000u; + } + statisticsmessage_ = statisticsmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.statisticsMessage) } // optional .ChatRequestMessage chatRequestMessage = 64; +inline bool PokerTHMessage::_internal_has_chatrequestmessage() const { + bool value = (_has_bits_[1] & 0x40000000u) != 0; + PROTOBUF_ASSUME(!value || chatrequestmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_chatrequestmessage() const { - return (_has_bits_[1] & 0x80000000u) != 0; -} -inline void PokerTHMessage::set_has_chatrequestmessage() { - _has_bits_[1] |= 0x80000000u; -} -inline void PokerTHMessage::clear_has_chatrequestmessage() { - _has_bits_[1] &= ~0x80000000u; + return _internal_has_chatrequestmessage(); } inline void PokerTHMessage::clear_chatrequestmessage() { - if (chatrequestmessage_ != NULL) chatrequestmessage_->::ChatRequestMessage::Clear(); - clear_has_chatrequestmessage(); + if (chatrequestmessage_ != nullptr) chatrequestmessage_->Clear(); + _has_bits_[1] &= ~0x40000000u; +} +inline const ::ChatRequestMessage& PokerTHMessage::_internal_chatrequestmessage() const { + const ::ChatRequestMessage* p = chatrequestmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_ChatRequestMessage_default_instance_); } inline const ::ChatRequestMessage& PokerTHMessage::chatrequestmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return chatrequestmessage_ != NULL ? *chatrequestmessage_ : *default_instance().chatrequestmessage_; -#else - return chatrequestmessage_ != NULL ? *chatrequestmessage_ : *default_instance_->chatrequestmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.chatRequestMessage) + return _internal_chatrequestmessage(); } -inline ::ChatRequestMessage* PokerTHMessage::mutable_chatrequestmessage() { - set_has_chatrequestmessage(); - if (chatrequestmessage_ == NULL) chatrequestmessage_ = new ::ChatRequestMessage; - return chatrequestmessage_; -} -inline ::ChatRequestMessage* PokerTHMessage::release_chatrequestmessage() { - clear_has_chatrequestmessage(); - ::ChatRequestMessage* temp = chatrequestmessage_; - chatrequestmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_chatrequestmessage(::ChatRequestMessage* chatrequestmessage) { - delete chatrequestmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_chatrequestmessage( + ::ChatRequestMessage* chatrequestmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(chatrequestmessage_); + } chatrequestmessage_ = chatrequestmessage; if (chatrequestmessage) { - set_has_chatrequestmessage(); + _has_bits_[1] |= 0x40000000u; } else { - clear_has_chatrequestmessage(); + _has_bits_[1] &= ~0x40000000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.chatRequestMessage) +} +inline ::ChatRequestMessage* PokerTHMessage::release_chatrequestmessage() { + auto temp = unsafe_arena_release_chatrequestmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::ChatRequestMessage* PokerTHMessage::unsafe_arena_release_chatrequestmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.chatRequestMessage) + _has_bits_[1] &= ~0x40000000u; + ::ChatRequestMessage* temp = chatrequestmessage_; + chatrequestmessage_ = nullptr; + return temp; +} +inline ::ChatRequestMessage* PokerTHMessage::_internal_mutable_chatrequestmessage() { + _has_bits_[1] |= 0x40000000u; + if (chatrequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::ChatRequestMessage>(GetArena()); + chatrequestmessage_ = p; + } + return chatrequestmessage_; +} +inline ::ChatRequestMessage* PokerTHMessage::mutable_chatrequestmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.chatRequestMessage) + return _internal_mutable_chatrequestmessage(); +} +inline void PokerTHMessage::set_allocated_chatrequestmessage(::ChatRequestMessage* chatrequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete chatrequestmessage_; + } + if (chatrequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(chatrequestmessage); + if (message_arena != submessage_arena) { + chatrequestmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, chatrequestmessage, submessage_arena); + } + _has_bits_[1] |= 0x40000000u; + } else { + _has_bits_[1] &= ~0x40000000u; + } + chatrequestmessage_ = chatrequestmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.chatRequestMessage) } // optional .ChatMessage chatMessage = 65; +inline bool PokerTHMessage::_internal_has_chatmessage() const { + bool value = (_has_bits_[1] & 0x80000000u) != 0; + PROTOBUF_ASSUME(!value || chatmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_chatmessage() const { - return (_has_bits_[2] & 0x00000001u) != 0; -} -inline void PokerTHMessage::set_has_chatmessage() { - _has_bits_[2] |= 0x00000001u; -} -inline void PokerTHMessage::clear_has_chatmessage() { - _has_bits_[2] &= ~0x00000001u; + return _internal_has_chatmessage(); } inline void PokerTHMessage::clear_chatmessage() { - if (chatmessage_ != NULL) chatmessage_->::ChatMessage::Clear(); - clear_has_chatmessage(); + if (chatmessage_ != nullptr) chatmessage_->Clear(); + _has_bits_[1] &= ~0x80000000u; +} +inline const ::ChatMessage& PokerTHMessage::_internal_chatmessage() const { + const ::ChatMessage* p = chatmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_ChatMessage_default_instance_); } inline const ::ChatMessage& PokerTHMessage::chatmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return chatmessage_ != NULL ? *chatmessage_ : *default_instance().chatmessage_; -#else - return chatmessage_ != NULL ? *chatmessage_ : *default_instance_->chatmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.chatMessage) + return _internal_chatmessage(); } -inline ::ChatMessage* PokerTHMessage::mutable_chatmessage() { - set_has_chatmessage(); - if (chatmessage_ == NULL) chatmessage_ = new ::ChatMessage; - return chatmessage_; -} -inline ::ChatMessage* PokerTHMessage::release_chatmessage() { - clear_has_chatmessage(); - ::ChatMessage* temp = chatmessage_; - chatmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_chatmessage(::ChatMessage* chatmessage) { - delete chatmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_chatmessage( + ::ChatMessage* chatmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(chatmessage_); + } chatmessage_ = chatmessage; if (chatmessage) { - set_has_chatmessage(); + _has_bits_[1] |= 0x80000000u; } else { - clear_has_chatmessage(); + _has_bits_[1] &= ~0x80000000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.chatMessage) +} +inline ::ChatMessage* PokerTHMessage::release_chatmessage() { + auto temp = unsafe_arena_release_chatmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::ChatMessage* PokerTHMessage::unsafe_arena_release_chatmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.chatMessage) + _has_bits_[1] &= ~0x80000000u; + ::ChatMessage* temp = chatmessage_; + chatmessage_ = nullptr; + return temp; +} +inline ::ChatMessage* PokerTHMessage::_internal_mutable_chatmessage() { + _has_bits_[1] |= 0x80000000u; + if (chatmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::ChatMessage>(GetArena()); + chatmessage_ = p; + } + return chatmessage_; +} +inline ::ChatMessage* PokerTHMessage::mutable_chatmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.chatMessage) + return _internal_mutable_chatmessage(); +} +inline void PokerTHMessage::set_allocated_chatmessage(::ChatMessage* chatmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete chatmessage_; + } + if (chatmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(chatmessage); + if (message_arena != submessage_arena) { + chatmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, chatmessage, submessage_arena); + } + _has_bits_[1] |= 0x80000000u; + } else { + _has_bits_[1] &= ~0x80000000u; + } + chatmessage_ = chatmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.chatMessage) } // optional .ChatRejectMessage chatRejectMessage = 66; +inline bool PokerTHMessage::_internal_has_chatrejectmessage() const { + bool value = (_has_bits_[2] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || chatrejectmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_chatrejectmessage() const { - return (_has_bits_[2] & 0x00000002u) != 0; -} -inline void PokerTHMessage::set_has_chatrejectmessage() { - _has_bits_[2] |= 0x00000002u; -} -inline void PokerTHMessage::clear_has_chatrejectmessage() { - _has_bits_[2] &= ~0x00000002u; + return _internal_has_chatrejectmessage(); } inline void PokerTHMessage::clear_chatrejectmessage() { - if (chatrejectmessage_ != NULL) chatrejectmessage_->::ChatRejectMessage::Clear(); - clear_has_chatrejectmessage(); + if (chatrejectmessage_ != nullptr) chatrejectmessage_->Clear(); + _has_bits_[2] &= ~0x00000001u; +} +inline const ::ChatRejectMessage& PokerTHMessage::_internal_chatrejectmessage() const { + const ::ChatRejectMessage* p = chatrejectmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_ChatRejectMessage_default_instance_); } inline const ::ChatRejectMessage& PokerTHMessage::chatrejectmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return chatrejectmessage_ != NULL ? *chatrejectmessage_ : *default_instance().chatrejectmessage_; -#else - return chatrejectmessage_ != NULL ? *chatrejectmessage_ : *default_instance_->chatrejectmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.chatRejectMessage) + return _internal_chatrejectmessage(); } -inline ::ChatRejectMessage* PokerTHMessage::mutable_chatrejectmessage() { - set_has_chatrejectmessage(); - if (chatrejectmessage_ == NULL) chatrejectmessage_ = new ::ChatRejectMessage; - return chatrejectmessage_; -} -inline ::ChatRejectMessage* PokerTHMessage::release_chatrejectmessage() { - clear_has_chatrejectmessage(); - ::ChatRejectMessage* temp = chatrejectmessage_; - chatrejectmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_chatrejectmessage(::ChatRejectMessage* chatrejectmessage) { - delete chatrejectmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_chatrejectmessage( + ::ChatRejectMessage* chatrejectmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(chatrejectmessage_); + } chatrejectmessage_ = chatrejectmessage; if (chatrejectmessage) { - set_has_chatrejectmessage(); + _has_bits_[2] |= 0x00000001u; } else { - clear_has_chatrejectmessage(); + _has_bits_[2] &= ~0x00000001u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.chatRejectMessage) +} +inline ::ChatRejectMessage* PokerTHMessage::release_chatrejectmessage() { + auto temp = unsafe_arena_release_chatrejectmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::ChatRejectMessage* PokerTHMessage::unsafe_arena_release_chatrejectmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.chatRejectMessage) + _has_bits_[2] &= ~0x00000001u; + ::ChatRejectMessage* temp = chatrejectmessage_; + chatrejectmessage_ = nullptr; + return temp; +} +inline ::ChatRejectMessage* PokerTHMessage::_internal_mutable_chatrejectmessage() { + _has_bits_[2] |= 0x00000001u; + if (chatrejectmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::ChatRejectMessage>(GetArena()); + chatrejectmessage_ = p; + } + return chatrejectmessage_; +} +inline ::ChatRejectMessage* PokerTHMessage::mutable_chatrejectmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.chatRejectMessage) + return _internal_mutable_chatrejectmessage(); +} +inline void PokerTHMessage::set_allocated_chatrejectmessage(::ChatRejectMessage* chatrejectmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete chatrejectmessage_; + } + if (chatrejectmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(chatrejectmessage); + if (message_arena != submessage_arena) { + chatrejectmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, chatrejectmessage, submessage_arena); + } + _has_bits_[2] |= 0x00000001u; + } else { + _has_bits_[2] &= ~0x00000001u; + } + chatrejectmessage_ = chatrejectmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.chatRejectMessage) } // optional .DialogMessage dialogMessage = 67; +inline bool PokerTHMessage::_internal_has_dialogmessage() const { + bool value = (_has_bits_[2] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || dialogmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_dialogmessage() const { - return (_has_bits_[2] & 0x00000004u) != 0; -} -inline void PokerTHMessage::set_has_dialogmessage() { - _has_bits_[2] |= 0x00000004u; -} -inline void PokerTHMessage::clear_has_dialogmessage() { - _has_bits_[2] &= ~0x00000004u; + return _internal_has_dialogmessage(); } inline void PokerTHMessage::clear_dialogmessage() { - if (dialogmessage_ != NULL) dialogmessage_->::DialogMessage::Clear(); - clear_has_dialogmessage(); + if (dialogmessage_ != nullptr) dialogmessage_->Clear(); + _has_bits_[2] &= ~0x00000002u; +} +inline const ::DialogMessage& PokerTHMessage::_internal_dialogmessage() const { + const ::DialogMessage* p = dialogmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_DialogMessage_default_instance_); } inline const ::DialogMessage& PokerTHMessage::dialogmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return dialogmessage_ != NULL ? *dialogmessage_ : *default_instance().dialogmessage_; -#else - return dialogmessage_ != NULL ? *dialogmessage_ : *default_instance_->dialogmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.dialogMessage) + return _internal_dialogmessage(); } -inline ::DialogMessage* PokerTHMessage::mutable_dialogmessage() { - set_has_dialogmessage(); - if (dialogmessage_ == NULL) dialogmessage_ = new ::DialogMessage; - return dialogmessage_; -} -inline ::DialogMessage* PokerTHMessage::release_dialogmessage() { - clear_has_dialogmessage(); - ::DialogMessage* temp = dialogmessage_; - dialogmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_dialogmessage(::DialogMessage* dialogmessage) { - delete dialogmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_dialogmessage( + ::DialogMessage* dialogmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(dialogmessage_); + } dialogmessage_ = dialogmessage; if (dialogmessage) { - set_has_dialogmessage(); + _has_bits_[2] |= 0x00000002u; } else { - clear_has_dialogmessage(); + _has_bits_[2] &= ~0x00000002u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.dialogMessage) +} +inline ::DialogMessage* PokerTHMessage::release_dialogmessage() { + auto temp = unsafe_arena_release_dialogmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::DialogMessage* PokerTHMessage::unsafe_arena_release_dialogmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.dialogMessage) + _has_bits_[2] &= ~0x00000002u; + ::DialogMessage* temp = dialogmessage_; + dialogmessage_ = nullptr; + return temp; +} +inline ::DialogMessage* PokerTHMessage::_internal_mutable_dialogmessage() { + _has_bits_[2] |= 0x00000002u; + if (dialogmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::DialogMessage>(GetArena()); + dialogmessage_ = p; + } + return dialogmessage_; +} +inline ::DialogMessage* PokerTHMessage::mutable_dialogmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.dialogMessage) + return _internal_mutable_dialogmessage(); +} +inline void PokerTHMessage::set_allocated_dialogmessage(::DialogMessage* dialogmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete dialogmessage_; + } + if (dialogmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(dialogmessage); + if (message_arena != submessage_arena) { + dialogmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, dialogmessage, submessage_arena); + } + _has_bits_[2] |= 0x00000002u; + } else { + _has_bits_[2] &= ~0x00000002u; + } + dialogmessage_ = dialogmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.dialogMessage) } // optional .TimeoutWarningMessage timeoutWarningMessage = 68; +inline bool PokerTHMessage::_internal_has_timeoutwarningmessage() const { + bool value = (_has_bits_[2] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || timeoutwarningmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_timeoutwarningmessage() const { - return (_has_bits_[2] & 0x00000008u) != 0; -} -inline void PokerTHMessage::set_has_timeoutwarningmessage() { - _has_bits_[2] |= 0x00000008u; -} -inline void PokerTHMessage::clear_has_timeoutwarningmessage() { - _has_bits_[2] &= ~0x00000008u; + return _internal_has_timeoutwarningmessage(); } inline void PokerTHMessage::clear_timeoutwarningmessage() { - if (timeoutwarningmessage_ != NULL) timeoutwarningmessage_->::TimeoutWarningMessage::Clear(); - clear_has_timeoutwarningmessage(); + if (timeoutwarningmessage_ != nullptr) timeoutwarningmessage_->Clear(); + _has_bits_[2] &= ~0x00000004u; +} +inline const ::TimeoutWarningMessage& PokerTHMessage::_internal_timeoutwarningmessage() const { + const ::TimeoutWarningMessage* p = timeoutwarningmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_TimeoutWarningMessage_default_instance_); } inline const ::TimeoutWarningMessage& PokerTHMessage::timeoutwarningmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return timeoutwarningmessage_ != NULL ? *timeoutwarningmessage_ : *default_instance().timeoutwarningmessage_; -#else - return timeoutwarningmessage_ != NULL ? *timeoutwarningmessage_ : *default_instance_->timeoutwarningmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.timeoutWarningMessage) + return _internal_timeoutwarningmessage(); } -inline ::TimeoutWarningMessage* PokerTHMessage::mutable_timeoutwarningmessage() { - set_has_timeoutwarningmessage(); - if (timeoutwarningmessage_ == NULL) timeoutwarningmessage_ = new ::TimeoutWarningMessage; - return timeoutwarningmessage_; -} -inline ::TimeoutWarningMessage* PokerTHMessage::release_timeoutwarningmessage() { - clear_has_timeoutwarningmessage(); - ::TimeoutWarningMessage* temp = timeoutwarningmessage_; - timeoutwarningmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_timeoutwarningmessage(::TimeoutWarningMessage* timeoutwarningmessage) { - delete timeoutwarningmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_timeoutwarningmessage( + ::TimeoutWarningMessage* timeoutwarningmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(timeoutwarningmessage_); + } timeoutwarningmessage_ = timeoutwarningmessage; if (timeoutwarningmessage) { - set_has_timeoutwarningmessage(); + _has_bits_[2] |= 0x00000004u; } else { - clear_has_timeoutwarningmessage(); + _has_bits_[2] &= ~0x00000004u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.timeoutWarningMessage) +} +inline ::TimeoutWarningMessage* PokerTHMessage::release_timeoutwarningmessage() { + auto temp = unsafe_arena_release_timeoutwarningmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::TimeoutWarningMessage* PokerTHMessage::unsafe_arena_release_timeoutwarningmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.timeoutWarningMessage) + _has_bits_[2] &= ~0x00000004u; + ::TimeoutWarningMessage* temp = timeoutwarningmessage_; + timeoutwarningmessage_ = nullptr; + return temp; +} +inline ::TimeoutWarningMessage* PokerTHMessage::_internal_mutable_timeoutwarningmessage() { + _has_bits_[2] |= 0x00000004u; + if (timeoutwarningmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::TimeoutWarningMessage>(GetArena()); + timeoutwarningmessage_ = p; + } + return timeoutwarningmessage_; +} +inline ::TimeoutWarningMessage* PokerTHMessage::mutable_timeoutwarningmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.timeoutWarningMessage) + return _internal_mutable_timeoutwarningmessage(); +} +inline void PokerTHMessage::set_allocated_timeoutwarningmessage(::TimeoutWarningMessage* timeoutwarningmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete timeoutwarningmessage_; + } + if (timeoutwarningmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(timeoutwarningmessage); + if (message_arena != submessage_arena) { + timeoutwarningmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, timeoutwarningmessage, submessage_arena); + } + _has_bits_[2] |= 0x00000004u; + } else { + _has_bits_[2] &= ~0x00000004u; + } + timeoutwarningmessage_ = timeoutwarningmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.timeoutWarningMessage) } // optional .ResetTimeoutMessage resetTimeoutMessage = 69; +inline bool PokerTHMessage::_internal_has_resettimeoutmessage() const { + bool value = (_has_bits_[2] & 0x00000008u) != 0; + PROTOBUF_ASSUME(!value || resettimeoutmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_resettimeoutmessage() const { - return (_has_bits_[2] & 0x00000010u) != 0; -} -inline void PokerTHMessage::set_has_resettimeoutmessage() { - _has_bits_[2] |= 0x00000010u; -} -inline void PokerTHMessage::clear_has_resettimeoutmessage() { - _has_bits_[2] &= ~0x00000010u; + return _internal_has_resettimeoutmessage(); } inline void PokerTHMessage::clear_resettimeoutmessage() { - if (resettimeoutmessage_ != NULL) resettimeoutmessage_->::ResetTimeoutMessage::Clear(); - clear_has_resettimeoutmessage(); + if (resettimeoutmessage_ != nullptr) resettimeoutmessage_->Clear(); + _has_bits_[2] &= ~0x00000008u; +} +inline const ::ResetTimeoutMessage& PokerTHMessage::_internal_resettimeoutmessage() const { + const ::ResetTimeoutMessage* p = resettimeoutmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_ResetTimeoutMessage_default_instance_); } inline const ::ResetTimeoutMessage& PokerTHMessage::resettimeoutmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return resettimeoutmessage_ != NULL ? *resettimeoutmessage_ : *default_instance().resettimeoutmessage_; -#else - return resettimeoutmessage_ != NULL ? *resettimeoutmessage_ : *default_instance_->resettimeoutmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.resetTimeoutMessage) + return _internal_resettimeoutmessage(); } -inline ::ResetTimeoutMessage* PokerTHMessage::mutable_resettimeoutmessage() { - set_has_resettimeoutmessage(); - if (resettimeoutmessage_ == NULL) resettimeoutmessage_ = new ::ResetTimeoutMessage; - return resettimeoutmessage_; -} -inline ::ResetTimeoutMessage* PokerTHMessage::release_resettimeoutmessage() { - clear_has_resettimeoutmessage(); - ::ResetTimeoutMessage* temp = resettimeoutmessage_; - resettimeoutmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_resettimeoutmessage(::ResetTimeoutMessage* resettimeoutmessage) { - delete resettimeoutmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_resettimeoutmessage( + ::ResetTimeoutMessage* resettimeoutmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(resettimeoutmessage_); + } resettimeoutmessage_ = resettimeoutmessage; if (resettimeoutmessage) { - set_has_resettimeoutmessage(); + _has_bits_[2] |= 0x00000008u; } else { - clear_has_resettimeoutmessage(); + _has_bits_[2] &= ~0x00000008u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.resetTimeoutMessage) +} +inline ::ResetTimeoutMessage* PokerTHMessage::release_resettimeoutmessage() { + auto temp = unsafe_arena_release_resettimeoutmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::ResetTimeoutMessage* PokerTHMessage::unsafe_arena_release_resettimeoutmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.resetTimeoutMessage) + _has_bits_[2] &= ~0x00000008u; + ::ResetTimeoutMessage* temp = resettimeoutmessage_; + resettimeoutmessage_ = nullptr; + return temp; +} +inline ::ResetTimeoutMessage* PokerTHMessage::_internal_mutable_resettimeoutmessage() { + _has_bits_[2] |= 0x00000008u; + if (resettimeoutmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::ResetTimeoutMessage>(GetArena()); + resettimeoutmessage_ = p; + } + return resettimeoutmessage_; +} +inline ::ResetTimeoutMessage* PokerTHMessage::mutable_resettimeoutmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.resetTimeoutMessage) + return _internal_mutable_resettimeoutmessage(); +} +inline void PokerTHMessage::set_allocated_resettimeoutmessage(::ResetTimeoutMessage* resettimeoutmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete resettimeoutmessage_; + } + if (resettimeoutmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(resettimeoutmessage); + if (message_arena != submessage_arena) { + resettimeoutmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, resettimeoutmessage, submessage_arena); + } + _has_bits_[2] |= 0x00000008u; + } else { + _has_bits_[2] &= ~0x00000008u; + } + resettimeoutmessage_ = resettimeoutmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.resetTimeoutMessage) } // optional .ReportAvatarMessage reportAvatarMessage = 70; +inline bool PokerTHMessage::_internal_has_reportavatarmessage() const { + bool value = (_has_bits_[2] & 0x00000010u) != 0; + PROTOBUF_ASSUME(!value || reportavatarmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_reportavatarmessage() const { - return (_has_bits_[2] & 0x00000020u) != 0; -} -inline void PokerTHMessage::set_has_reportavatarmessage() { - _has_bits_[2] |= 0x00000020u; -} -inline void PokerTHMessage::clear_has_reportavatarmessage() { - _has_bits_[2] &= ~0x00000020u; + return _internal_has_reportavatarmessage(); } inline void PokerTHMessage::clear_reportavatarmessage() { - if (reportavatarmessage_ != NULL) reportavatarmessage_->::ReportAvatarMessage::Clear(); - clear_has_reportavatarmessage(); + if (reportavatarmessage_ != nullptr) reportavatarmessage_->Clear(); + _has_bits_[2] &= ~0x00000010u; +} +inline const ::ReportAvatarMessage& PokerTHMessage::_internal_reportavatarmessage() const { + const ::ReportAvatarMessage* p = reportavatarmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_ReportAvatarMessage_default_instance_); } inline const ::ReportAvatarMessage& PokerTHMessage::reportavatarmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return reportavatarmessage_ != NULL ? *reportavatarmessage_ : *default_instance().reportavatarmessage_; -#else - return reportavatarmessage_ != NULL ? *reportavatarmessage_ : *default_instance_->reportavatarmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.reportAvatarMessage) + return _internal_reportavatarmessage(); } -inline ::ReportAvatarMessage* PokerTHMessage::mutable_reportavatarmessage() { - set_has_reportavatarmessage(); - if (reportavatarmessage_ == NULL) reportavatarmessage_ = new ::ReportAvatarMessage; - return reportavatarmessage_; -} -inline ::ReportAvatarMessage* PokerTHMessage::release_reportavatarmessage() { - clear_has_reportavatarmessage(); - ::ReportAvatarMessage* temp = reportavatarmessage_; - reportavatarmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_reportavatarmessage(::ReportAvatarMessage* reportavatarmessage) { - delete reportavatarmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_reportavatarmessage( + ::ReportAvatarMessage* reportavatarmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(reportavatarmessage_); + } reportavatarmessage_ = reportavatarmessage; if (reportavatarmessage) { - set_has_reportavatarmessage(); + _has_bits_[2] |= 0x00000010u; } else { - clear_has_reportavatarmessage(); + _has_bits_[2] &= ~0x00000010u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.reportAvatarMessage) +} +inline ::ReportAvatarMessage* PokerTHMessage::release_reportavatarmessage() { + auto temp = unsafe_arena_release_reportavatarmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::ReportAvatarMessage* PokerTHMessage::unsafe_arena_release_reportavatarmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.reportAvatarMessage) + _has_bits_[2] &= ~0x00000010u; + ::ReportAvatarMessage* temp = reportavatarmessage_; + reportavatarmessage_ = nullptr; + return temp; +} +inline ::ReportAvatarMessage* PokerTHMessage::_internal_mutable_reportavatarmessage() { + _has_bits_[2] |= 0x00000010u; + if (reportavatarmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::ReportAvatarMessage>(GetArena()); + reportavatarmessage_ = p; + } + return reportavatarmessage_; +} +inline ::ReportAvatarMessage* PokerTHMessage::mutable_reportavatarmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.reportAvatarMessage) + return _internal_mutable_reportavatarmessage(); +} +inline void PokerTHMessage::set_allocated_reportavatarmessage(::ReportAvatarMessage* reportavatarmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete reportavatarmessage_; + } + if (reportavatarmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(reportavatarmessage); + if (message_arena != submessage_arena) { + reportavatarmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, reportavatarmessage, submessage_arena); + } + _has_bits_[2] |= 0x00000010u; + } else { + _has_bits_[2] &= ~0x00000010u; + } + reportavatarmessage_ = reportavatarmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.reportAvatarMessage) } // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; +inline bool PokerTHMessage::_internal_has_reportavatarackmessage() const { + bool value = (_has_bits_[2] & 0x00000020u) != 0; + PROTOBUF_ASSUME(!value || reportavatarackmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_reportavatarackmessage() const { - return (_has_bits_[2] & 0x00000040u) != 0; -} -inline void PokerTHMessage::set_has_reportavatarackmessage() { - _has_bits_[2] |= 0x00000040u; -} -inline void PokerTHMessage::clear_has_reportavatarackmessage() { - _has_bits_[2] &= ~0x00000040u; + return _internal_has_reportavatarackmessage(); } inline void PokerTHMessage::clear_reportavatarackmessage() { - if (reportavatarackmessage_ != NULL) reportavatarackmessage_->::ReportAvatarAckMessage::Clear(); - clear_has_reportavatarackmessage(); + if (reportavatarackmessage_ != nullptr) reportavatarackmessage_->Clear(); + _has_bits_[2] &= ~0x00000020u; +} +inline const ::ReportAvatarAckMessage& PokerTHMessage::_internal_reportavatarackmessage() const { + const ::ReportAvatarAckMessage* p = reportavatarackmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_ReportAvatarAckMessage_default_instance_); } inline const ::ReportAvatarAckMessage& PokerTHMessage::reportavatarackmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return reportavatarackmessage_ != NULL ? *reportavatarackmessage_ : *default_instance().reportavatarackmessage_; -#else - return reportavatarackmessage_ != NULL ? *reportavatarackmessage_ : *default_instance_->reportavatarackmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.reportAvatarAckMessage) + return _internal_reportavatarackmessage(); } -inline ::ReportAvatarAckMessage* PokerTHMessage::mutable_reportavatarackmessage() { - set_has_reportavatarackmessage(); - if (reportavatarackmessage_ == NULL) reportavatarackmessage_ = new ::ReportAvatarAckMessage; - return reportavatarackmessage_; -} -inline ::ReportAvatarAckMessage* PokerTHMessage::release_reportavatarackmessage() { - clear_has_reportavatarackmessage(); - ::ReportAvatarAckMessage* temp = reportavatarackmessage_; - reportavatarackmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_reportavatarackmessage(::ReportAvatarAckMessage* reportavatarackmessage) { - delete reportavatarackmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_reportavatarackmessage( + ::ReportAvatarAckMessage* reportavatarackmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(reportavatarackmessage_); + } reportavatarackmessage_ = reportavatarackmessage; if (reportavatarackmessage) { - set_has_reportavatarackmessage(); + _has_bits_[2] |= 0x00000020u; } else { - clear_has_reportavatarackmessage(); + _has_bits_[2] &= ~0x00000020u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.reportAvatarAckMessage) +} +inline ::ReportAvatarAckMessage* PokerTHMessage::release_reportavatarackmessage() { + auto temp = unsafe_arena_release_reportavatarackmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::ReportAvatarAckMessage* PokerTHMessage::unsafe_arena_release_reportavatarackmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.reportAvatarAckMessage) + _has_bits_[2] &= ~0x00000020u; + ::ReportAvatarAckMessage* temp = reportavatarackmessage_; + reportavatarackmessage_ = nullptr; + return temp; +} +inline ::ReportAvatarAckMessage* PokerTHMessage::_internal_mutable_reportavatarackmessage() { + _has_bits_[2] |= 0x00000020u; + if (reportavatarackmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::ReportAvatarAckMessage>(GetArena()); + reportavatarackmessage_ = p; + } + return reportavatarackmessage_; +} +inline ::ReportAvatarAckMessage* PokerTHMessage::mutable_reportavatarackmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.reportAvatarAckMessage) + return _internal_mutable_reportavatarackmessage(); +} +inline void PokerTHMessage::set_allocated_reportavatarackmessage(::ReportAvatarAckMessage* reportavatarackmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete reportavatarackmessage_; + } + if (reportavatarackmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(reportavatarackmessage); + if (message_arena != submessage_arena) { + reportavatarackmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, reportavatarackmessage, submessage_arena); + } + _has_bits_[2] |= 0x00000020u; + } else { + _has_bits_[2] &= ~0x00000020u; + } + reportavatarackmessage_ = reportavatarackmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.reportAvatarAckMessage) } // optional .ReportGameMessage reportGameMessage = 72; +inline bool PokerTHMessage::_internal_has_reportgamemessage() const { + bool value = (_has_bits_[2] & 0x00000040u) != 0; + PROTOBUF_ASSUME(!value || reportgamemessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_reportgamemessage() const { - return (_has_bits_[2] & 0x00000080u) != 0; -} -inline void PokerTHMessage::set_has_reportgamemessage() { - _has_bits_[2] |= 0x00000080u; -} -inline void PokerTHMessage::clear_has_reportgamemessage() { - _has_bits_[2] &= ~0x00000080u; + return _internal_has_reportgamemessage(); } inline void PokerTHMessage::clear_reportgamemessage() { - if (reportgamemessage_ != NULL) reportgamemessage_->::ReportGameMessage::Clear(); - clear_has_reportgamemessage(); + if (reportgamemessage_ != nullptr) reportgamemessage_->Clear(); + _has_bits_[2] &= ~0x00000040u; +} +inline const ::ReportGameMessage& PokerTHMessage::_internal_reportgamemessage() const { + const ::ReportGameMessage* p = reportgamemessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_ReportGameMessage_default_instance_); } inline const ::ReportGameMessage& PokerTHMessage::reportgamemessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return reportgamemessage_ != NULL ? *reportgamemessage_ : *default_instance().reportgamemessage_; -#else - return reportgamemessage_ != NULL ? *reportgamemessage_ : *default_instance_->reportgamemessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.reportGameMessage) + return _internal_reportgamemessage(); } -inline ::ReportGameMessage* PokerTHMessage::mutable_reportgamemessage() { - set_has_reportgamemessage(); - if (reportgamemessage_ == NULL) reportgamemessage_ = new ::ReportGameMessage; - return reportgamemessage_; -} -inline ::ReportGameMessage* PokerTHMessage::release_reportgamemessage() { - clear_has_reportgamemessage(); - ::ReportGameMessage* temp = reportgamemessage_; - reportgamemessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_reportgamemessage(::ReportGameMessage* reportgamemessage) { - delete reportgamemessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_reportgamemessage( + ::ReportGameMessage* reportgamemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(reportgamemessage_); + } reportgamemessage_ = reportgamemessage; if (reportgamemessage) { - set_has_reportgamemessage(); + _has_bits_[2] |= 0x00000040u; } else { - clear_has_reportgamemessage(); + _has_bits_[2] &= ~0x00000040u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.reportGameMessage) +} +inline ::ReportGameMessage* PokerTHMessage::release_reportgamemessage() { + auto temp = unsafe_arena_release_reportgamemessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::ReportGameMessage* PokerTHMessage::unsafe_arena_release_reportgamemessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.reportGameMessage) + _has_bits_[2] &= ~0x00000040u; + ::ReportGameMessage* temp = reportgamemessage_; + reportgamemessage_ = nullptr; + return temp; +} +inline ::ReportGameMessage* PokerTHMessage::_internal_mutable_reportgamemessage() { + _has_bits_[2] |= 0x00000040u; + if (reportgamemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::ReportGameMessage>(GetArena()); + reportgamemessage_ = p; + } + return reportgamemessage_; +} +inline ::ReportGameMessage* PokerTHMessage::mutable_reportgamemessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.reportGameMessage) + return _internal_mutable_reportgamemessage(); +} +inline void PokerTHMessage::set_allocated_reportgamemessage(::ReportGameMessage* reportgamemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete reportgamemessage_; + } + if (reportgamemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(reportgamemessage); + if (message_arena != submessage_arena) { + reportgamemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, reportgamemessage, submessage_arena); + } + _has_bits_[2] |= 0x00000040u; + } else { + _has_bits_[2] &= ~0x00000040u; + } + reportgamemessage_ = reportgamemessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.reportGameMessage) } // optional .ReportGameAckMessage reportGameAckMessage = 73; +inline bool PokerTHMessage::_internal_has_reportgameackmessage() const { + bool value = (_has_bits_[2] & 0x00000080u) != 0; + PROTOBUF_ASSUME(!value || reportgameackmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_reportgameackmessage() const { - return (_has_bits_[2] & 0x00000100u) != 0; -} -inline void PokerTHMessage::set_has_reportgameackmessage() { - _has_bits_[2] |= 0x00000100u; -} -inline void PokerTHMessage::clear_has_reportgameackmessage() { - _has_bits_[2] &= ~0x00000100u; + return _internal_has_reportgameackmessage(); } inline void PokerTHMessage::clear_reportgameackmessage() { - if (reportgameackmessage_ != NULL) reportgameackmessage_->::ReportGameAckMessage::Clear(); - clear_has_reportgameackmessage(); + if (reportgameackmessage_ != nullptr) reportgameackmessage_->Clear(); + _has_bits_[2] &= ~0x00000080u; +} +inline const ::ReportGameAckMessage& PokerTHMessage::_internal_reportgameackmessage() const { + const ::ReportGameAckMessage* p = reportgameackmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_ReportGameAckMessage_default_instance_); } inline const ::ReportGameAckMessage& PokerTHMessage::reportgameackmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return reportgameackmessage_ != NULL ? *reportgameackmessage_ : *default_instance().reportgameackmessage_; -#else - return reportgameackmessage_ != NULL ? *reportgameackmessage_ : *default_instance_->reportgameackmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.reportGameAckMessage) + return _internal_reportgameackmessage(); } -inline ::ReportGameAckMessage* PokerTHMessage::mutable_reportgameackmessage() { - set_has_reportgameackmessage(); - if (reportgameackmessage_ == NULL) reportgameackmessage_ = new ::ReportGameAckMessage; - return reportgameackmessage_; -} -inline ::ReportGameAckMessage* PokerTHMessage::release_reportgameackmessage() { - clear_has_reportgameackmessage(); - ::ReportGameAckMessage* temp = reportgameackmessage_; - reportgameackmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_reportgameackmessage(::ReportGameAckMessage* reportgameackmessage) { - delete reportgameackmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_reportgameackmessage( + ::ReportGameAckMessage* reportgameackmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(reportgameackmessage_); + } reportgameackmessage_ = reportgameackmessage; if (reportgameackmessage) { - set_has_reportgameackmessage(); + _has_bits_[2] |= 0x00000080u; } else { - clear_has_reportgameackmessage(); + _has_bits_[2] &= ~0x00000080u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.reportGameAckMessage) +} +inline ::ReportGameAckMessage* PokerTHMessage::release_reportgameackmessage() { + auto temp = unsafe_arena_release_reportgameackmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::ReportGameAckMessage* PokerTHMessage::unsafe_arena_release_reportgameackmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.reportGameAckMessage) + _has_bits_[2] &= ~0x00000080u; + ::ReportGameAckMessage* temp = reportgameackmessage_; + reportgameackmessage_ = nullptr; + return temp; +} +inline ::ReportGameAckMessage* PokerTHMessage::_internal_mutable_reportgameackmessage() { + _has_bits_[2] |= 0x00000080u; + if (reportgameackmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::ReportGameAckMessage>(GetArena()); + reportgameackmessage_ = p; + } + return reportgameackmessage_; +} +inline ::ReportGameAckMessage* PokerTHMessage::mutable_reportgameackmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.reportGameAckMessage) + return _internal_mutable_reportgameackmessage(); +} +inline void PokerTHMessage::set_allocated_reportgameackmessage(::ReportGameAckMessage* reportgameackmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete reportgameackmessage_; + } + if (reportgameackmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(reportgameackmessage); + if (message_arena != submessage_arena) { + reportgameackmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, reportgameackmessage, submessage_arena); + } + _has_bits_[2] |= 0x00000080u; + } else { + _has_bits_[2] &= ~0x00000080u; + } + reportgameackmessage_ = reportgameackmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.reportGameAckMessage) } // optional .ErrorMessage errorMessage = 74; +inline bool PokerTHMessage::_internal_has_errormessage() const { + bool value = (_has_bits_[2] & 0x00000100u) != 0; + PROTOBUF_ASSUME(!value || errormessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_errormessage() const { - return (_has_bits_[2] & 0x00000200u) != 0; -} -inline void PokerTHMessage::set_has_errormessage() { - _has_bits_[2] |= 0x00000200u; -} -inline void PokerTHMessage::clear_has_errormessage() { - _has_bits_[2] &= ~0x00000200u; + return _internal_has_errormessage(); } inline void PokerTHMessage::clear_errormessage() { - if (errormessage_ != NULL) errormessage_->::ErrorMessage::Clear(); - clear_has_errormessage(); + if (errormessage_ != nullptr) errormessage_->Clear(); + _has_bits_[2] &= ~0x00000100u; +} +inline const ::ErrorMessage& PokerTHMessage::_internal_errormessage() const { + const ::ErrorMessage* p = errormessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_ErrorMessage_default_instance_); } inline const ::ErrorMessage& PokerTHMessage::errormessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return errormessage_ != NULL ? *errormessage_ : *default_instance().errormessage_; -#else - return errormessage_ != NULL ? *errormessage_ : *default_instance_->errormessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.errorMessage) + return _internal_errormessage(); } -inline ::ErrorMessage* PokerTHMessage::mutable_errormessage() { - set_has_errormessage(); - if (errormessage_ == NULL) errormessage_ = new ::ErrorMessage; - return errormessage_; -} -inline ::ErrorMessage* PokerTHMessage::release_errormessage() { - clear_has_errormessage(); - ::ErrorMessage* temp = errormessage_; - errormessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_errormessage(::ErrorMessage* errormessage) { - delete errormessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_errormessage( + ::ErrorMessage* errormessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(errormessage_); + } errormessage_ = errormessage; if (errormessage) { - set_has_errormessage(); + _has_bits_[2] |= 0x00000100u; } else { - clear_has_errormessage(); + _has_bits_[2] &= ~0x00000100u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.errorMessage) +} +inline ::ErrorMessage* PokerTHMessage::release_errormessage() { + auto temp = unsafe_arena_release_errormessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::ErrorMessage* PokerTHMessage::unsafe_arena_release_errormessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.errorMessage) + _has_bits_[2] &= ~0x00000100u; + ::ErrorMessage* temp = errormessage_; + errormessage_ = nullptr; + return temp; +} +inline ::ErrorMessage* PokerTHMessage::_internal_mutable_errormessage() { + _has_bits_[2] |= 0x00000100u; + if (errormessage_ == nullptr) { + auto* p = CreateMaybeMessage<::ErrorMessage>(GetArena()); + errormessage_ = p; + } + return errormessage_; +} +inline ::ErrorMessage* PokerTHMessage::mutable_errormessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.errorMessage) + return _internal_mutable_errormessage(); +} +inline void PokerTHMessage::set_allocated_errormessage(::ErrorMessage* errormessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete errormessage_; + } + if (errormessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(errormessage); + if (message_arena != submessage_arena) { + errormessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, errormessage, submessage_arena); + } + _has_bits_[2] |= 0x00000100u; + } else { + _has_bits_[2] &= ~0x00000100u; + } + errormessage_ = errormessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.errorMessage) } // optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; +inline bool PokerTHMessage::_internal_has_adminremovegamemessage() const { + bool value = (_has_bits_[2] & 0x00000200u) != 0; + PROTOBUF_ASSUME(!value || adminremovegamemessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_adminremovegamemessage() const { - return (_has_bits_[2] & 0x00000400u) != 0; -} -inline void PokerTHMessage::set_has_adminremovegamemessage() { - _has_bits_[2] |= 0x00000400u; -} -inline void PokerTHMessage::clear_has_adminremovegamemessage() { - _has_bits_[2] &= ~0x00000400u; + return _internal_has_adminremovegamemessage(); } inline void PokerTHMessage::clear_adminremovegamemessage() { - if (adminremovegamemessage_ != NULL) adminremovegamemessage_->::AdminRemoveGameMessage::Clear(); - clear_has_adminremovegamemessage(); + if (adminremovegamemessage_ != nullptr) adminremovegamemessage_->Clear(); + _has_bits_[2] &= ~0x00000200u; +} +inline const ::AdminRemoveGameMessage& PokerTHMessage::_internal_adminremovegamemessage() const { + const ::AdminRemoveGameMessage* p = adminremovegamemessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_AdminRemoveGameMessage_default_instance_); } inline const ::AdminRemoveGameMessage& PokerTHMessage::adminremovegamemessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return adminremovegamemessage_ != NULL ? *adminremovegamemessage_ : *default_instance().adminremovegamemessage_; -#else - return adminremovegamemessage_ != NULL ? *adminremovegamemessage_ : *default_instance_->adminremovegamemessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.adminRemoveGameMessage) + return _internal_adminremovegamemessage(); } -inline ::AdminRemoveGameMessage* PokerTHMessage::mutable_adminremovegamemessage() { - set_has_adminremovegamemessage(); - if (adminremovegamemessage_ == NULL) adminremovegamemessage_ = new ::AdminRemoveGameMessage; - return adminremovegamemessage_; -} -inline ::AdminRemoveGameMessage* PokerTHMessage::release_adminremovegamemessage() { - clear_has_adminremovegamemessage(); - ::AdminRemoveGameMessage* temp = adminremovegamemessage_; - adminremovegamemessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_adminremovegamemessage(::AdminRemoveGameMessage* adminremovegamemessage) { - delete adminremovegamemessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_adminremovegamemessage( + ::AdminRemoveGameMessage* adminremovegamemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(adminremovegamemessage_); + } adminremovegamemessage_ = adminremovegamemessage; if (adminremovegamemessage) { - set_has_adminremovegamemessage(); + _has_bits_[2] |= 0x00000200u; } else { - clear_has_adminremovegamemessage(); + _has_bits_[2] &= ~0x00000200u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.adminRemoveGameMessage) +} +inline ::AdminRemoveGameMessage* PokerTHMessage::release_adminremovegamemessage() { + auto temp = unsafe_arena_release_adminremovegamemessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::AdminRemoveGameMessage* PokerTHMessage::unsafe_arena_release_adminremovegamemessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.adminRemoveGameMessage) + _has_bits_[2] &= ~0x00000200u; + ::AdminRemoveGameMessage* temp = adminremovegamemessage_; + adminremovegamemessage_ = nullptr; + return temp; +} +inline ::AdminRemoveGameMessage* PokerTHMessage::_internal_mutable_adminremovegamemessage() { + _has_bits_[2] |= 0x00000200u; + if (adminremovegamemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AdminRemoveGameMessage>(GetArena()); + adminremovegamemessage_ = p; + } + return adminremovegamemessage_; +} +inline ::AdminRemoveGameMessage* PokerTHMessage::mutable_adminremovegamemessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.adminRemoveGameMessage) + return _internal_mutable_adminremovegamemessage(); +} +inline void PokerTHMessage::set_allocated_adminremovegamemessage(::AdminRemoveGameMessage* adminremovegamemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete adminremovegamemessage_; + } + if (adminremovegamemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(adminremovegamemessage); + if (message_arena != submessage_arena) { + adminremovegamemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, adminremovegamemessage, submessage_arena); + } + _has_bits_[2] |= 0x00000200u; + } else { + _has_bits_[2] &= ~0x00000200u; + } + adminremovegamemessage_ = adminremovegamemessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.adminRemoveGameMessage) } // optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; +inline bool PokerTHMessage::_internal_has_adminremovegameackmessage() const { + bool value = (_has_bits_[2] & 0x00000400u) != 0; + PROTOBUF_ASSUME(!value || adminremovegameackmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_adminremovegameackmessage() const { - return (_has_bits_[2] & 0x00000800u) != 0; -} -inline void PokerTHMessage::set_has_adminremovegameackmessage() { - _has_bits_[2] |= 0x00000800u; -} -inline void PokerTHMessage::clear_has_adminremovegameackmessage() { - _has_bits_[2] &= ~0x00000800u; + return _internal_has_adminremovegameackmessage(); } inline void PokerTHMessage::clear_adminremovegameackmessage() { - if (adminremovegameackmessage_ != NULL) adminremovegameackmessage_->::AdminRemoveGameAckMessage::Clear(); - clear_has_adminremovegameackmessage(); + if (adminremovegameackmessage_ != nullptr) adminremovegameackmessage_->Clear(); + _has_bits_[2] &= ~0x00000400u; +} +inline const ::AdminRemoveGameAckMessage& PokerTHMessage::_internal_adminremovegameackmessage() const { + const ::AdminRemoveGameAckMessage* p = adminremovegameackmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_AdminRemoveGameAckMessage_default_instance_); } inline const ::AdminRemoveGameAckMessage& PokerTHMessage::adminremovegameackmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return adminremovegameackmessage_ != NULL ? *adminremovegameackmessage_ : *default_instance().adminremovegameackmessage_; -#else - return adminremovegameackmessage_ != NULL ? *adminremovegameackmessage_ : *default_instance_->adminremovegameackmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.adminRemoveGameAckMessage) + return _internal_adminremovegameackmessage(); } -inline ::AdminRemoveGameAckMessage* PokerTHMessage::mutable_adminremovegameackmessage() { - set_has_adminremovegameackmessage(); - if (adminremovegameackmessage_ == NULL) adminremovegameackmessage_ = new ::AdminRemoveGameAckMessage; - return adminremovegameackmessage_; -} -inline ::AdminRemoveGameAckMessage* PokerTHMessage::release_adminremovegameackmessage() { - clear_has_adminremovegameackmessage(); - ::AdminRemoveGameAckMessage* temp = adminremovegameackmessage_; - adminremovegameackmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_adminremovegameackmessage(::AdminRemoveGameAckMessage* adminremovegameackmessage) { - delete adminremovegameackmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_adminremovegameackmessage( + ::AdminRemoveGameAckMessage* adminremovegameackmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(adminremovegameackmessage_); + } adminremovegameackmessage_ = adminremovegameackmessage; if (adminremovegameackmessage) { - set_has_adminremovegameackmessage(); + _has_bits_[2] |= 0x00000400u; } else { - clear_has_adminremovegameackmessage(); + _has_bits_[2] &= ~0x00000400u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.adminRemoveGameAckMessage) +} +inline ::AdminRemoveGameAckMessage* PokerTHMessage::release_adminremovegameackmessage() { + auto temp = unsafe_arena_release_adminremovegameackmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::AdminRemoveGameAckMessage* PokerTHMessage::unsafe_arena_release_adminremovegameackmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.adminRemoveGameAckMessage) + _has_bits_[2] &= ~0x00000400u; + ::AdminRemoveGameAckMessage* temp = adminremovegameackmessage_; + adminremovegameackmessage_ = nullptr; + return temp; +} +inline ::AdminRemoveGameAckMessage* PokerTHMessage::_internal_mutable_adminremovegameackmessage() { + _has_bits_[2] |= 0x00000400u; + if (adminremovegameackmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AdminRemoveGameAckMessage>(GetArena()); + adminremovegameackmessage_ = p; + } + return adminremovegameackmessage_; +} +inline ::AdminRemoveGameAckMessage* PokerTHMessage::mutable_adminremovegameackmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.adminRemoveGameAckMessage) + return _internal_mutable_adminremovegameackmessage(); +} +inline void PokerTHMessage::set_allocated_adminremovegameackmessage(::AdminRemoveGameAckMessage* adminremovegameackmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete adminremovegameackmessage_; + } + if (adminremovegameackmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(adminremovegameackmessage); + if (message_arena != submessage_arena) { + adminremovegameackmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, adminremovegameackmessage, submessage_arena); + } + _has_bits_[2] |= 0x00000400u; + } else { + _has_bits_[2] &= ~0x00000400u; + } + adminremovegameackmessage_ = adminremovegameackmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.adminRemoveGameAckMessage) } // optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; +inline bool PokerTHMessage::_internal_has_adminbanplayermessage() const { + bool value = (_has_bits_[2] & 0x00000800u) != 0; + PROTOBUF_ASSUME(!value || adminbanplayermessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_adminbanplayermessage() const { - return (_has_bits_[2] & 0x00001000u) != 0; -} -inline void PokerTHMessage::set_has_adminbanplayermessage() { - _has_bits_[2] |= 0x00001000u; -} -inline void PokerTHMessage::clear_has_adminbanplayermessage() { - _has_bits_[2] &= ~0x00001000u; + return _internal_has_adminbanplayermessage(); } inline void PokerTHMessage::clear_adminbanplayermessage() { - if (adminbanplayermessage_ != NULL) adminbanplayermessage_->::AdminBanPlayerMessage::Clear(); - clear_has_adminbanplayermessage(); + if (adminbanplayermessage_ != nullptr) adminbanplayermessage_->Clear(); + _has_bits_[2] &= ~0x00000800u; +} +inline const ::AdminBanPlayerMessage& PokerTHMessage::_internal_adminbanplayermessage() const { + const ::AdminBanPlayerMessage* p = adminbanplayermessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_AdminBanPlayerMessage_default_instance_); } inline const ::AdminBanPlayerMessage& PokerTHMessage::adminbanplayermessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return adminbanplayermessage_ != NULL ? *adminbanplayermessage_ : *default_instance().adminbanplayermessage_; -#else - return adminbanplayermessage_ != NULL ? *adminbanplayermessage_ : *default_instance_->adminbanplayermessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.adminBanPlayerMessage) + return _internal_adminbanplayermessage(); } -inline ::AdminBanPlayerMessage* PokerTHMessage::mutable_adminbanplayermessage() { - set_has_adminbanplayermessage(); - if (adminbanplayermessage_ == NULL) adminbanplayermessage_ = new ::AdminBanPlayerMessage; - return adminbanplayermessage_; -} -inline ::AdminBanPlayerMessage* PokerTHMessage::release_adminbanplayermessage() { - clear_has_adminbanplayermessage(); - ::AdminBanPlayerMessage* temp = adminbanplayermessage_; - adminbanplayermessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_adminbanplayermessage(::AdminBanPlayerMessage* adminbanplayermessage) { - delete adminbanplayermessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_adminbanplayermessage( + ::AdminBanPlayerMessage* adminbanplayermessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(adminbanplayermessage_); + } adminbanplayermessage_ = adminbanplayermessage; if (adminbanplayermessage) { - set_has_adminbanplayermessage(); + _has_bits_[2] |= 0x00000800u; } else { - clear_has_adminbanplayermessage(); + _has_bits_[2] &= ~0x00000800u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.adminBanPlayerMessage) +} +inline ::AdminBanPlayerMessage* PokerTHMessage::release_adminbanplayermessage() { + auto temp = unsafe_arena_release_adminbanplayermessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::AdminBanPlayerMessage* PokerTHMessage::unsafe_arena_release_adminbanplayermessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.adminBanPlayerMessage) + _has_bits_[2] &= ~0x00000800u; + ::AdminBanPlayerMessage* temp = adminbanplayermessage_; + adminbanplayermessage_ = nullptr; + return temp; +} +inline ::AdminBanPlayerMessage* PokerTHMessage::_internal_mutable_adminbanplayermessage() { + _has_bits_[2] |= 0x00000800u; + if (adminbanplayermessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AdminBanPlayerMessage>(GetArena()); + adminbanplayermessage_ = p; + } + return adminbanplayermessage_; +} +inline ::AdminBanPlayerMessage* PokerTHMessage::mutable_adminbanplayermessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.adminBanPlayerMessage) + return _internal_mutable_adminbanplayermessage(); +} +inline void PokerTHMessage::set_allocated_adminbanplayermessage(::AdminBanPlayerMessage* adminbanplayermessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete adminbanplayermessage_; + } + if (adminbanplayermessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(adminbanplayermessage); + if (message_arena != submessage_arena) { + adminbanplayermessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, adminbanplayermessage, submessage_arena); + } + _has_bits_[2] |= 0x00000800u; + } else { + _has_bits_[2] &= ~0x00000800u; + } + adminbanplayermessage_ = adminbanplayermessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.adminBanPlayerMessage) } // optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; +inline bool PokerTHMessage::_internal_has_adminbanplayerackmessage() const { + bool value = (_has_bits_[2] & 0x00001000u) != 0; + PROTOBUF_ASSUME(!value || adminbanplayerackmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_adminbanplayerackmessage() const { - return (_has_bits_[2] & 0x00002000u) != 0; -} -inline void PokerTHMessage::set_has_adminbanplayerackmessage() { - _has_bits_[2] |= 0x00002000u; -} -inline void PokerTHMessage::clear_has_adminbanplayerackmessage() { - _has_bits_[2] &= ~0x00002000u; + return _internal_has_adminbanplayerackmessage(); } inline void PokerTHMessage::clear_adminbanplayerackmessage() { - if (adminbanplayerackmessage_ != NULL) adminbanplayerackmessage_->::AdminBanPlayerAckMessage::Clear(); - clear_has_adminbanplayerackmessage(); + if (adminbanplayerackmessage_ != nullptr) adminbanplayerackmessage_->Clear(); + _has_bits_[2] &= ~0x00001000u; +} +inline const ::AdminBanPlayerAckMessage& PokerTHMessage::_internal_adminbanplayerackmessage() const { + const ::AdminBanPlayerAckMessage* p = adminbanplayerackmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_AdminBanPlayerAckMessage_default_instance_); } inline const ::AdminBanPlayerAckMessage& PokerTHMessage::adminbanplayerackmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return adminbanplayerackmessage_ != NULL ? *adminbanplayerackmessage_ : *default_instance().adminbanplayerackmessage_; -#else - return adminbanplayerackmessage_ != NULL ? *adminbanplayerackmessage_ : *default_instance_->adminbanplayerackmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.adminBanPlayerAckMessage) + return _internal_adminbanplayerackmessage(); } -inline ::AdminBanPlayerAckMessage* PokerTHMessage::mutable_adminbanplayerackmessage() { - set_has_adminbanplayerackmessage(); - if (adminbanplayerackmessage_ == NULL) adminbanplayerackmessage_ = new ::AdminBanPlayerAckMessage; - return adminbanplayerackmessage_; -} -inline ::AdminBanPlayerAckMessage* PokerTHMessage::release_adminbanplayerackmessage() { - clear_has_adminbanplayerackmessage(); - ::AdminBanPlayerAckMessage* temp = adminbanplayerackmessage_; - adminbanplayerackmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_adminbanplayerackmessage(::AdminBanPlayerAckMessage* adminbanplayerackmessage) { - delete adminbanplayerackmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_adminbanplayerackmessage( + ::AdminBanPlayerAckMessage* adminbanplayerackmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(adminbanplayerackmessage_); + } adminbanplayerackmessage_ = adminbanplayerackmessage; if (adminbanplayerackmessage) { - set_has_adminbanplayerackmessage(); + _has_bits_[2] |= 0x00001000u; } else { - clear_has_adminbanplayerackmessage(); + _has_bits_[2] &= ~0x00001000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.adminBanPlayerAckMessage) +} +inline ::AdminBanPlayerAckMessage* PokerTHMessage::release_adminbanplayerackmessage() { + auto temp = unsafe_arena_release_adminbanplayerackmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::AdminBanPlayerAckMessage* PokerTHMessage::unsafe_arena_release_adminbanplayerackmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.adminBanPlayerAckMessage) + _has_bits_[2] &= ~0x00001000u; + ::AdminBanPlayerAckMessage* temp = adminbanplayerackmessage_; + adminbanplayerackmessage_ = nullptr; + return temp; +} +inline ::AdminBanPlayerAckMessage* PokerTHMessage::_internal_mutable_adminbanplayerackmessage() { + _has_bits_[2] |= 0x00001000u; + if (adminbanplayerackmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AdminBanPlayerAckMessage>(GetArena()); + adminbanplayerackmessage_ = p; + } + return adminbanplayerackmessage_; +} +inline ::AdminBanPlayerAckMessage* PokerTHMessage::mutable_adminbanplayerackmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.adminBanPlayerAckMessage) + return _internal_mutable_adminbanplayerackmessage(); +} +inline void PokerTHMessage::set_allocated_adminbanplayerackmessage(::AdminBanPlayerAckMessage* adminbanplayerackmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete adminbanplayerackmessage_; + } + if (adminbanplayerackmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(adminbanplayerackmessage); + if (message_arena != submessage_arena) { + adminbanplayerackmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, adminbanplayerackmessage, submessage_arena); + } + _has_bits_[2] |= 0x00001000u; + } else { + _has_bits_[2] &= ~0x00001000u; + } + adminbanplayerackmessage_ = adminbanplayerackmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.adminBanPlayerAckMessage) } // optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; +inline bool PokerTHMessage::_internal_has_gamelistspectatorjoinedmessage() const { + bool value = (_has_bits_[2] & 0x00002000u) != 0; + PROTOBUF_ASSUME(!value || gamelistspectatorjoinedmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_gamelistspectatorjoinedmessage() const { - return (_has_bits_[2] & 0x00004000u) != 0; -} -inline void PokerTHMessage::set_has_gamelistspectatorjoinedmessage() { - _has_bits_[2] |= 0x00004000u; -} -inline void PokerTHMessage::clear_has_gamelistspectatorjoinedmessage() { - _has_bits_[2] &= ~0x00004000u; + return _internal_has_gamelistspectatorjoinedmessage(); } inline void PokerTHMessage::clear_gamelistspectatorjoinedmessage() { - if (gamelistspectatorjoinedmessage_ != NULL) gamelistspectatorjoinedmessage_->::GameListSpectatorJoinedMessage::Clear(); - clear_has_gamelistspectatorjoinedmessage(); + if (gamelistspectatorjoinedmessage_ != nullptr) gamelistspectatorjoinedmessage_->Clear(); + _has_bits_[2] &= ~0x00002000u; +} +inline const ::GameListSpectatorJoinedMessage& PokerTHMessage::_internal_gamelistspectatorjoinedmessage() const { + const ::GameListSpectatorJoinedMessage* p = gamelistspectatorjoinedmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_GameListSpectatorJoinedMessage_default_instance_); } inline const ::GameListSpectatorJoinedMessage& PokerTHMessage::gamelistspectatorjoinedmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamelistspectatorjoinedmessage_ != NULL ? *gamelistspectatorjoinedmessage_ : *default_instance().gamelistspectatorjoinedmessage_; -#else - return gamelistspectatorjoinedmessage_ != NULL ? *gamelistspectatorjoinedmessage_ : *default_instance_->gamelistspectatorjoinedmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.gameListSpectatorJoinedMessage) + return _internal_gamelistspectatorjoinedmessage(); } -inline ::GameListSpectatorJoinedMessage* PokerTHMessage::mutable_gamelistspectatorjoinedmessage() { - set_has_gamelistspectatorjoinedmessage(); - if (gamelistspectatorjoinedmessage_ == NULL) gamelistspectatorjoinedmessage_ = new ::GameListSpectatorJoinedMessage; - return gamelistspectatorjoinedmessage_; -} -inline ::GameListSpectatorJoinedMessage* PokerTHMessage::release_gamelistspectatorjoinedmessage() { - clear_has_gamelistspectatorjoinedmessage(); - ::GameListSpectatorJoinedMessage* temp = gamelistspectatorjoinedmessage_; - gamelistspectatorjoinedmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_gamelistspectatorjoinedmessage(::GameListSpectatorJoinedMessage* gamelistspectatorjoinedmessage) { - delete gamelistspectatorjoinedmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_gamelistspectatorjoinedmessage( + ::GameListSpectatorJoinedMessage* gamelistspectatorjoinedmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(gamelistspectatorjoinedmessage_); + } gamelistspectatorjoinedmessage_ = gamelistspectatorjoinedmessage; if (gamelistspectatorjoinedmessage) { - set_has_gamelistspectatorjoinedmessage(); + _has_bits_[2] |= 0x00002000u; } else { - clear_has_gamelistspectatorjoinedmessage(); + _has_bits_[2] &= ~0x00002000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.gameListSpectatorJoinedMessage) +} +inline ::GameListSpectatorJoinedMessage* PokerTHMessage::release_gamelistspectatorjoinedmessage() { + auto temp = unsafe_arena_release_gamelistspectatorjoinedmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::GameListSpectatorJoinedMessage* PokerTHMessage::unsafe_arena_release_gamelistspectatorjoinedmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.gameListSpectatorJoinedMessage) + _has_bits_[2] &= ~0x00002000u; + ::GameListSpectatorJoinedMessage* temp = gamelistspectatorjoinedmessage_; + gamelistspectatorjoinedmessage_ = nullptr; + return temp; +} +inline ::GameListSpectatorJoinedMessage* PokerTHMessage::_internal_mutable_gamelistspectatorjoinedmessage() { + _has_bits_[2] |= 0x00002000u; + if (gamelistspectatorjoinedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameListSpectatorJoinedMessage>(GetArena()); + gamelistspectatorjoinedmessage_ = p; + } + return gamelistspectatorjoinedmessage_; +} +inline ::GameListSpectatorJoinedMessage* PokerTHMessage::mutable_gamelistspectatorjoinedmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListSpectatorJoinedMessage) + return _internal_mutable_gamelistspectatorjoinedmessage(); +} +inline void PokerTHMessage::set_allocated_gamelistspectatorjoinedmessage(::GameListSpectatorJoinedMessage* gamelistspectatorjoinedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete gamelistspectatorjoinedmessage_; + } + if (gamelistspectatorjoinedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(gamelistspectatorjoinedmessage); + if (message_arena != submessage_arena) { + gamelistspectatorjoinedmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, gamelistspectatorjoinedmessage, submessage_arena); + } + _has_bits_[2] |= 0x00002000u; + } else { + _has_bits_[2] &= ~0x00002000u; + } + gamelistspectatorjoinedmessage_ = gamelistspectatorjoinedmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.gameListSpectatorJoinedMessage) } // optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; +inline bool PokerTHMessage::_internal_has_gamelistspectatorleftmessage() const { + bool value = (_has_bits_[2] & 0x00004000u) != 0; + PROTOBUF_ASSUME(!value || gamelistspectatorleftmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_gamelistspectatorleftmessage() const { - return (_has_bits_[2] & 0x00008000u) != 0; -} -inline void PokerTHMessage::set_has_gamelistspectatorleftmessage() { - _has_bits_[2] |= 0x00008000u; -} -inline void PokerTHMessage::clear_has_gamelistspectatorleftmessage() { - _has_bits_[2] &= ~0x00008000u; + return _internal_has_gamelistspectatorleftmessage(); } inline void PokerTHMessage::clear_gamelistspectatorleftmessage() { - if (gamelistspectatorleftmessage_ != NULL) gamelistspectatorleftmessage_->::GameListSpectatorLeftMessage::Clear(); - clear_has_gamelistspectatorleftmessage(); + if (gamelistspectatorleftmessage_ != nullptr) gamelistspectatorleftmessage_->Clear(); + _has_bits_[2] &= ~0x00004000u; +} +inline const ::GameListSpectatorLeftMessage& PokerTHMessage::_internal_gamelistspectatorleftmessage() const { + const ::GameListSpectatorLeftMessage* p = gamelistspectatorleftmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_GameListSpectatorLeftMessage_default_instance_); } inline const ::GameListSpectatorLeftMessage& PokerTHMessage::gamelistspectatorleftmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamelistspectatorleftmessage_ != NULL ? *gamelistspectatorleftmessage_ : *default_instance().gamelistspectatorleftmessage_; -#else - return gamelistspectatorleftmessage_ != NULL ? *gamelistspectatorleftmessage_ : *default_instance_->gamelistspectatorleftmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.gameListSpectatorLeftMessage) + return _internal_gamelistspectatorleftmessage(); } -inline ::GameListSpectatorLeftMessage* PokerTHMessage::mutable_gamelistspectatorleftmessage() { - set_has_gamelistspectatorleftmessage(); - if (gamelistspectatorleftmessage_ == NULL) gamelistspectatorleftmessage_ = new ::GameListSpectatorLeftMessage; - return gamelistspectatorleftmessage_; -} -inline ::GameListSpectatorLeftMessage* PokerTHMessage::release_gamelistspectatorleftmessage() { - clear_has_gamelistspectatorleftmessage(); - ::GameListSpectatorLeftMessage* temp = gamelistspectatorleftmessage_; - gamelistspectatorleftmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_gamelistspectatorleftmessage(::GameListSpectatorLeftMessage* gamelistspectatorleftmessage) { - delete gamelistspectatorleftmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_gamelistspectatorleftmessage( + ::GameListSpectatorLeftMessage* gamelistspectatorleftmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(gamelistspectatorleftmessage_); + } gamelistspectatorleftmessage_ = gamelistspectatorleftmessage; if (gamelistspectatorleftmessage) { - set_has_gamelistspectatorleftmessage(); + _has_bits_[2] |= 0x00004000u; } else { - clear_has_gamelistspectatorleftmessage(); + _has_bits_[2] &= ~0x00004000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.gameListSpectatorLeftMessage) +} +inline ::GameListSpectatorLeftMessage* PokerTHMessage::release_gamelistspectatorleftmessage() { + auto temp = unsafe_arena_release_gamelistspectatorleftmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::GameListSpectatorLeftMessage* PokerTHMessage::unsafe_arena_release_gamelistspectatorleftmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.gameListSpectatorLeftMessage) + _has_bits_[2] &= ~0x00004000u; + ::GameListSpectatorLeftMessage* temp = gamelistspectatorleftmessage_; + gamelistspectatorleftmessage_ = nullptr; + return temp; +} +inline ::GameListSpectatorLeftMessage* PokerTHMessage::_internal_mutable_gamelistspectatorleftmessage() { + _has_bits_[2] |= 0x00004000u; + if (gamelistspectatorleftmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameListSpectatorLeftMessage>(GetArena()); + gamelistspectatorleftmessage_ = p; + } + return gamelistspectatorleftmessage_; +} +inline ::GameListSpectatorLeftMessage* PokerTHMessage::mutable_gamelistspectatorleftmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListSpectatorLeftMessage) + return _internal_mutable_gamelistspectatorleftmessage(); +} +inline void PokerTHMessage::set_allocated_gamelistspectatorleftmessage(::GameListSpectatorLeftMessage* gamelistspectatorleftmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete gamelistspectatorleftmessage_; + } + if (gamelistspectatorleftmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(gamelistspectatorleftmessage); + if (message_arena != submessage_arena) { + gamelistspectatorleftmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, gamelistspectatorleftmessage, submessage_arena); + } + _has_bits_[2] |= 0x00004000u; + } else { + _has_bits_[2] &= ~0x00004000u; + } + gamelistspectatorleftmessage_ = gamelistspectatorleftmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.gameListSpectatorLeftMessage) } // optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; +inline bool PokerTHMessage::_internal_has_gamespectatorjoinedmessage() const { + bool value = (_has_bits_[2] & 0x00008000u) != 0; + PROTOBUF_ASSUME(!value || gamespectatorjoinedmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_gamespectatorjoinedmessage() const { - return (_has_bits_[2] & 0x00010000u) != 0; -} -inline void PokerTHMessage::set_has_gamespectatorjoinedmessage() { - _has_bits_[2] |= 0x00010000u; -} -inline void PokerTHMessage::clear_has_gamespectatorjoinedmessage() { - _has_bits_[2] &= ~0x00010000u; + return _internal_has_gamespectatorjoinedmessage(); } inline void PokerTHMessage::clear_gamespectatorjoinedmessage() { - if (gamespectatorjoinedmessage_ != NULL) gamespectatorjoinedmessage_->::GameSpectatorJoinedMessage::Clear(); - clear_has_gamespectatorjoinedmessage(); + if (gamespectatorjoinedmessage_ != nullptr) gamespectatorjoinedmessage_->Clear(); + _has_bits_[2] &= ~0x00008000u; +} +inline const ::GameSpectatorJoinedMessage& PokerTHMessage::_internal_gamespectatorjoinedmessage() const { + const ::GameSpectatorJoinedMessage* p = gamespectatorjoinedmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_GameSpectatorJoinedMessage_default_instance_); } inline const ::GameSpectatorJoinedMessage& PokerTHMessage::gamespectatorjoinedmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamespectatorjoinedmessage_ != NULL ? *gamespectatorjoinedmessage_ : *default_instance().gamespectatorjoinedmessage_; -#else - return gamespectatorjoinedmessage_ != NULL ? *gamespectatorjoinedmessage_ : *default_instance_->gamespectatorjoinedmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.gameSpectatorJoinedMessage) + return _internal_gamespectatorjoinedmessage(); } -inline ::GameSpectatorJoinedMessage* PokerTHMessage::mutable_gamespectatorjoinedmessage() { - set_has_gamespectatorjoinedmessage(); - if (gamespectatorjoinedmessage_ == NULL) gamespectatorjoinedmessage_ = new ::GameSpectatorJoinedMessage; - return gamespectatorjoinedmessage_; -} -inline ::GameSpectatorJoinedMessage* PokerTHMessage::release_gamespectatorjoinedmessage() { - clear_has_gamespectatorjoinedmessage(); - ::GameSpectatorJoinedMessage* temp = gamespectatorjoinedmessage_; - gamespectatorjoinedmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_gamespectatorjoinedmessage(::GameSpectatorJoinedMessage* gamespectatorjoinedmessage) { - delete gamespectatorjoinedmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_gamespectatorjoinedmessage( + ::GameSpectatorJoinedMessage* gamespectatorjoinedmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(gamespectatorjoinedmessage_); + } gamespectatorjoinedmessage_ = gamespectatorjoinedmessage; if (gamespectatorjoinedmessage) { - set_has_gamespectatorjoinedmessage(); + _has_bits_[2] |= 0x00008000u; } else { - clear_has_gamespectatorjoinedmessage(); + _has_bits_[2] &= ~0x00008000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.gameSpectatorJoinedMessage) +} +inline ::GameSpectatorJoinedMessage* PokerTHMessage::release_gamespectatorjoinedmessage() { + auto temp = unsafe_arena_release_gamespectatorjoinedmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::GameSpectatorJoinedMessage* PokerTHMessage::unsafe_arena_release_gamespectatorjoinedmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.gameSpectatorJoinedMessage) + _has_bits_[2] &= ~0x00008000u; + ::GameSpectatorJoinedMessage* temp = gamespectatorjoinedmessage_; + gamespectatorjoinedmessage_ = nullptr; + return temp; +} +inline ::GameSpectatorJoinedMessage* PokerTHMessage::_internal_mutable_gamespectatorjoinedmessage() { + _has_bits_[2] |= 0x00008000u; + if (gamespectatorjoinedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameSpectatorJoinedMessage>(GetArena()); + gamespectatorjoinedmessage_ = p; + } + return gamespectatorjoinedmessage_; +} +inline ::GameSpectatorJoinedMessage* PokerTHMessage::mutable_gamespectatorjoinedmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameSpectatorJoinedMessage) + return _internal_mutable_gamespectatorjoinedmessage(); +} +inline void PokerTHMessage::set_allocated_gamespectatorjoinedmessage(::GameSpectatorJoinedMessage* gamespectatorjoinedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete gamespectatorjoinedmessage_; + } + if (gamespectatorjoinedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(gamespectatorjoinedmessage); + if (message_arena != submessage_arena) { + gamespectatorjoinedmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, gamespectatorjoinedmessage, submessage_arena); + } + _has_bits_[2] |= 0x00008000u; + } else { + _has_bits_[2] &= ~0x00008000u; + } + gamespectatorjoinedmessage_ = gamespectatorjoinedmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.gameSpectatorJoinedMessage) } // optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; +inline bool PokerTHMessage::_internal_has_gamespectatorleftmessage() const { + bool value = (_has_bits_[2] & 0x00010000u) != 0; + PROTOBUF_ASSUME(!value || gamespectatorleftmessage_ != nullptr); + return value; +} inline bool PokerTHMessage::has_gamespectatorleftmessage() const { - return (_has_bits_[2] & 0x00020000u) != 0; -} -inline void PokerTHMessage::set_has_gamespectatorleftmessage() { - _has_bits_[2] |= 0x00020000u; -} -inline void PokerTHMessage::clear_has_gamespectatorleftmessage() { - _has_bits_[2] &= ~0x00020000u; + return _internal_has_gamespectatorleftmessage(); } inline void PokerTHMessage::clear_gamespectatorleftmessage() { - if (gamespectatorleftmessage_ != NULL) gamespectatorleftmessage_->::GameSpectatorLeftMessage::Clear(); - clear_has_gamespectatorleftmessage(); + if (gamespectatorleftmessage_ != nullptr) gamespectatorleftmessage_->Clear(); + _has_bits_[2] &= ~0x00010000u; +} +inline const ::GameSpectatorLeftMessage& PokerTHMessage::_internal_gamespectatorleftmessage() const { + const ::GameSpectatorLeftMessage* p = gamespectatorleftmessage_; + return p != nullptr ? *p : *reinterpret_cast( + &::_GameSpectatorLeftMessage_default_instance_); } inline const ::GameSpectatorLeftMessage& PokerTHMessage::gamespectatorleftmessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamespectatorleftmessage_ != NULL ? *gamespectatorleftmessage_ : *default_instance().gamespectatorleftmessage_; -#else - return gamespectatorleftmessage_ != NULL ? *gamespectatorleftmessage_ : *default_instance_->gamespectatorleftmessage_; -#endif + // @@protoc_insertion_point(field_get:PokerTHMessage.gameSpectatorLeftMessage) + return _internal_gamespectatorleftmessage(); } -inline ::GameSpectatorLeftMessage* PokerTHMessage::mutable_gamespectatorleftmessage() { - set_has_gamespectatorleftmessage(); - if (gamespectatorleftmessage_ == NULL) gamespectatorleftmessage_ = new ::GameSpectatorLeftMessage; - return gamespectatorleftmessage_; -} -inline ::GameSpectatorLeftMessage* PokerTHMessage::release_gamespectatorleftmessage() { - clear_has_gamespectatorleftmessage(); - ::GameSpectatorLeftMessage* temp = gamespectatorleftmessage_; - gamespectatorleftmessage_ = NULL; - return temp; -} -inline void PokerTHMessage::set_allocated_gamespectatorleftmessage(::GameSpectatorLeftMessage* gamespectatorleftmessage) { - delete gamespectatorleftmessage_; +inline void PokerTHMessage::unsafe_arena_set_allocated_gamespectatorleftmessage( + ::GameSpectatorLeftMessage* gamespectatorleftmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(gamespectatorleftmessage_); + } gamespectatorleftmessage_ = gamespectatorleftmessage; if (gamespectatorleftmessage) { - set_has_gamespectatorleftmessage(); + _has_bits_[2] |= 0x00010000u; } else { - clear_has_gamespectatorleftmessage(); + _has_bits_[2] &= ~0x00010000u; } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PokerTHMessage.gameSpectatorLeftMessage) } - -// optional .GameStartReentryMessage gameStartReentryMessage = 83; -inline bool PokerTHMessage::has_gamestartreentrymessage() const { - return (_has_bits_[2] & 0x00040000u) != 0; -} -inline void PokerTHMessage::set_has_gamestartreentrymessage() { - _has_bits_[2] |= 0x00040000u; -} -inline void PokerTHMessage::clear_has_gamestartreentrymessage() { - _has_bits_[2] &= ~0x00040000u; -} -inline void PokerTHMessage::clear_gamestartreentrymessage() { - if (gamestartreentrymessage_ != NULL) gamestartreentrymessage_->::GameStartReentryMessage::Clear(); - clear_has_gamestartreentrymessage(); -} -inline const ::GameStartReentryMessage& PokerTHMessage::gamestartreentrymessage() const { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamestartreentrymessage_ != NULL ? *gamestartreentrymessage_ : *default_instance().gamestartreentrymessage_; -#else - return gamestartreentrymessage_ != NULL ? *gamestartreentrymessage_ : *default_instance_->gamestartreentrymessage_; -#endif -} -inline ::GameStartReentryMessage* PokerTHMessage::mutable_gamestartreentrymessage() { - set_has_gamestartreentrymessage(); - if (gamestartreentrymessage_ == NULL) gamestartreentrymessage_ = new ::GameStartReentryMessage; - return gamestartreentrymessage_; -} -inline ::GameStartReentryMessage* PokerTHMessage::release_gamestartreentrymessage() { - clear_has_gamestartreentrymessage(); - ::GameStartReentryMessage* temp = gamestartreentrymessage_; - gamestartreentrymessage_ = NULL; +inline ::GameSpectatorLeftMessage* PokerTHMessage::release_gamespectatorleftmessage() { + auto temp = unsafe_arena_release_gamespectatorleftmessage(); + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } return temp; } -inline void PokerTHMessage::set_allocated_gamestartreentrymessage(::GameStartReentryMessage* gamestartreentrymessage) { - delete gamestartreentrymessage_; - gamestartreentrymessage_ = gamestartreentrymessage; - if (gamestartreentrymessage) { - set_has_gamestartreentrymessage(); - } else { - clear_has_gamestartreentrymessage(); - } +inline ::GameSpectatorLeftMessage* PokerTHMessage::unsafe_arena_release_gamespectatorleftmessage() { + // @@protoc_insertion_point(field_release:PokerTHMessage.gameSpectatorLeftMessage) + _has_bits_[2] &= ~0x00010000u; + ::GameSpectatorLeftMessage* temp = gamespectatorleftmessage_; + gamespectatorleftmessage_ = nullptr; + return temp; } +inline ::GameSpectatorLeftMessage* PokerTHMessage::_internal_mutable_gamespectatorleftmessage() { + _has_bits_[2] |= 0x00010000u; + if (gamespectatorleftmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameSpectatorLeftMessage>(GetArena()); + gamespectatorleftmessage_ = p; + } + return gamespectatorleftmessage_; +} +inline ::GameSpectatorLeftMessage* PokerTHMessage::mutable_gamespectatorleftmessage() { + // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameSpectatorLeftMessage) + return _internal_mutable_gamespectatorleftmessage(); +} +inline void PokerTHMessage::set_allocated_gamespectatorleftmessage(::GameSpectatorLeftMessage* gamespectatorleftmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete gamespectatorleftmessage_; + } + if (gamespectatorleftmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(gamespectatorleftmessage); + if (message_arena != submessage_arena) { + gamespectatorleftmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, gamespectatorleftmessage, submessage_arena); + } + _has_bits_[2] |= 0x00010000u; + } else { + _has_bits_[2] &= ~0x00010000u; + } + gamespectatorleftmessage_ = gamespectatorleftmessage; + // @@protoc_insertion_point(field_set_allocated:PokerTHMessage.gameSpectatorLeftMessage) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- // @@protoc_insertion_point(namespace_scope) + +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::NetGameInfo_NetGameType> : ::std::true_type {}; +template <> struct is_proto_enum< ::NetGameInfo_RaiseIntervalMode> : ::std::true_type {}; +template <> struct is_proto_enum< ::NetGameInfo_EndRaiseMode> : ::std::true_type {}; +template <> struct is_proto_enum< ::AnnounceMessage_ServerType> : ::std::true_type {}; +template <> struct is_proto_enum< ::InitMessage_LoginType> : ::std::true_type {}; +template <> struct is_proto_enum< ::PlayerListMessage_PlayerListNotification> : ::std::true_type {}; +template <> struct is_proto_enum< ::SubscriptionRequestMessage_SubscriptionAction> : ::std::true_type {}; +template <> struct is_proto_enum< ::JoinGameFailedMessage_JoinGameFailureReason> : ::std::true_type {}; +template <> struct is_proto_enum< ::GamePlayerLeftMessage_GamePlayerLeftReason> : ::std::true_type {}; +template <> struct is_proto_enum< ::RemovedFromGameMessage_RemovedFromGameReason> : ::std::true_type {}; +template <> struct is_proto_enum< ::RejectGameInvitationMessage_RejectGameInvReason> : ::std::true_type {}; +template <> struct is_proto_enum< ::StartEventMessage_StartEventType> : ::std::true_type {}; +template <> struct is_proto_enum< ::YourActionRejectedMessage_RejectionReason> : ::std::true_type {}; +template <> struct is_proto_enum< ::AskKickDeniedMessage_KickDeniedReason> : ::std::true_type {}; +template <> struct is_proto_enum< ::VoteKickReplyMessage_VoteKickReplyType> : ::std::true_type {}; +template <> struct is_proto_enum< ::EndKickPetitionMessage_PetitionEndReason> : ::std::true_type {}; +template <> struct is_proto_enum< ::StatisticsMessage_StatisticsData_StatisticsType> : ::std::true_type {}; +template <> struct is_proto_enum< ::ChatMessage_ChatType> : ::std::true_type {}; +template <> struct is_proto_enum< ::TimeoutWarningMessage_TimeoutReason> : ::std::true_type {}; +template <> struct is_proto_enum< ::ReportAvatarAckMessage_ReportAvatarResult> : ::std::true_type {}; +template <> struct is_proto_enum< ::ReportGameAckMessage_ReportGameResult> : ::std::true_type {}; +template <> struct is_proto_enum< ::ErrorMessage_ErrorReason> : ::std::true_type {}; +template <> struct is_proto_enum< ::AdminRemoveGameAckMessage_AdminRemoveGameResult> : ::std::true_type {}; +template <> struct is_proto_enum< ::AdminBanPlayerAckMessage_AdminBanPlayerResult> : ::std::true_type {}; +template <> struct is_proto_enum< ::PokerTHMessage_PokerTHMessageType> : ::std::true_type {}; +template <> struct is_proto_enum< ::NetGameMode> : ::std::true_type {}; +template <> struct is_proto_enum< ::NetGameState> : ::std::true_type {}; +template <> struct is_proto_enum< ::NetPlayerAction> : ::std::true_type {}; +template <> struct is_proto_enum< ::NetPlayerState> : ::std::true_type {}; +template <> struct is_proto_enum< ::NetPlayerInfoRights> : ::std::true_type {}; +template <> struct is_proto_enum< ::NetAvatarType> : ::std::true_type {}; + +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) -#endif // PROTOBUF_pokerth_2eproto__INCLUDED +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_pokerth_2eproto diff --git a/src/third_party/websocketpp/websocketpp/transport/asio/connection.hpp b/src/third_party/websocketpp/websocketpp/transport/asio/connection.hpp index 8eb8c759..d311ef53 100644 --- a/src/third_party/websocketpp/websocketpp/transport/asio/connection.hpp +++ b/src/third_party/websocketpp/websocketpp/transport/asio/connection.hpp @@ -311,9 +311,10 @@ public: * needed. */ timer_ptr set_timer(long duration, timer_handler callback) { - timer_ptr new_timer = lib::make_shared( - lib::ref(*m_io_service), - lib::asio::milliseconds(duration) + timer_ptr new_timer( + new lib::asio::steady_timer( + *m_io_service, + lib::asio::milliseconds(duration)) ); if (config::enable_multithreading) { @@ -461,8 +462,7 @@ protected: m_io_service = io_service; if (config::enable_multithreading) { - m_strand = lib::make_shared( - lib::ref(*io_service)); + m_strand.reset(new lib::asio::io_service::strand(*io_service)); } lib::error_code ec = socket_con_type::init_asio(io_service, m_strand, diff --git a/src/third_party/websocketpp/websocketpp/transport/asio/endpoint.hpp b/src/third_party/websocketpp/websocketpp/transport/asio/endpoint.hpp index 46ff24c0..58b66247 100644 --- a/src/third_party/websocketpp/websocketpp/transport/asio/endpoint.hpp +++ b/src/third_party/websocketpp/websocketpp/transport/asio/endpoint.hpp @@ -191,8 +191,7 @@ public: m_io_service = ptr; m_external_io_service = true; - m_acceptor = lib::make_shared( - lib::ref(*m_io_service)); + m_acceptor.reset(new lib::asio::ip::tcp::acceptor(*m_io_service)); m_state = READY; ec = lib::error_code(); @@ -660,9 +659,7 @@ public: * @since 0.3.0 */ void start_perpetual() { - m_work = lib::make_shared( - lib::ref(*m_io_service) - ); + m_work.reset(new lib::asio::io_service::work(*m_io_service)); } /// Clears the endpoint's perpetual flag, allowing it to exit when empty @@ -826,8 +823,7 @@ protected: // Create a resolver if (!m_resolver) { - m_resolver = lib::make_shared( - lib::ref(*m_io_service)); + m_resolver.reset(new lib::asio::ip::tcp::resolver(*m_io_service)); } tcon->set_uri(u); diff --git a/src/third_party/websocketpp/websocketpp/transport/asio/security/none.hpp b/src/third_party/websocketpp/websocketpp/transport/asio/security/none.hpp index 0e68a65c..c05758bc 100644 --- a/src/third_party/websocketpp/websocketpp/transport/asio/security/none.hpp +++ b/src/third_party/websocketpp/websocketpp/transport/asio/security/none.hpp @@ -168,8 +168,7 @@ protected: return socket::make_error_code(socket::error::invalid_state); } - m_socket = lib::make_shared( - lib::ref(*service)); + m_socket.reset(new lib::asio::ip::tcp::socket(*service)); m_state = READY; diff --git a/src/third_party/websocketpp/websocketpp/transport/asio/security/tls.hpp b/src/third_party/websocketpp/websocketpp/transport/asio/security/tls.hpp index 7b32db81..d5d61a35 100644 --- a/src/third_party/websocketpp/websocketpp/transport/asio/security/tls.hpp +++ b/src/third_party/websocketpp/websocketpp/transport/asio/security/tls.hpp @@ -193,8 +193,7 @@ protected: if (!m_context) { return socket::make_error_code(socket::error::invalid_tls_context); } - m_socket = lib::make_shared( - _WEBSOCKETPP_REF(*service),lib::ref(*m_context)); + m_socket.reset(new socket_type(*service, *m_context)); m_io_service = service; m_strand = strand;